• Resolved sagargentraf

    (@sagargentraf)


    when i enabled the plugin the error occurred on wordpress admin panel on all posts pages and all pages. I doent shown the list over there attaching sceenshot of the same

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Adam Salah

    (@adam1318)

    Hello @sagargentraf,

    Thank you for reaching out.

    Could you please provide us with the exact error message that appears on your WordPress admin panel? This will help us better understand the issue and assist you more effectively.

    Looking forward to your reply.

    Best regards,
    Adam
    Have a great day!

    Thread Starter sagargentraf

    (@sagargentraf)

    Hi,

    I’m experiencing an issue on a client’s WordPress website where the “SEO Redirection” plugin appears to cause a fatal error in the admin area.

    After logging into wp-admin, I received the following email from WordPress:

    Subject: Your Site is Experiencing a Technical Issue

    WordPress has a built-in feature that detects when a plugin or theme causes a fatal error and sends an automated email.

    In this case, WordPress caught an error with your theme, Divi.

    Error was triggered at:
    https://website_url/wp-admin/edit.php?post_type=page&ids=xxxxxx

    If your site appears broken and you can’t access the dashboard normally, WordPress provides a special recovery mode:
    https://website_url/wp-login.php?action=enter_recovery_mode&rm_token=xxxxxxxxxx

    WordPress version: 6.8.1
    Active theme: Divi Child Theme (v1.0.0)
    PHP version: 8.2.28

    To troubleshoot, I disabled all plugins and re-enabled them one by one. The error only reappears when the SEO Redirection plugin is activated.

    Any guidance or update on this issue would be appreciated.

    Thanks!

    Thread Starter sagargentraf

    (@sagargentraf)

    \   Error Details

    =============

    An error of type E_ERROR was caused in line 8148 of the file /home/websiteName/public_html/wp-content/themes/Divi/functions.php. Error message: Uncaught TypeError: basename(): Argument #1 ($path) must be of type string, array given in /home/websiteName/public_html/wp-content/themes/Divi/functions.php:8148

    Stack trace:

    #0 /home/websiteName/public_html/wp-content/themes/Divi/functions.php(8148): basename(Array)

    #1 /home/websiteName/public_html/wp-includes/class-wp-hook.php(326): et_layout_post_class(Array)

    #2 /home/websiteName/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)

    #3 /home/websiteName/public_html/wp-includes/post-template.php(607): apply_filters('post_class', Array, Array, 282012)

    #4 /home/websiteName/public_html/wp-admin/includes/class-wp-posts-list-table.php(1443): get_post_class(Array, Object(WP_Post))

    #5 /home/websiteName/public_html/wp-admin/includes/class-wp-posts-list-table.php(839): WP_Posts_List_Table->single_row(Object(WP_Post), 0)

    #6 /home/websiteName/public_html/wp-admin/includes/class-wp-posts-list-table.php(815): WP_Posts_List_Table->_display_rows(Array, 0)

    #7 /home/websiteName/public_html/wp-admin/includes/class-wp-list-table.php(1712): WP_Posts_List_Table->display_rows()

    #8 /home/websiteName/public_html/wp-admin/includes/class-wp-list-table.php(1639): WP_List_Table->display_rows_or_placeholder()

    #9 /home/websiteName/public_html/wp-admin/edit.php(503): WP_List_Table->display()

    #10 {main}

      thrown
    Thread Starter sagargentraf

    (@sagargentraf)

    Thread Starter sagargentraf

    (@sagargentraf)

    Issue is solved by updating divi function.php line no 8148 to
    $template_name = ( ! empty( $template ) && is_string( $template ) ) ? basename( $template ) : ”;

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘error in wordpress core file due to plugin’ is closed to new replies.