Localhost transferred WordPress php errors
-
Hi,
I am trying to set up an existing wordpress site on localhost. It is a very old site, running on WordPress 4.2.21 running Nature Shine theme. (I know, it is an old version. I want to upgrade, but I am not sure my back-ups would work in case something goes wrong. If I cannot get it working on localhost, how can I be sure it will work when I reupload it?)This is how the live website looks currently: https://imgur.com/a/HROyUNR
I have downloaded and set up the site in two ways, but encounter issues in both ways:
Try 1. Duplicator
I have tried the Duplicator plugin (version 1.2.40)
The whole process goes smoothly. The only warnings it gives before packing are“WordPress Version: ‘4.2.21’”,
“PHP Open Base Dir: ‘ON'”,
“PHP is unable to read the following items and they will not be included in the package. (a .procmail file).”The install process on localhost works, until it says: login to access the site or something similar, and sends me to:
http://localhost/lovinglife/wp-login.php
Here, I cannot login, but the following errors are displayed:Warning: Illegal string offset ‘remember’ in
wp-includesuser.php on line 39 Warning: Cannot assign an empty string to a string offset in
wp-includesuser.php on line 39 Warning: Illegal string offset ‘user_login’ in
wp-includesuser.php on line 54 Fatal error: Uncaught Error: Cannot create references to/from string offsets in
wp-includesuser.php:54 Stack trace: #0 wp-login.php(795): wp_signon(”, ”) #1 {main} thrown in wp-includesuser.php on line 54 Going to localhost/SiteName yields the following result: https://imgur.com/a/HROyUNR
Try 2: Manual.
I have downloaded all files via FTP and the database separately. Then I set it up with the wp-config file to connect with the database. This yields an even poorer result: https://imgur.com/a/HROyUNRI have only built websites previously with a NodeJs backend, so I don’t have much experience figuring the given errors out in php.
Does someone have an idea what I can try to start working on a rebuild of the site without the live website being in danger of going down? Even better: Does anyone have a safe solution getting the localhost website to work so the live website is not in danger?
-
This forum is strictly for WordPress.com hosted sites, so we won’t be able to support a localhost install.
WordPress.com and WordPress.org are a little separate, and that can be confusing.
You’ll want to use the forums at https://wordpress.org/support/ for any support on managing your site. Hope that helps to point you in the right direction!
- The topic ‘Localhost transferred WordPress php errors’ is closed to new replies.