Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Urgently need help please!


webrookie

Recommended Posts

My shop was running fine and I was accepting payment with Paypal (express) only. I have disabled check out and everything has been working fine.

 

I installed a full Chinese addon a few days ago.

 

I now have quite a few problems. Since the shop is live I really need your help, thank you in advanced:

 

--I am not able to check out in the Chinese version although in English everything is fine. When the customer clicks "add to cart" in the Chinese version, the item wil be added but the screen will just look all white and blank and it just freezes. I need to click the back arrow and then open the cart to see that the item has been added. Also, the same thing happens whenever the "pay with PayPal" button is clicked. The screen will show a blank white page and nothing will happen. I need to go back with the back arrow and change to English in order to check out.

 

--the shop shows all its format in chrome and firefox but in IE the proper format is only shown in the original English version. With Chinese I have blue fonts, broken image links, and everything is all over the place. If I click the "home page" link on this Chinese page I will be taken back to the Engish page, with all its proper format. Once I choose Chinese, all hell breaks loose. I verified the files in the Chinese and English version and so far I cannot find anything missing or different.

 

I checked my error log and these two message kept coming up (##### is the osc user name).

 

1) PHP Warning: Cannot modify header information - headers already sent by (output started at /home4/#####/public_html/shop/includes/languages/chinese.php:1) in /home4/#####/public_html/shop/includes/functions/general.php on line 45

 

The code on line 45: ('location:'.$url);

 

2) PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'includes/languages/chinese/modules/boxes/bm_social_box.php' for inclusion (include_path='.:/usr/lib64/php:/usr/lib/php:/usr/share/pear') in /home4/#####/public_html/shop/includes/classes/osc_template.php on line 86

 

The code on line 86: include(DIR_WS_LANGUAGES . $language . '/modules/' . $group . '/' . $module);

 

Looking forward to hear your expert suggestion and opinion on what might have gone wrong. Thank you.

Link to comment
Share on other sites

Click the "Headers already sent" link in my signature for error 1.

 

Error 2 is a missing file. Up load it. If it wasn't included i the Chinese language pack you installed I suggest you translate the English version and upload it.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

It says right there in the message:

includes/languages/chinese/modules/boxes/bm_social_box.php

 

See if you can find that specific file. If one was not supplied, copy over the English version and do any necessary translation. After you remedy that one, it's possible that there will be more missing files (reported one at a time) that you will have to deal with.

 

Regarding the "headers already sent" error, double check all your Chinese language files for a stray "Byte Order Mark", especially if you did any editing in these files (I'm assuming that they are UTF-8 encoded). No file should have a BOM. Make sure you tell your editor to "save WITHOUT Byte Order Mark". Check any English language files you edited, too, especially if you were in UTF-8 mode. That's a very likely cause of the "headers already sent" error.

Link to comment
Share on other sites

Look at the end of this post

 

When someone on the forum suggests you read something maybe you should do it.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

How do I know if it has a stray BOM?

 

You won't see it if your PC is in UTF-8. Transfer them to your PC and look at them while in Latin-1 or CP-1251 (the normal Windows encoding). You'll see three funny characters at the very beginning of one or more files (if BOM is causing the problem), i+umlaut, right-double-guillemet->> inverse-? (I think that's the order). If you google for BOM you might find a utility to look for BOMs on your server.

Link to comment
Share on other sites

Thank you so much to everyone's help. The shop is now working flawlessly.

I want to give a big thank-you toMr. Phil especially. Your instruction is very precise, easy to understand and you have been very patience with me. A newbie like me really appreciate that.:)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...