Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting
No,
Seems to be working correctly, What was the fix????
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting
Hello,
I am having a problem with blank pages as well. I used the debugging tool and got the following results:
[13-Apr-2009 08:58:43] PHP Warning: Cannot modify header information - headers already sent by (output started at .../html/shop/includes/languages/german/extra_definitions/custom/category_select_defines.php:1) in .../html/shop/includes/functions/functions_general.php on line 44
Line 44 looks like this:
header('Location: ' . $url);
I have the german language pack installed. The problem occurs only on the german side when I update an item in the cart or add an item. A blank page appears. If I press the browser back button, it shows that the update had successfully made the appropriate change in the shopping cart.
I am using version 1.3.8 and PHP Version => 4.3.11.
Today is the first time I have started adding items to the cart so I have no idea which if any of my mods have caused the problem. I am pretty careful with the mods.
Can anyone help me? Unfortunately I cannot post a link because my site is not yet public.
Thank in advance for any help!
Cu,
Does the german language pack support thread mention a fix for this???
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting
Hi haredo,
I found a german support thread for my problem:
http://www.zen-cart.at/zcvb/forum/vb...&catid=11&id=8
It is in german but I managed to struggle through it. My problem is presently fixed. All I needed to do was to convert the file mentioned in the error log to UTF-8 without BOM using a text editor. It was already UTF-8 but with BOM (whatever that means??). So now without BOM the blank page is not bothering me.
Strangely, the german thread mentioned above is exactly the same as the equivilant english "blank page debugging" version with just a bit more info. That little bit more info made the difference. Below is a translation of the little bit that helped:
5. Logfile herunterladen und mit einem Texteditor öffnen.
5. Download error log and open it in a text editor.
In diesem Log steht dann wahrscheinlich sowas ähnliches wie das:
In this error log you will hopefully find something like this:
[15-Oct-2008 14:40:10] PHP Warning: Cannot modify header information - headers already sent by (output started at /homepages/xxx/xxxxx/htdocs/xxx/zen-cart/includes/languages/german.php:11) in /homepages/xxx/xxxxx/htdocs/xxx/zen-cart/includes/init_includes/init_templates.php on line 28
Relevant ist die Datei, die hinter output started at angegeben ist. In diesem Beispiel ist das die includes/languages/german.php. Die Ziffer 11 gibt die Zeile an, in der sich der Fehler befindet.
The revelant file will be just after "output started at". In this example it is the file, includes/languages/german.php. The number 11 represents the line of code where the problem is.
(In my case it was line number 1 because, I am guessing, the whole file was the problem due to the encoding.)
Diese Datei mit einem Texteditor öffnen und auf Leerzeilen (hinter dem php am Schluss), Sonderzeichen, seltsame Zeichen am Anfang und sonstige Fehler überprüfen. Nicht nur die angegebene Zeile überprüfen, sondern alles!
Open the file with a text editor and look for blank lines (after the php at the end), special characters, and strange symbols. (I´m not sure if I translated that properly but you get the idea. Look for mistakes!) Don´t just look for mistakes in the above given line, but look everywhere!
Bei Zen-Cart 1.3.8 ist es wichtig, dass Sprachdateien immer im Format utf-8 ohne BOM abgespeichert werden.
It is important with Zen-Cart 1.3.8 that the language files are always saved in the format "utf-8 ohne BOM". (That was my mistake!)
I hope this can help another poor german-language shop keeper like me!
One more thing.
The text showing in the address bar after a successfull cart update on the english side is:
http://www. ... .de/shop/index.php?main_page=shopping_cart
The text showing in the address bar of the blank page that shows up as a result of a cart update on the german side is:
http://www. ... .de/shop/index.php?main_page=shopping_cart&action=update_product
There is that extra "&action=update_product". I don´t know if that gives anybody a clue. It definately doesn´t help me.
Thanks