ensiyeh
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: moving new domain – admin redirects to oldI had the same problem.
I did not update the links in options and post guid. So whenever a page is opened it automatically reads the old guidand redirects to the old site.
So here is a great post on what must be done :http://wpbeaches.com/updating-wordpress-mysql-database-after-moving-to-a-new-url/
in summary follow below steps:
PDATE wp_options SET option_value = replace(option_value, ‘http://www.oldurl’, ‘http://www.newurl’) WHERE 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’);
I had the same problem.
I did not update the links in options and post guid. So whenever a page is opened it automatically reads the old guidand redirects to the old site.
So here is a great post on what must be done :http://wpbeaches.com/updating-wordpress-mysql-database-after-moving-to-a-new-url/
I changed the php version and It is fine. Ran into some other problems with the theme wich I am working on. Thanks for the help.
Hi,
Running PHP version: 5.4.41
Currently I have 9.3.1 installed. I am not sure what the previous one was.
Some of error from error-log
Lost connection to MySQL server during query SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.post_type = ‘post’ AND (wp_posts.post_status = ‘publish’ OR wp_posts.post_status = ‘private’) ORDER BY wp_posts.post_date DESC LIMIT require(‘wp-blog-header.php’), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
PHP Fatal error: Function name must be a string in /…./wp-content/plugins/wp-statistics/includes/functions/parse-user-agent.php on line 123