Jump to content

Pre-Upgrade Cloning Of Site Fatal Error: Cannot Redeclare P() (Previously Declared


Recommended Posts

I'm working on setting up a clone of my live site in order to run an upgrade from 1.4.4.1 to current.  I followed the instructions at this link that I found here in the forums:  https://www.squirrelhosting.co.uk/hosting-blog/hosting-blog-info.php?id=27

 

It seems pretty basic....export the database, import it to the new one, FTP all of the files over and change the database settings in the settings.inc file.  No errors were encountered importing the SQL file, and the file counts match between the source ftp directory and the target.

 

Upon trying to access the site, I get a 500 error, blank page.  I turned on error displays, and see this:

 

Fatal error: Cannot redeclare p() (previously declared in /home7/lakelao1/public_html/devstore/config/config.inc.php:86) in /home7/lakelao1/public_html/devstore/classes/config/config.inc.php on line 88

 

I've searched for a solution to no avail....

 

I assume I should have this up and running before attempting to upgrade....any clues?

 

Thank you,

 

-Ed G.

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

I had found those two threads in my own research, but am having trouble locating the include.  Any idea what file it could be in?  The site files are a direct copy from a running store, so I'm not sure how it would have changed on its own.

 

Thank you,

-Ed G.

Link to comment
Share on other sites

it is best if you update the 'other' topic that is in English for help.  The person posting the fix is an active member of community.

 

I also suggest you find a good file search program that allows you to search your shop files (on you computer) to find strings.

Link to comment
Share on other sites

Continuing the search, I found what looks like hundreds of files that include( or require( config.inc.php:  include(PS_ADMIN_DIR.'/../config/config.inc.php');

 

Should this be mass-updated to include_once?  

 

Could there be a PHP setting on this new server that doesn't allow it to run while it runs correctly on the production server?

 

Thanks,

 

-Ed G.

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...