Jump to content

Path is not the same between your browser and you server


Recommended Posts

I'm not sure if this is because I am using a sub domain or because its the beta version or it doesnt like the folder I put the cart in. Before i reinstall is this an error for some other reason or have i done something silly with the setup? I have installation of v1 working on on the same server www.australianoutdoorfurnitureandbbqs.com so i figure its the domain/path i've used or something new i don't understand in v1.1


There is 1 error

1. Path is not the same between your browser and you server :

- Server:
/prestashop_1.1.0.3/admintest/login.php

- Browser:
/mnt/Target01/339393/123456789.jezweb.com.au/web/content/prestashop_1.1.0.3/admintest/login.php



Once I login it seems fine though. Like there are no other issues I have noticed.

Link to comment
Share on other sites

I had the same problem too... Locally worked perfectly, but after uploading to host I got this error
The answer is - some hosts do not use PHP5 by defolt and connect it using directive in .htaccess:
AddType php5-script .php
Action php5-script /cgi-php/php5

thats why Prestashop says the path is not the same

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

There is 1 error

1. Path is not the same between your browser and you server :

- Server:
prestashop/marketadmin/login.php

- Browser:
\prestashop\marketadmin\login.php


this is the eror I get after I have installed the shop... can anyoane give an ideea how to solve it ?

Link to comment
Share on other sites

There is 1 error

1. Path is not the same between your browser and you server :

- Server:
prestashop/marketadmin/login.php

- Browser:
\prestashop\marketadmin\login.php


this is the eror I get after I have installed the shop... can anyoane give an ideea how to solve it ?


Please read and use the search; it is no problem, you shop will work with this "error".
Link to comment
Share on other sites

  • 4 weeks later...
If you use a subdomain, you have to add it in your back office, in Tools > Subdomains :)
but how can we access to back office to edit ... looks this it big bug and PS team ignoring any help same problem can not access my back office

There is 1 error

1. Path is not the same between your browser and you server :
Link to comment
Share on other sites

If you use a subdomain, you have to add it in your back office, in Tools > Subdomains :)
but how can we access to back office to edit ... looks this it big bug and PS team ignoring any help same problem can not access my back office

There is 1 error

1. Path is not the same between your browser and you server :


If you cannot access your back-office this is not related to the error-message.
This error message is not stopping you from using PS so please explain what you do to get into your back-office.
Link to comment
Share on other sites

  • 2 weeks later...

Hi,
I have the same problem.

////////////
Path is not the same between your browser and you server :

- Server:
admin69/login.php

- Browser:
d:\inetpub\wwwroot\veryimportantperfumes.com\html\admin69\login.php
////////////

I'm on a UK virtual server with a windows 2003 server, and many problems ...

Link to comment
Share on other sites

  • 2 months later...
  • 8 months later...

Hi, The solution is pretty simple

open youradminfolder -> Login.php and comment the code lines from :

*/
if (strcmp($pathServer, $pathUser))
$errors[] = Tools::displayError('Path is not the same between your browser and you server :').'

 

'.
Tools::displayError('- Server:').'

'.htmlentities($pathServer).'

 

'.
Tools::displayError('- Browser:').'

'.htmlentities($pathUser);

*/

here you go all is done and your site works just great.

Cheers :)

Link to comment
Share on other sites

  • 3 months later...

Hi,
This problem causes another problems. Be careful. This error message not for fun.
I found a problem when installing language pack to prestashop.
it’s causes internal server errror 500. When selected installed language.
I’m feairng its also affect module uploads and other uploads.
Pro’s please interest with this error message.

İf you want to hide error, this is more easy:
find and replace this in login.php
if (strcmp($pathServer, $pathServer))
And dont think to change Preferences -> PS directory
—But it’s no solve problem.—-

Link to comment
Share on other sites

  • 5 months later...

just change $_SERVER['SCRIPT_FILENAME'] to $_SERVER['PHP_SELF'] in line #23 in (your-renamed-admin-folder)/login.php

// Checking path
$pathUser = preg_replace('!^/!', '', str_replace('\\', '/', $_SERVER['PHP_SELF']));
$pathServer = preg_replace('!^/!', '', str_replace('\\', '/', str_replace($_SERVER['DOCUMENT_ROOT'], '', $_SERVER['SCRIPT_FILENAME'])));



to

// Checking path
$pathUser = preg_replace('!^/!', '', str_replace('\\', '/', $_SERVER['PHP_SELF']));
$pathServer = preg_replace('!^/!', '', str_replace('\\', '/', str_replace($_SERVER['DOCUMENT_ROOT'], '', $_SERVER['PHP_SELF'])));



and paths are the same for me.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...