Attempt to read property “ID” on null in frontend_functions.php
-
Full error message: AH01071: Got error ‘PHP message: PHP Warning: Attempt to read property “ID” on null in /bitnami/wordpress/wp-content/plugins/customize-my-account-for-woocommerce/include/frontend/frontend_functions.php on line 181PHP
I fixed this error by inputting this conditional at the beginning of the function:
if ($post === null) {
return $content;
}
no more error messages and everything works fine. Might help out someone else and I wanted to let the plugin developers know. Also it is best to check whether this is a good code solution.
Everything on my website is onto the newest version.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Attempt to read property “ID” on null in frontend_functions.php’ is closed to new replies.