Codeinwp / wp-maintenance-mode

Adds a splash page to your site that lets visitors know your site is down for maintenance. Full access to the back- & front-end is optional.
https://wordpress.org/plugins/wp-maintenance-mode/
159 stars 82 forks source link

[WP 6.4 RC2] Fatal error after importing template #407

Closed irinelenache closed 8 months ago

irinelenache commented 10 months ago

Description

Using WP 6.4 RC2, after doing the onboarding or importing a template from the Design tab, i'm getting a fatal error (it doesn't matter if i click Go to page or Go to settings) https://vertis.d.pr/v/pDGRci

The template is imported as expected and it works fine

The error:

Fatal error: Uncaught Error: Undefined constant "WP_POST_REVISIONS" in /home/yagaziweri2384/web/wp-64.vertisite.cloud/public_html/wp-includes/revision.php:807 Stack trace: #0 /home/yagaziweri2384/web/wp-64.vertisite.cloud/public_html/wp-includes/revision.php(790): wp_revisions_to_keep() #1 /home/yagaziweri2384/web/wp-64.vertisite.cloud/public_html/wp-includes/revision.php(154): wp_revisions_enabled() #2 /home/yagaziweri2384/web/wp-64.vertisite.cloud/public_html/wp-includes/revision.php(116): wp_save_post_revision() #3 /home/yagaziweri2384/web/wp-64.vertisite.cloud/public_html/wp-includes/class-wp-hook.php(326): wp_save_post_revision_on_insert() #4 /home/yagaziweri2384/web/wp-64.vertisite.cloud/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #5 /home/yagaziweri2384/web/wp-64.vertisite.cloud/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #6 /home/yagaziweri2384/web/wp-64.vertisite.cloud/public_html/wp-includes/post.php(5481): do_action() #7 /home/yagaziweri2384/web/wp-64.vertisite.cloud/public_html/wp-includes/post.php(4939): wp_after_insert_post() #8 /home/yagaziweri2384/web/wp-64.vertisite.cloud/public_html/wp-content/plugins/wp-maintenance-mode/includes/classes/wp-maintenance-mode.php(101): wp_publish_post() #9 /home/yagaziweri2384/web/wp-64.vertisite.cloud/public_html/wp-content/plugins/wp-maintenance-mode/includes/classes/wp-maintenance-mode.php(167): WP_Maintenance_Mode->__construct() #10 /home/yagaziweri2384/web/wp-64.vertisite.cloud/public_html/wp-includes/class-wp-hook.php(324): WP_Maintenance_Mode::get_instance() #11 /home/yagaziweri2384/web/wp-64.vertisite.cloud/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #12 /home/yagaziweri2384/web/wp-64.vertisite.cloud/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #13 /home/yagaziweri2384/web/wp-64.vertisite.cloud/public_html/wp-settings.php(506): do_action() #14 /home/yagaziweri2384/web/wp-64.vertisite.cloud/public_html/wp-config.php(105): require_once('...') #15 /home/yagaziweri2384/web/wp-64.vertisite.cloud/public_html/wp-load.php(50): require_once('...') #16 /home/yagaziweri2384/web/wp-64.vertisite.cloud/public_html/wp-admin/admin.php(34): require_once('...') #17 /home/yagaziweri2384/web/wp-64.vertisite.cloud/public_html/wp-admin/post.php(12): require_once('...') #18 {main} thrown in /home/yagaziweri2384/web/wp-64.vertisite.cloud/public_html/wp-includes/revision.php on line 807

Notice: Function is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/yagaziweri2384/web/wp-64.vertisite.cloud/public_html/wp-includes/functions.php on line 6031

Notice: Function is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/yagaziweri2384/web/wp-64.vertisite.cloud/public_html/wp-includes/functions.php on line 6031

Step-by-step reproduction instructions

  1. Install WP 6.4 RC2
  2. Install Lightstart
  3. Import a template using the onboarding

Screenshots, screen recording, code snippet or Help Scout ticket

https://vertis.d.pr/v/pDGRci

Environment info

WordPress 6.4 RC2 / PHP 8 / Lightstart 2.6.8

Is the issue you are reporting a regression

No

irinelenache commented 10 months ago

@girishpanchal30 The issue is fixed now, thank you 🚀

pirate-bot commented 8 months ago

:tada: This issue has been resolved in version 2.6.9 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: