Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

PHP Warning: Attempt to read property "post_content" on null #165

Open
mitsunori-yoshizaki opened this issue Feb 28, 2024 · 4 comments
Open

Comments

@mitsunori-yoshizaki
Copy link

The affected part raises the error PHP Warning: Attempt to read property "post_content" on null in PHP 8.1.22

PHP Warning: Attempt to read property "post_content" on null in [FILEPATH]/wp-content/plugins/table-of-contents-plus/includes/class-toc-plus.php on line 1533',

@zedzedzed
Copy link
Owner

Thanks for reporting this, what steps do you follow to trigger this warning?

@mitsunori-yoshizaki
Copy link
Author

Thanks for the reply. This error occurs when displaying the submission completion screen from a contact form created with another plugin.

@zedzedzed
Copy link
Owner

Are you able to try the latest change from https://github.com/zedzedzed/table-of-contents-plus/archive/refs/heads/main.zip and let me know if that resolves your issue?

@mitsunori-yoshizaki
Copy link
Author

I've tried table-of-contents-plus-main.zip and the issue was resolved! Thank you for your swift response :‑D

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants