garnet Posted May 29, 2009 Posted May 29, 2009 Hi all, I have installed bulgarian language to my store and now I have a problem manipulatin the cart contents. If I add something to cart I git the following error message. Warning: Cannot modify header information - headers already sent by (output started at /home/kupuvaln/public_html/includes/languages/bulgarian.php:2) in /home/kupuvaln/public_html/includes/functions/general.php on line 33 I have to browse back, refresh and the cart is updated. This doesnd do that in other languagesm, nor it does it on my other test store with the same bulgarian language pack. OSC beginner
germ Posted May 29, 2009 Posted May 29, 2009 Headers Already Sent Click the link above for an explanation. The problem is in /includes/languages/bulgarian.php (line 2) You must have some blank lines or "whitespaces" preceding the opening PHP tag: <?php The above code MUST be at the very first of the file. No blank lines or spaces are permitted before 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 >
garnet Posted May 29, 2009 Author Posted May 29, 2009 Headers Already Sent Click the link above for an explanation. The problem is in /includes/languages/bulgarian.php (line 2) You must have some blank lines or "whitespaces" preceding the opening PHP tag: <?php The above code MUST be at the very first of the file. No blank lines or spaces are permitted before it. hi that seems to solve the cart problem. But afer altering the bulgarian.php to have no blanks before or after <?php code, the admin logon fails: Error is: [b]Warning: require(includes/languages/bulgarian.php) [function.require]: failed to open stream: No such file or directory in /home/kupuvaln/public_html/admin/includes/application_top.php on line 157 Warning: require(includes/languages/bulgarian.php) [function.require]: failed to open stream: No such file or directory in /home/kupuvaln/public_html/admin/includes/application_top.php on line 157 Fatal error: require() [function.require]: Failed opening required 'includes/languages/bulgarian.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/kupuvaln/public_html/admin/includes/application_top.php on line 157[/b] Help please. OSC beginner
germ Posted May 29, 2009 Posted May 29, 2009 The error seems to say the file /admin/includes/languages/bulgarian.php isn't on the server. 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 >
garnet Posted May 30, 2009 Author Posted May 30, 2009 The error seems to say the file /admin/includes/languages/bulgarian.php isn't on the server. It is - I just copied it.And now I cant access the admin. OSC beginner
Recommended Posts
Archived
This topic is now archived and is closed to further replies.