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

Fix Uncaught ValueError in Gravity Forms and WordPress SEO connectors #1508

Merged
merged 9 commits into from
Jul 19, 2024

Conversation

tharsheblows
Copy link
Contributor

Fixes #1489, #1443, #1445

Adds in method for escaping the % character for use in log messages. There are other ways to do this which involve fixing the problem in the log() method but for back compat and in case anyone has extended this, I think we should stick with this way.

I've also enabled the debug.log in the local environment.

Checklist

  • Project documentation has been updated to reflect the changes in this pull request, if applicable.
  • I have tested the changes in the local development environment (see contributing.md).
  • I have added phpunit tests. (Not for Gravity Forms which is a premium plugin so we can't include)

Release Changelog

  • Fix Uncaught ValueErrors in PHP 8 for the WordPress SEO and Gravity Forms connectors.
  • Add a method to the abstract Connector class to easily avoid those errors in the future

@tharsheblows tharsheblows added this to the 4.0.1 milestone Jul 17, 2024
Copy link
Contributor

@delawski delawski left a comment

Choose a reason for hiding this comment

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

@tharsheblows Thank you for working on this fix. I left some feedback, please check it out.

connectors/class-connector-gravityforms.php Show resolved Hide resolved
connectors/class-connector-gravityforms.php Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
@delawski delawski merged commit e78e3d6 into develop Jul 19, 2024
2 checks passed
@delawski delawski deleted the fix/issue-1489-valueerror-class-log branch July 19, 2024 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uncaught ValueError: Unknown format specifier "!"
2 participants