Title: Problem moving site
Last modified: January 22, 2021

---

# Problem moving site

 *  Resolved [michael walker](https://wordpress.org/support/users/michael-walker/)
 * (@michael-walker)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/problem-moving-site-2/)
 * I am in the process of moving my WordPress site to another server and am following
   the instructions and recommendations provided in the on-line documentation. I’ve
   moved the database and up=dated the wp-config.php file and have now uploaded 
   the actual site files to their new location. I’ve switched wp_debug to ‘true’.
   
   However, when I try to access the site, I get the following message: `Fatal error:
   Uncaught Error: Call to undefined function json_decode() in /var/www/html/Newsite/
   wp-content/advanced-cache.php:38 Stack trace: #0 /var/www/html/Newsite/wp-settings.
   php(95): include() #1 /var/www/html/Newsite/wp-config.php(91): require_once('/
   var/www/html/N...') #2 /var/www/html/Newsite/wp-load.php(37): require_once('/
   var/www/html/N...') #3 /var/www/html/Newsite/wp-blog-header.php(13): require_once('/
   var/www/html/N...') #4 /var/www/html/index.php(17): require('/var/www/html/N...')#
   5 {main} thrown in /var/www/html/Newsite/wp-content/advanced-cache.php on line
   38`
 * This seems to be associated with the WP-Optimize plug-in. Any help/suggestions
   appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Marc Lacroix](https://wordpress.org/support/users/marcusig/)
 * (@marcusig)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/problem-moving-site-2/#post-13954203)
 * Hi Michael,
 * The error suggests that the function `json_decode` isn’t present, but it’s a 
   core PHP function, which should exist.
 * If you are moving it to a VPS or any server which you control (not managed hosting),
   you should install the JSON library, as it’s widely used by many plugins.
 * c.f. [https://stackoverflow.com/questions/18239405/php-fatal-error-call-to-undefined-function-json-decode](https://stackoverflow.com/questions/18239405/php-fatal-error-call-to-undefined-function-json-decode)
 * Otherwise, I would encourage you to contact your hosting support.
 * Best wishes,
    Marc
 *  Thread Starter [michael walker](https://wordpress.org/support/users/michael-walker/)
 * (@michael-walker)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/problem-moving-site-2/#post-13954297)
 * Marc – Many thanks for pointing me in the right direction. The JSON library is
   installed (according to phpinfo) so I will refer to the ISP for further help.
   Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem moving site’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

## Tags

 * [moving site](https://wordpress.org/support/topic-tag/moving-site/)

 * 2 replies
 * 2 participants
 * Last reply from: [michael walker](https://wordpress.org/support/users/michael-walker/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/problem-moving-site-2/#post-13954297)
 * Status: resolved