• The website I’m building broke in wordpress utility, I can no longer login in my site and it happened in 2 different sites, one that I already made changes and one with a fresh installation each with a different hosting provider and both worked before the last update, this is the error message both pages throw:

    Fatal error: Uncaught Error: Call to undefined function aeonium_pattern_content() in /home/aimayabc/public_html/wp-content/themes/aeonium/patterns/media-text-alt.php:11 Stack trace: #0 /home/aimayabc/public_html/wp-includes/block-patterns.php(326): include() #1 /home/aimayabc/public_html/wp-includes/class-wp-hook.php(307): _register_theme_block_patterns('') #2 /home/aimayabc/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #3 /home/aimayabc/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #4 /home/aimayabc/public_html/wp-settings.php(598): do_action('init') #5 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1291): require('/home/aimayabc/...') #6 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1212): WP_CLI\Runner->load_wordpress() #7 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(23): WP_CLI\Runner- in /home/aimayabc/public_html/wp-content/themes/aeonium/patterns/media-text-alt.php on line 11 Error: Ha habido un error crítico en esta web.Más información sobre la solución de problemas de WordPress. Ha habido un error crítico en esta web. <!-- wp:group {"align":"full","layout":{"contentSize":"66rem"}} --> <div class="wp-block-group alignfull"><!-- wp:media-text {"mediaLink":"

    • This topic was modified 2 years, 3 months ago by danixdead.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Theme Author uxl

    (@uxl)

    You would only get the Call to undefined function aeonium_pattern_content() error if the aeonium_pattern_content() function did not exist, but this function does exist in the theme.

    So, it looks like something is removing this function from the theme’s functions.php file.

    Have you or anyone else modified the theme’s functions.php file?
    Or possibly some other third-party WordPress plugin, or a cPanel plugin is making changes to the theme which is then causing the error.

    I can see on your site you now have a different theme active.
    You could try deleting the Aeonium theme and then installing it again, so that it is a fresh unmodified version of the theme.

    Thread Starter danixdead

    (@danixdead)

    yeah, just did a fresh install of wordpress to see if there was a problem of my hosting provider, the functions.php file wasn’t manualy modified and this are the only plugins I installed:

    • Akismet Anti-Spam
    • Contact Form 7
    • Limit Login Attemps Reloaded
    • WP Super Cache
    • Yoast SEO

    I have all of these installed and up to date in other site and didn’t cause any problem.
    The problem is that I manage the site thru wordpress toolkit via cpanel, but after installing/updating the theme the toolkit couldn’t recognize the wordpress installation and says the page is broken, I can access via wp-admin but the user/password was saved in cpanel and didn’t save it, and couldn’t reset the password.
    One site had smart updates enabled and the other don’t, it could be that WordPress Toolkit is doing something but there is where I installed the theme.

    I already did a fresh install in one of my sites but the same happened.

    Theme Author uxl

    (@uxl)

    Thanks for the detailed information.

    I have tested this using the cPanel WordPress Toolkit to create a new installation with the same plugins and the Aeonium theme, and it all works correctly with no errors.

    It sounds like the issue could be something unique to your setup or hosting environment.

    Are you able to login to your site’s WordPress Dashboard (not the cPanel WordPress Toolkit interface) and navigate to ‘Tools’ > ‘Site Health’ > ‘Info’ and click the ‘Copy site info to clipboard’ and then paste the information in a reply here?

    Separately in your cPanel WordPress Toolkit interface, there should be a “Logs” link. If you open that, are there any log entries marked “ERROR” (highlighted in red) or “WARNING” (highlighted in orange color)?

    Theme Author uxl

    (@uxl)

    Update: I have now been able to recreate the issue that you are seeing.

    In the cPanel WordPress Toolkit interface, below the screenshot for the managed site there is a button marked “Log in” and when I click that I get this error: “WordPress administrator credentials are missing“.

    To the right of the login button there is a “Setup” link, and when I click this I see the same error message that you originally posted.

    The thing is, I can view the live website with any issues, and I can login to the site dashboard (wp-admin) without any issues, if I manually enter the url (mywebsite.com/wp-login.php) in the browser address bar.

    I suspect the issue may be something to do with the WordPress inbuilt functionality that registers a theme’s block patterns. It may be running either too early or too late. Not 100% sure so I will have to do some more digging into this.

    Thread Starter danixdead

    (@danixdead)

    Yeah, I really like the theme and it was working great and this happened, I’ll be following up.

    Thanks for your support, really appreciate it. ??

    Theme Author uxl

    (@uxl)

    I’ve pushed an update to the theme to work around and fix this issue.

    Please update Aeonium to version 1.0.2 and refresh the site in the cPanel WordPress Toolkit and all should then work correctly.

    It seems the original issue was only present when using the cPanel WordPress Toolkit. Maybe it does something different and non-standard in the way it loads php functions and WP hooks? I’m not sure but anyway it is fixed in the v1.0.2

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘The theme breaks wordpress’ is closed to new replies.