• Resolved seclo

    (@seclo)


    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.

    • This topic was modified 1 year, 2 months ago by seclo.
Viewing 1 replies (of 1 total)
  • Plugin Author SysBasics

    (@phppoet)

    Hey

    thanks for reporting and suggesting a fix. it been fixed with 2.0.12 update.

    let me know if there is anything else i can help you with

Viewing 1 replies (of 1 total)
  • The topic ‘Attempt to read property “ID” on null in frontend_functions.php’ is closed to new replies.