php - Can't open wordpress dashboard with wp-admin -


i have made site live(url: http://dev.localwebtest.com/nirlg/) getting following 2 errors when trying open dashboard. working fine on localhost. appreciated

warning: require_once(/home/nettech2010/public_html/nirlg/wp-admin/includes/admin.php): failed open stream: no such file or directory in /home/nettech2010/public_html/nirlg/wp-admin/admin.php on line 82

fatal error: require_once(): failed opening required '/home/nettech2010/public_html/nirlg/wp-admin/includes/admin.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nettech2010/public_html/nirlg/wp-admin/admin.php on line 82

thanks

i had similar access issues moving website local dev live environment. have made sure relevant fields changed in database? because not enough copy database , change url in admin panel. looks bit include paths might not right...

what mean is, have replaced local url links in database new ones? has solved issue me.

in case haven't here should update, connect sql database (via command line or phpmyadmin) , execute following sql statements:

update wp_options set option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') option_name = 'home' or option_name = 'siteurl';  update wp_posts set guid = replace(guid, 'http://www.oldurl','http://www.newurl');  update wp_posts set post_content = replace(post_content, 'http://www.oldurl', 'http://www.newurl');  update wp_postmeta set meta_value = replace(meta_value,'http://www.oldurl','http://www.newurl'); 

here tutorial helped me lot when transferring wordpress 1 environment another: https://wpbeaches.com/updating-wordpress-mysql-database-after-moving-to-a-new-url/

cheers!


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -