• Resolved seshelby1

    (@seshelby1)


    I just installed the latest release and it results in a fatal error on PHP 8

    Error Details
    =============
    An error of type E_ERROR was caused in line 1065 of the file  /www/wp-content/plugins/publishpress/modules/editorial-metadata/editorial-metadata.php. Error message: Uncaught TypeError: array_merge(): Argument #1 must be of type array, null given in  /www/wp-content/plugins/publishpress/modules/editorial-metadata/editorial-metadata.php:1065
    Stack trace:
    #0  /www/wp-content/plugins/publishpress/modules/editorial-metadata/editorial-metadata.php(1065): array_merge()
    #1  /www/wp-content/plugins/publishpress/modules/editorial-metadata/editorial-metadata.php(1667): PP_Editorial_Metadata->update_editorial_metadata_term()
    #2  /www/wp-content/plugins/publishpress/modules/editorial-metadata/editorial-metadata.php(258): PP_Editorial_Metadata->migrateMetadataPostTypes()
    #3  /www/wp-content/plugins/publishpress/publishpress.php(496): PP_Editorial_Metadata->upgrade()
    #4  /www/wp-includes/class-wp-hook.php(308): publishpress->action_ini_for_admin()
    #5  /www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #6  /www/wp-includes/plugin.php(517): WP_Hook->do_action()
    #7  /www/wp-settings.php(617): do_action()
    #8  /www/wp-config.php(91): require_once('...')
    #9  /www/wp-load.php(50): require_once('...')
    #10  /www/wp-admin/admin.php(34): require_once('...')
    #11  /www/wp-admin/plugins.php(10): require_once('...')
    #12 {main}
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Steve Burge

    (@stevejburge)

    Hi @seshelby1

    Thanks for using PublishPress.

    – Are you doing anything specific to trigger this error?
    – What metadata do you have set up on your site?
    – PHP 8.0 or 8.1?
    – Does the error go away if you reload the page?

    Thread Starter seshelby1

    (@seshelby1)

    I had to delete the plugin to get my website to load but right now it happens as soon as the plugin is activated. So I went to Plugins > Add New. Searched for “Publish Press Planner”. Clicked Install, Clicked “Activate” and the website crashes.

    How do I check to see what metadata is set?

    PHP 8.1

    The error does not go away.

    Plugin Author Olawale Adesina

    (@olatechpro)

    Hello @seshelby1

    Here’s a potential fix for the reported issue.

    Can you try it and update us on the status?

    https://drive.google.com/file/d/1p7l2LUDX_zT0rXFDxTDS8TVWMlsAigIj/view?usp=sharing

    Thread Starter seshelby1

    (@seshelby1)

    That worked. Thank you for your fast response!

    Confirmed. Same issue, this version fixes it on php 8.0.26.

    Using pp calendar, notifications, statuses (with custom statuses and descriptions), editorial comments, all the notifications related functions and NOT editorial metadata.

    Error produces a white page on front and backend. You don’t have to do anything to cause it. Reload does not change anything.

    Plugin Author Steve Burge

    (@stevejburge)

    Thanks for reporting this, @xxxlesy. We’ll release the update officially on Monday.

    Plugin Author publishpress

    (@publishpress)

    Update: it’s released already.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Fatal Error’ is closed to new replies.