• Hello,

    we cannot edit pages in WP backend any more – fatal error. The debug.log file says:

    [28-Jan-2023 11:59:10 UTC] PHP Fatal error:  Uncaught TypeError: array_merge(): Argument #1 must be of type array, null given in /www/htdocs/w018b96a/bismarckshoehe.de/wp-includes/widgets/class-wp-widget-media-gallery.php:82
    Stack trace:
    #0 /www/htdocs/w018b96a/bismarckshoehe.de/wp-includes/widgets/class-wp-widget-media-gallery.php(82): array_merge(NULL, Array)
    #1 /www/htdocs/w018b96a/bismarckshoehe.de/wp-includes/widgets/class-wp-widget-media.php(335): WP_Widget_Media_Gallery->get_instance_schema()
    #2 /www/htdocs/w018b96a/bismarckshoehe.de/wp-content/plugins/siteorigin-panels/inc/admin.php(548): WP_Widget_Media->form(Array)
    #3 /www/htdocs/w018b96a/bismarckshoehe.de/wp-content/plugins/siteorigin-panels/compat/layout-block.php(37): SiteOrigin_Panels_Admin->enqueue_admin_scripts()
    #4 /www/htdocs/w018b96a/bismarckshoehe.de/wp-includes/class-wp-hook.php(308): SiteOrigin_Panels_Compat_Layout_Block->enqueue_layout_block_editor_assets('post.php')
    #5 /www/htdocs/w018b96a/bismarckshoehe.de/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #6 /www/htdocs/w018b96a/bismarckshoehe.de/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #7 /www/htdocs/w018b96a/bismarckshoehe.de/wp-admin/admin-header.php(118): do_action('admin_enqueue_s...', 'post.php')
    #8 /www/htdocs/w018b96a/bismarckshoehe.de/wp-admin/edit-form-blocks.php(309): require_once('/www/htdocs/w01...')
    #9 /www/htdocs/w018b96a/bismarckshoehe.de/wp-admin/post.php(187): require('/www/htdocs/w01...')
    #10 {main}
      thrown in /www/htdocs/w018b96a/bismarckshoehe.de/wp-includes/widgets/class-wp-widget-media-gallery.php on line 82
    

    When we switch to a default WP theme the error is gone, so it must come from Enigma Theme.

    Please help. Thank you.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Infigo Software

    (@vibhorp)

    Hello @raininger ; Sorry for delay in response.
    Pl update me if the issue still exist with a snapshot of backend
    thanks.

    Thread Starter raininger

    (@raininger)

    Hello and thank you for your reply.

    The issue still exists.
    Error message –> screenshot: https://ibb.co/PF9Bg2M

    Meanwhile I found out how to bypass the issue by changing a line in each of two widget files:
    /wp-includes/widgets/class-wp-widget-media-gallery.php. —> line 82
    /wp-includes/widgets/class-wp-widget-media-image.php —> line 70
    Changes –> screenshot: https://ibb.co/N1ppgmN
    This is of course only a temporary bypass since with the next plugin update the changes will be overwritten.

    Theme Author Infigo Software

    (@vibhorp)

    Hello @raininger ; I will not suggest you to edit WP’s core files.

    Thanks.

    Thread Starter raininger

    (@raininger)

    I know that. That’s why I wrote that it’s only a temporary bypass. I hoped you would tell me how to fix it, that’s why I asked for support here.

    Theme Author Infigo Software

    (@vibhorp)

    @raininger : Best Practive would be —
    1) Take Proper Backup ; Remove any malicious files or folder.
    2) Take backup of DB as well.
    3) Install a fresh WP setup on new fresh hosting.
    4) Enable all required Plugins-Themes always remember to add Security plugins on WP site.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal Error when opening page in WP backend’ is closed to new replies.