I have “inherited” a WordPress site. I’ve migrated host and the url has (temporarily) changed. I’ve restored the database and copied the wp files over. I’ve redirected URLs to the current TLD. I’m at the point where, aside from some glitches that are likely from shonky plugins being unhappy with something (maybe the fact the old site used php 7.4.3 and I’m using 8.1), the site is kinda functional. Watching the debug log when the site glitches and gives a bad gateway, it might be associated with entries such as:
[19-Feb-2023 14:08:47 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2621440 bytes) in /var/www/html/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php on line 577
[19-Feb-2023 14:08:47 UTC] PHP Notice: Function is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href=”https://wordpress.org/support/article/debugging-in-wordpress/”>Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /var/www/html/wp-includes/functions.php on line 5835
[19-Feb-2023 14:08:47 UTC] PHP Notice: Function is_search was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href=”https://wordpress.org/support/article/debugging-in-wordpress/”>Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /var/www/html/wp-includes/functions.php on line 5835
At first, none of the links in the top nav bar worked. For example, the item called “Learn” pointed to http:<TLD>/learn and resulted in a 404. After some sleuthing, I changed the Permalinks structure from “Post name” (as it was on the old site) to “Plain”. So now, the link for “Learn” refers to “http://<TLD>/?page\_id=1408” and it works. Yay. Except some of the links in the nav bar are still of the form “<TLD>/landing” and these still produce a 404. There is also one drop-down item in the top navbar that still refers to the old address so wants to load “https://<olddomain>/somepage” WTF is that about?
There is a rat’s nest of plugins that include Elementor. Importantly, bear in mind I’m not a web developer, let alone WordPress, in my primary or secondary or … roles. There is no one to ask about this site design.
In short, my primary issues here are:
* The original Permalink structure of “Post name” had stopped working with the migration,
* Changing this to “Plain” fixed some page loads (that were then …/?page\_id=…) but not all
* Some navbar links still want to use what I guess you’d call the “Post name” structure
* Some even want to use the old site TLD (and Post name structure).
I find this an opaque framework to make sense of, so any pointers where to dig would be greatly appreciated. Ideally, I’d get to the point where the old “Post name” permalink structure worked for all items, but to start with I’d take them all just working, even using the “Plain” structure. I’m not even sure how to find where the top navbar and its items is defined.
[ad_2]