Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I?ve Been Foolish. Overestimated My Abilities And Now I?m Stuck


sophiesden

Recommended Posts

From 9pm this morning I have literally been battling with the installation of OsCommerce, and what an epic battle it has been. I have installed, uninstalled, read knowledge base, smoked about 100 fags, emailed people and attacked my computer keyboard with such rage that it needed to be replaced at about 2pm. Anyway got the program/script, whatever you want to call it installed and thought now I?ve achieved that I can make some changes to my store. I wanted to change the Oscommerce logo, so I read knowledge base and did the following.

 

Created logo.jpg

Uploaded it to the /catalog/images/ directory of my store

Then downloaded the file catalog/includes/header.php. Saved it to my desk top and then opened it in a text editor.

Made the following changes. I replaced the oscommerce.gif with the name of my logo.jpg, making sure that I left in the single quotes ('). I also placed my store name in the code as well. So the altered code looks exactly like this

 

<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'excellentlogo.jpg', 'Sophies Den') . '</a>'; ?></td>

 

I Saved this file and uploaded it back to my server, but this is where the drama started. It would just not upload and, after about 3 attempts I?m told

 

ASCII resume is unsafe, please delete the file first.

 

So I remove the header.php size 0 file from the server. Before I did this, I check on my website at www.sophiesden.com It comes up alright but without the Oscommerce logo, and with nothing in its place. Its logo-less. As soon as I delete the header.php file from my server I get the following message.

 

Warning: main(includes/header.php) [function.main]: failed to open stream: No such file or directory in /home/i16soph/public_html/index.php on line 45

 

Fatal error: main() [function.require]: Failed opening required 'includes/header.php' (include_path='.:/usr/lib/php') in /home/i16soph/public_html/index.php on line 45

 

However I have to delete it because WS-FTP tells me too after its 3rd attempt of trying to upload the file. But as soon as I delete it and try uploading it again the same thing happens.

 

I checked to make sure that there was no ("whitespace") existing before the first <?php tag and/or after the last ?> tag but the problem still persists.

 

I?m tired, frustrated and ready to kill the next daddy long legs which passes across my computer screen. If someone can help I would be grateful.

Link to comment
Share on other sites

From 9pm this morning I have literally been battling with the installation of OsCommerce, and what an epic battle it has been. I have installed, uninstalled, read knowledge base, smoked about 100 fags, emailed people and attacked my computer keyboard with such rage that it needed to be replaced at about 2pm. Anyway got the program/script, whatever you want to call it installed and thought now I?ve achieved that I can make some changes to my store. I wanted to change the Oscommerce logo, so I read knowledge base and did the following.

 

Created logo.jpg

Uploaded it to the /catalog/images/ directory of my store

Then downloaded the file catalog/includes/header.php. Saved it to my desk top and then opened it in a text editor.

Made the following changes. I replaced the oscommerce.gif with the name of my logo.jpg, making sure that I left in the single quotes ('). I also placed my store name in the code as well. So the altered code looks exactly like this

 

<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'excellentlogo.jpg', 'Sophies Den') . '</a>'; ?></td>

 

I Saved this file and uploaded it back to my server, but this is where the drama started. It would just not upload and, after about 3 attempts I?m told

 

ASCII resume is unsafe, please delete the file first.

 

So I remove the header.php size 0 file from the server. Before I did this, I check on my website at www.sophiesden.com It comes up alright but without the Oscommerce logo, and with nothing in its place. Its logo-less. As soon as I delete the header.php file from my server I get the following message.

 

Warning: main(includes/header.php) [function.main]: failed to open stream: No such file or directory in /home/i16soph/public_html/index.php on line 45

 

Fatal error: main() [function.require]: Failed opening required 'includes/header.php' (include_path='.:/usr/lib/php') in /home/i16soph/public_html/index.php on line 45

 

However I have to delete it because WS-FTP tells me too after its 3rd attempt of trying to upload the file. But as soon as I delete it and try uploading it again the same thing happens.

 

I checked to make sure that there was no ("whitespace") existing before the first <?php tag and/or after the last ?> tag but the problem still persists.

 

I?m tired, frustrated and ready to kill the next daddy long legs which passes across my computer screen. If someone can help I would be grateful.

 

 

Hello Sophie,

 

With 'Sophies Den' it should be 'Sophies_Den' since spaces are not accepted as the example below:

 

<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'bannerlogo.jpg', 'my_store') . '</a>'; ?></td>

 

This configuration works on my store which has a name in two words. Nothing to lose in trying.

Link to comment
Share on other sites

spaces can normally be used I use them all the time.

did you check to ensure that the correct permissions were set for the image.

was the image uploaded in ascii or binary?

does the image show the correct file size?

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Hello Sophie,

 

With 'Sophies Den' it should be 'Sophies_Den' since spaces are not accepted as the example below:

 

<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'bannerlogo.jpg', 'my_store') . '</a>'; ?></td>

 

This configuration works on my store which has a name in two words. Nothing to lose in trying.

 

 

I tried putting in my store name in the following ways but nothing helps

 

sophies_den

Sophies_Den

Sophies Den

sophies den

sophiesden

SophiesDen

 

I checked in the admin section to see how I spelt my store name and it is spelt Sophies Den

 

Thanks for the suggestion anyway.

Link to comment
Share on other sites

spaces can normally be used I use them all the time.

did you check to ensure that the correct permissions were set for the image.

was the image uploaded in ascii or binary?

does the image show the correct file size?

 

 

Check and realised that the picture I had uploaded was not the correct file size. It was suppose to be 19kb or something like that, but the actual file size on the server was 0. I am not sure how to set the correct permission for the image. I did play around with my FTP and tried uploading it first in JPG format ascii and then binary. After that I changed the logo to GIF format and again tried uploading it first in ascii and then in binary but nothing worked. The file always showed up on the server as 0 in size.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...