Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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

Posted

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.

Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...