Jump to content

Localhost ERROR after migration


Recommended Posts

Hi everyone, 

 

Having proceeded to the repatriation of prestashop in localhost, I have the following error message:

 

"The website production version is in PHP then that localhost version is 5.6.7. For avoid problems, you must put your localhost version in PHP ."

 

I looked on Google, but no person speaks this message.

 

thank you in advance for your help.

 

Regard

Link to comment
Share on other sites

what is the version of php on your local machine?

the message is displayed by core or third part module?

 

at least version 5.1 is enough... but i recommend to keep always the last stable release.

Link to comment
Share on other sites

what is the version of php on your local machine?

the message is displayed by core or third part module?

 

at least version 5.1 is enough... but i recommend to keep always the last stable release.

Hi guys, 

 

i have the 5.2 on server and on localhost i have the 5.6.7

 

that change nothing, any version work in localhost.

 

Regard

Link to comment
Share on other sites

i think this is not from PS platform but from some third part module.

 

i suggest you to search  the message origin.

 

To do that, open a text editor like Sublime, EditPad, notepad++ or anything that support search on multiple files and subdirectories. Then, search just this part "your localhost version in PHP". If do not return any result, try to use logic sense by searching others relevant parts of entire message. 

Link to comment
Share on other sites

i think this is not from PS platform but from some third part module.

 

i suggest you to search  the message origin.

 

To do that, open a text editor like Sublime, EditPad, notepad++ or anything that support search on multiple files and subdirectories. Then, search just this part "your localhost version in PHP". If do not return any result, try to use logic sense by searching others relevant parts of entire message. 

Hi Omine,

 

i have found that ...

Applications/MAMP/htdocs/dali/web/system/module.php:
   42    if(!ereg('^'.$strTmp.'$', phpversion(),$aRegs))
   43    {
   44:     exit('The website production version is in PHP '.$hPrjInfo['php'].' then that localhost version is '.phpversion().'. For avoid problems, you must put your localhost version in PHP '.$hPrjInfo['php'].'.');
   45    }
   46  

don't what i need to do for solve my problem. Comment this code ?

 

If have this code and check on php official website the ereg function . PHP tell : This function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.

 

So i have comment then and that working now.

Regard

Edited by elderyn (see edit history)
Link to comment
Share on other sites

Nice, however, something strange here.

Applications/MAMP/htdocs/dali/web/system/module.php

The directory path don't seems to be PrestaShop..

Whats is this ?
This is really from PrestaShop ?

 

Anyway.. i think you can disable the condition completely.. 

/**
if(!ereg('^'.$strTmp.', phpversion(),$aRegs))
{
    exit('The website production version is in PHP '.$hPrjInfo['php'].' then that localhost version is '.phpversion().'. For avoid problems, you must put your localhost version in PHP '.$hPrjInfo['php'].'.');
}
*/

May cause side effects, but.. just try to do and see whats happen..

Link to comment
Share on other sites

Nice, however, something strange here.

Applications/MAMP/htdocs/dali/web/system/module.php

The directory path don't seems to be PrestaShop..

Whats is this ?

This is really from PrestaShop ?

 

Anyway.. i think you can disable the condition completely.. 

/**
if(!ereg('^'.$strTmp.', phpversion(),$aRegs))
{
    exit('The website production version is in PHP '.$hPrjInfo['php'].' then that localhost version is '.phpversion().'. For avoid problems, you must put your localhost version in PHP '.$hPrjInfo['php'].'.');
}
*/

May cause side effects, but.. just try to do and see whats happen..

I have comment him and that work know.

 

but i think that isn't into prestashop (indeed my prestashop is install into this directory htdocs/dali/web/ . maybe it is a additional module or elements.

 

Regard

Edited by elderyn (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...