Guest Posted August 13, 2010 Posted August 13, 2010 Hi all I recently activated the Spanish language part of my site. Everything works fine in English, but in Spanish the redirects don't work. For example if I'm not logged in and I click "my account" in English, it redirects to the login.php page. If I do the same from the Spanish home page I get a white screen and the URL stops on the account.php page. The same happens if I click the "Checkout" button without having put something in the cart. In English it redirects to the shopping_cart.php page but from Spanish the URL stops on checkout_shipping.php and the browser goes white. If I go to any of these redirect pages in English and click Spanish it will switch to the Spanish page, so I know the data is all there. Now to be weirder than it already is... If I leave the Spanish home page on screen for an hour or so and then go back and click "my account" it will redirect successfully... but to the English login.php page. Does this make sense to anyone? I'm not an expert with php by any means, and I don't even know where to start. Thanks for your help cosjohn Quote
♥FWR Media Posted August 13, 2010 Posted August 13, 2010 Hi all I recently activated the Spanish language part of my site. Everything works fine in English, but in Spanish the redirects don't work. For example if I'm not logged in and I click "my account" in English, it redirects to the login.php page. If I do the same from the Spanish home page I get a white screen and the URL stops on the account.php page. The same happens if I click the "Checkout" button without having put something in the cart. In English it redirects to the shopping_cart.php page but from Spanish the URL stops on checkout_shipping.php and the browser goes white. If I go to any of these redirect pages in English and click Spanish it will switch to the Spanish page, so I know the data is all there. Now to be weirder than it already is... If I leave the Spanish home page on screen for an hour or so and then go back and click "my account" it will redirect successfully... but to the English login.php page. Does this make sense to anyone? I'm not an expert with php by any means, and I don't even know where to start. Thanks for your help cosjohn header redirects do not function when headers have been sent .. so .. looks like your Spanish implementation is sending headers .. this could be a simple whitespace above the <?php in one of your Spanish language files ( or below the final ?> ) .. check this first .. also it could be that an error is generated and this is sending the header. Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
Guest Posted August 14, 2010 Posted August 14, 2010 Thanks for the reply FWR Media. There were two spaces at the bottom of the spanish.php file. I would never of noticed it if it wasn't for your post. Thanks for the help cosjohn Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.