Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

Unexpected notice and warnings after WP migration

         

gmac6791

7:31 pm on Mar 11, 2022 (gmt 0)

10+ Year Member Top Contributors Of The Month



(Disclaimer: I've been through the documentation for how to migrate WP to a new server, so please don't refer me back to it. :) )

The Webmaster for a website recently passed away, and I've been given the fun task of migrating to a new server as the site owner changes host.
It is a heavily customized WP site.

After migrating to the new server, the website looks good except for some breakage that I'm having a hard time tracking down.
When I changed define('WP_DEBUG', false); to true, a whole lot of errors, notices and warnings appeared. I was able to fix the errors, but the notices and warnings are a mystery because they don't seem to apply to files and code that they're referencing.

There are a lot of undefined variables, undefined indexes, and then this one:

Warning: Use of undefined constant CURL_HTTP_VERSION_2_0 - assumed 'CURL_HTTP_VERSION_2_0' (this will throw an Error in a future version of PHP) in...

I've checked the files, and all variables and indexes are certainly defined.

The big thing I wonder about is why this didn't happen on the original server? The migration was just a routine task, and the site should have worked from the start. I even tried changing PHP versions on the server, but no change.

I'd greatly appreciate any suggestions or help on this. Thanks in advance!

not2easy

8:53 pm on Mar 11, 2022 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Some of those could be related to third party tools or plugins. Can you look through the plugins' folders for possible outdated script calls? Or it may be easier to disable them one at a time to check for error status without plugin x or y for example?