WordPress site not working on localhost after duplicated from live site [closed]
WordPress site not working on localhost after duplicated from live site [closed]
Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed yesterday.
Improve this question
I'm new to WP and i wanted to make a duplicate site on my local machine to mess around with it.
I pushed the live files to a git repo, and copied them to my local site. i then downloaded the database and created a local one with the live db data.
I changed the database info in wp-config.php
But... When i try to access the page it shows the theme, but not the index page. it just says "page not found" i tried every possible URL as i'm not familiar with wordpress filestructure.
I also added: define('WP_HOME','localhost/panten-web'); define('WP_SITEURL','localhost/panten-web'); in wp-config.php.
All i get is this error: Warning: Trying to access array offset on value of type bool in C:\xampp\htdocs\panten-web\wp-content\plugins\wc-order-test-for-all\wc-order-test-all.php on line 78 (Why is boolen value not good if I haven't changed anything?)
I'm probably just missing the obvious and need to change something simple, but as i'm not familiar with wp i have no idea what to do.
Furthermore... where can i make it so that when i press anything on the site it doesn't redirect to the live website i thought defining home in wp-config should do that?
Btw,. i'm using XAMPP
Thanks in advance, and looking forward to learning more!
Turbo Multi-language Translator
Make the better internet purchasing globaly
Turbosify SEO Speed Booster
5.0 (7)•Free plan available
Get better conversions by improving store loading speed
Installed
Turbo Multi-language Chat - AI Customer service in one hand