Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Errors after moving oscommerce to different server


Guest

Recommended Posts

Posted

Hello all you guys!

 

I have these errors after moving osCommerce to another server, with old server everything worked.

What have i done wrong?

 

1. I made backup at first of the store

2. i copied the data to my pc

3. i uploaded the data to another server with install directory

4. I did go to new server /install and istalled the shop again(this was just to set new server configures to necessary files

5. I logged in the admin section and restored my last backup.sql file(it did not go well, actually nothing happend?)

6. So i made updated the databse straight from phpmyadmin. i got errors of duplicate stuff continuesly

7. i created whole new database and imported my sql backup to it, it was fine.

8. After that i noticed that webshop really restored products, thought i did not get into admin panel

9. At this point i started to getting these annoying errors

 

for example when i click "My account" i got error

Warning: Cannot modify header information - headers already sent by (output started at /home/automatr/public_html/includes/languages/finnish.php:1) in /home/automatr/public_html/includes/functions/general.php on line 33

 

When i click product info button i got error(however product page will open)

Warning: Cannot modify header information - headers already sent by (output started at /home/automatr/public_html/includes/languages/finnish.php:1) in /home/automatr/public_html/includes/classes/seo.class.php on line 2890

Warning: Cannot modify header information - headers already sent by (output started at /home/automatr/public_html/includes/languages/finnish.php:1) in /home/automatr/public_html/includes/classes/seo.class.php on line 2892

 

I tried google with these kind of errors and pretty much all answers was about deleting empty spaces / lines - i did check them, still errors.

 

What i also noticed that all the images that i added with FCKeditor, those thumnails dont show up, either does their actually images and from error.log is:

 

PHP Warning:  Division by zero in /home/automatr/public_html/makethumb.php on line 156
PHP Warning:  Division by zero in /home/automatr/public_html/makethumb.php on line 158
PHP Warning:  imagecreate() [<a href='function.imagecreate'>function.imagecreate</a>]: Invalid image dimensions in /home/automatr/public_html/makethumb.php on line 167
PHP Warning:  imagecolorallocate(): supplied argument is not a valid Image resource in /home/automatr/public_html/makethumb.php on line 168
PHP Warning:  imagecolorallocate(): supplied argument is not a valid Image resource in /home/automatr/public_html/makethumb.php on line 169
PHP Warning:  imagefilledrectangle(): supplied argument is not a valid Image resource in /home/automatr/public_html/makethumb.php on line 170
PHP Warning:  imagestring(): supplied argument is not a valid Image resource in /home/automatr/public_html/makethumb.php on line 172
PHP Warning:  imagejpeg(): supplied argument is not a valid Image resource in /home/automatr/public_html/makethumb.php on line 173
PHP Warning:  imagedestroy(): supplied argument is not a valid Image resource in /home/automatr/public_html/makethumb.php on line 174
PHP Warning:  getimagesize(images/tnw189h0xy-Cgp_325.jpg) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory in /home/automatr/public_html/makethumb.php on line 119

 

 

and the best thing? im in a rush so please somebody, anybody help me asap. I am online from now on, so if you have any questions about files or anything i will reply fast.

 

 

Cheers,

 

Kim

 

 

 



Posted

Just tested all appear to work just fine in a different language - so the problem is finnish.php or another finnish language file?

Posted

Just tested all appear to work just fine in a different language - so the problem is finnish.php or another finnish language file?

 

I did whole work again, this time i just copied all the data from old server to new server without install folder, i got exactly same errors but with language english all works just fine. Old server both languages, finnish and english worked.

Posted

Kim,

 

Check the language file for 'whitespace', space before or after a PHP tag.

 

 

Chris

Posted

Kim,

 

Check the language file for 'whitespace', space before or after a PHP tag.

 

 

Chris

 

Hi Chris.

 

Just finished the checking. I checked _all_ finnish language files and deleted many whitespaces after ?> but im still with problems. ARGH!! :/

Posted

The error messages clearly state that your /home/automatr/public_html/includes/languages/finnish.php file is starting some output at or near line 1. Look carefully at that file -- is there anything before the opening <?php, or after the last ?> ? There may be "invisible" characters that you won't see in a casual inspection. Did a hacker insert some code in the file? There should only be PHP statements to define some language variables -- no "active" code statements that make output to the browser.

 

If you're running in UTF-8 character encoding, your finnish.php file may have a UTF-8 "Byte Order Mark" that is invisible. On the page that shows the "Cannot modify header" message, tell your browser to display in "Latin-1" or "Western European" or "ISO-8859-1" encoding (usually under the View button). Do you now see something like  at the top? If so, you need to edit your finnish.php file and remove those three bytes. They shouldn't have been added to the file, but some idiot editors insist on doing it.

 

Read my sig > FAQs concerning Byte Order Mark and "Cannot modify headers".

Posted

The error messages clearly state that your /home/automatr/public_html/includes/languages/finnish.php file is starting some output at or near line 1. Look carefully at that file -- is there anything before the opening <?php, or after the last ?> ? There may be "invisible" characters that you won't see in a casual inspection. Did a hacker insert some code in the file? There should only be PHP statements to define some language variables -- no "active" code statements that make output to the browser.

 

If you're running in UTF-8 character encoding, your finnish.php file may have a UTF-8 "Byte Order Mark" that is invisible. On the page that shows the "Cannot modify header" message, tell your browser to display in "Latin-1" or "Western European" or "ISO-8859-1" encoding (usually under the View button). Do you now see something like  at the top? If so, you need to edit your finnish.php file and remove those three bytes. They shouldn't have been added to the file, but some idiot editors insist on doing it.

 

Read my sig > FAQs concerning Byte Order Mark and "Cannot modify headers".

 

Thanks for all advices. I solved this one with pspad, i opened every single finnish language file with it and in pspad there is this function "re-organize html code" for better reading and look or something like that. So by that button it removes all whitespaces etc.

 

Just letting you know if anyone have similar problems with multiple(over 50) files :)

 

Cheers, Kim

Archived

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

×
×
  • Create New...