• Resolved ntosntos0909

    (@ntosntos0909)


    I can’t post the details here, but for various reasons, our site is using the 6.2.X version of WP.
    The other day, I updated this plugin from version 3.7.4 to 3.7.9, and the revision function stopped working. It said, “A serious error has occurred on this site. Please check the site administrator’s inbox for troubleshooting instructions.”

    The error message included the following log entry: (Some directory names have been omitted.)
    An error of type E_ERROR occurred on line 36 of the /revigionary/admin/post-editor-workflow-ulLw.php file.
    -3: Uncaught Error: Call to undefined function PublishPress*Revisions·wp_get_admin_notice0 in /revisionary/admin/post-editor-workflow-ui_rvy.php:36
    Stack trace: 0 plugins/revisionary/admin/post-edit_rvy.php(87): PublishPress*RevisionsPostEditorWorkflowUl:revisionLinkParams0 1 class-wp-hook.php(308): RvyPostEdit->act_admin_head 2 class-wp-hook.php(332): WP_Hook->apply_filtersO 3 plugin.php(517): WP_Hook->do_actionO 4 admin-header.php(163): do_action0 5 edit-form-advanced.php(425): require_once(*/www/ht..)

    I also asked ChatGPT, and they told me that they were trying to reference the wp_get_admin_notice() function, which was added to the core in WP 6.4 and later, but were unable to find it because they were using WP 6.2.

    Is it no longer available in WP 6.2?
    Also, are there any plans to resolve this issue?

    • This topic was modified 8 months, 2 weeks ago by ntosntos0909.
    • This topic was modified 8 months, 2 weeks ago by ntosntos0909.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Kevin Behrens

    (@kevinb)

    @ntosntos0909 It would be possible for you to copy the current WP version’s wp_get_admin_notice() function into your own module (such as your theme’s functions.php file), wrapped in the following condition:

    if ( !function_exists('wp_get_admin_notice') ) {

    However, that is not something we would want to build into the plugin

    Plugin Author Kevin Behrens

    (@kevinb)

    @ntosntos0909 Since that WP function is only present in version 6.4 and later, I think we will modify the plugin implementation to avoid that dependency.

    Thread Starter ntosntos0909

    (@ntosntos0909)

    @kevinb

    Thank you. I was able to wrap the function in a separate file and avoid the error. I’m worried about interference with other plugins, so it would be helpful if you could implement it. I would appreciate it if you could include the update details in the history at that time.Do you know when it will be?

    • This reply was modified 8 months, 2 weeks ago by ntosntos0909.
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘About WordPress 6.2.X’ is closed to new replies.