Home>Support>“A critical error” when I try to edit or create a page

“A critical error” when I try to edit or create a page

Hi!

I have “Lawyer Zone pro” theme installed and my page is built in SiteOrigin Page Builder, but I can’t edit a homepage or any subpage anymore, I can’t also create any new subpage. When I try to edit a page or create a new one, I get the message “A critical error has occurred on this website”. WordPress is updated to the last version, and all the plugins are up-to-date.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 6 months, 8 days ago Andrew Misplon
    Hi, I Work Here

    Hi Villy

    Thanks for getting in touch.

    If you’re a semi-technical user you can use your Hosting File Manager to enable WordPress debugging to find out what the error is Page: Debugging in WordPress.

    Alternatively, while it may not be possible to diagnose the issue without enable debugging you could try by temporarily deactivating all plugins except for those authored by SiteOrigin. If the issue persists, temporarily change to a default theme like Twenty Nineteen with only SiteOrigin plugins activated. Once a working baseline is found, further testing could be done.

  2. 6 months, 8 days ago Villy

    It found this_

    Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /home/rhinocerosmedia/public_html/wp-content/themes/lawyer-zone-pro/acmethemes/sidebar-widget/acme-accordion.php:121

    Stack trace:
    #0 /home/rhinocerosmedia/public_html/wp-content/plugins/siteorigin-panels/inc/admin.php(585): Lawyer_Zone_Accordion->form()
    #1 /home/rhinocerosmedia/public_html/wp-content/plugins/siteorigin-panels/compat/layout-block.php(47): SiteOrigin_Panels_Admin->enqueue_admin_scripts()
    #2 /home/rhinocerosmedia/public_html/wp-includes/class-wp-hook.php(324): SiteOrigin_Panels_Compat_Layout_Block->enqueue_layout_block_editor_assets()
    #3 /home/rhinocerosmedia/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #4 /home/rhinocerosmedia/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /home/rhinocerosmedia/public_html/wp-admin/admin-header.php(118): do_action()
    #6 /home/rhinocerosmedia/public_html/wp-admin/edit-form-blocks.php(339): require_once(‘/home/rhinocero…’)
    #7 /home/rhinocerosmedia/public_html/wp-admin/post.php(187): require(‘/home/rhinocero…’)
    #8 {main} thrown in /home/rhinocerosmedia/public_html/wp-content/themes/lawyer-zone-pro/acmethemes/sidebar-widget/acme-accordion.php on line 121

    I downloaded acme-accordion.php and this is on line 121:
    if (count($at_all_page_items) > 0 && is_array($at_all_page_items) ){

  3. 6 months, 8 days ago Andrew Misplon
    Hi, I Work Here

    Hi Villy

    Thanks for the update. It would be best to chat with the author of your theme mentioned in the first line of the log item, they’re best positioned to lend a hand. If you’re concerned about third-party issues in the stack trace you can repeat the error and re-check the log item with all SiteOrigin plugins temporarily deactivated.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More