• owlfire

    (@owlfire)


    I have had a lot of problems with a WordPress site running Ver 5.8, after migration. The site was backed up in compressed files and was not a direct transfer. Upgrading it makes a lot of the problems worse, although I have a staging version I created before attempting to fix any problems, and it works. The original WP site is needed for reference and I cannot get it to function, even badly, now. Reinstalling it did not help at all and merely complicated everything. I have put the files into /wp

    I have finally got the dashboard up and Softaculous WordPress Manager shows the plug-ins and themes (and databases), but the site is a clean WP install, with no data at all. Have tried a lot of different ways around this. Have it set to debug and these are the errors stated:

    >>Fatal error: Uncaught Error: Call to undefined function get_field() in /home/csebscb2/public_html/wp/wp-

    content/themes/cseb_theme/front-page.php:25 Stack trace: #0 /home/csebscb2/public_html/wp/wp-

    includes/template-loader.php(106): include() #1 /home/csebscb2/public_html/wp/wp-blog-header.php(19):

    require_once(‘/home/csebscb2/…’) #2 /home/csebscb2/public_html/wp/index.php(17): require

    (‘/home/csebscb2/…’) #3 {main} thrown in /home/csebscb2/public_html/wp/wp-content/themes/cseb_theme/front-

    page.php on line 25<<

    There is also a Walker error that re-occurs:

    >>Warning: Declaration of description_walker::start_el(&$output, $item, $depth, $args, $id = 0) should be

    compatible with Walker_Nav_Menu::start_el(&$output, $item, $depth = 0, $args = NULL, $id = 0) in

    /home/csebscb2/public_html/wp/wp-content/themes/cseb_theme/functions.php on line 219<<

    I have tried to fix both, but it only resulted in more problems. I am not very experienced in working in .php, so any help would be appreciated.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator James Huff

    (@macmanx)

    Try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/themes/ and rename the directory of your currently active theme. Hopefully, this will force the default theme to activate and rule out a theme-specific issue (theme functions can interfere like plugins).

    Thread Starter owlfire

    (@owlfire)

    Thanks for your reply, James.

    All the plugins have been deactivated – which seems to have happened when I finally managed to get access to the Dashboard – but it hasn’t solved the problem of the site content, none of which shows (except the list of plugins). The home page just has the usual ‘Hello World’ blank and doesn’t link to anything – and a 404 error message shows if anything is clicked on. The site name and directory is correct under Settings-General. The database listed in WordPress Manager is correct too. I even tried linking it to the database of the staging version, which works and has been updated, through MySQL, but it hasn’t resolved anything.

    I renamed the theme – which was a custom one – and the site has reverted to Twenty Twenty-One, but still no content.

    I know that if I upgrade this version of WordPress, I’ll lose most of the archival content that was posted as widgets throughout the site and it’ll end up in the media library. I’ll be re-posting all that material in the staging version, but would like it to be displayed in the original theme and version so I know exactly what is missing and what to work on. Not all the material in the media library was used. This is why I haven’t updated WordPress, although I had to update the database in order to get to the Dashboard.

    It feels as if there’s something very basic at fault here, since I know all the files and material do exist – they’re visible in the directories. Host support people tried to help and ended up exactly where I am now, with no suggestions about to how to resolve it.

    Angela

    Moderator James Huff

    (@macmanx)

    Widgets still work in WordPress 6.6.1, you don’t have to worry about that. I have content from WordPress 1.2 on my site still. ??

    Do the posts appear in the Posts section of your Dashboard, or is that empty too?

    Thread Starter owlfire

    (@owlfire)

    The posts are empty too and no users are showing except a long defunct one (it was changed before the migration). Nothing in the media library, and no menu, but the plug-ins are all listed. I checked the .htaccess and the usual stuff, but it all seems correct. And a search for a WP installation came up with zip. I did import the installation from the local server and directory using WP Manager, and apparently that worked. If I try it again, I’m told it exists and is being maintained by Softaculous.

    As to the widgets, I understand that the old php is incompatible with the new WP Themes. Looking at the staging version, widgets are the only explanation I have for the missing content, since no pages or categories were created for it. There are very few of either, yet this site had a lot of content. All that’s left are the page descriptions and big blank spaces where the content would have been. I did find some content in the widget archive, but in a messy list format without punctuation. The rest of the stuff is in the media library, so not lost. The only widgets that survived intact were the standard WP ones – like the dated post archive and the search box.

    This was a custom theme design, so who knows what tricks were used. The Walker error might be a clue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.