Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
irinelenache opened this issue Oct 31, 2023 · 2 comments · Fixed by #408
Closed

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

irinelenache opened this issue Oct 31, 2023 · 2 comments · Fixed by #408
Assignees
Labels
bug This label could be used to identify issues that are caused by a defect in the product. released Indicate that an issue has been resolved and released in a particular version of the product.

Comments

@irinelenache
Copy link

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 irinelenache added the bug This label could be used to identify issues that are caused by a defect in the product. label Oct 31, 2023
girishpanchal30 added a commit that referenced this issue Nov 1, 2023
@girishpanchal30 girishpanchal30 linked a pull request Nov 1, 2023 that will close this issue
@irinelenache
Copy link
Author

@girishpanchal30 The issue is fixed now, thank you 🚀

@pirate-bot
Copy link
Contributor

🎉 This issue has been resolved in version 2.6.9 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@pirate-bot pirate-bot added the released Indicate that an issue has been resolved and released in a particular version of the product. label Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This label could be used to identify issues that are caused by a defect in the product. released Indicate that an issue has been resolved and released in a particular version of the product.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants