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

[ECE] fix fatal error "Uncaught Error: Call to a member function get_total() on null" #3599

Merged
merged 4 commits into from
Nov 13, 2024

Conversation

Mayisha
Copy link
Contributor

@Mayisha Mayisha commented Nov 12, 2024

Fixes #3598

Testing instructions

  • Enable the ECE feature flag.
  • In the Stripe settings page, enable the express checkout methods.
  • Go to "Pages > Add New" page.
  • In develop branch, notice that a fatal error occurs.
  • In this branch, there should be no fatal error. You should be able to create a new page.

Mayisha and others added 2 commits November 12, 2024 10:57
* enable ece feature flag by default for new accounts only

* add changelog

* call the method
@Mayisha Mayisha changed the base branch from develop to release/8.9.0 November 12, 2024 07:56
Copy link
Contributor

@annemirasol annemirasol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No more fatal when adding a new page
✅ No ECE button for block cart, block checkout and shortcode checkout, if cart total is 0.

Documenting here a related discovery, but I think should be a separate PR -- I still get ECE in shortcode cart even when cart total is 0. I do not get the IntegrationError that was present for the other pages, however. EDIT: nvm

@annemirasol
Copy link
Contributor

changed the base branch from develop to release/8.9.0

From Slack conversations, you may want to rebase to develop instead?

@Mayisha Mayisha changed the base branch from release/8.9.0 to develop November 12, 2024 18:28
@Mayisha Mayisha merged commit 8a6d46f into develop Nov 13, 2024
33 of 35 checks passed
@Mayisha Mayisha deleted the fix/3598-falat-ece branch November 13, 2024 09:48
diegocurbelo pushed a commit that referenced this pull request Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants