I’m getting this error appear in my php log multiple times in quick succession. Is it anything to be worried about? How do I resolve it?
May 13, 12:14:23
PHP Notice: Trying to get property of non-object in /home/content/n3pnexwpnas03_data01/62/41653562/html/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php on line 66
I also get these appearing at the same time as the above error:
May 13, 12:14:23
PHP Notice: Undefined variable: main_color in /home/content/n3pnexwpnas03_data01/62/41653562/html/wp-content/themes/enfold/css/dynamic-css.php on line 35
May 13, 12:14:23
PHP Notice: Undefined variable: primary in /home/content/n3pnexwpnas03_data01/62/41653562/html/wp-content/themes/enfold/css/dynamic-css.php on line 48
May 13, 12:14:23
PHP Notice: Undefined variable: primary in /home/content/n3pnexwpnas03_data01/62/41653562/html/wp-content/themes/enfold/css/dynamic-css.php on line 53
Hey carlrobinson,
I didn’t see this error on your front end, but this looks to be related to your theme merged css, I see you are also using Comet Cache & Autoptimize, Perhaps try disable Enfold Theme Options > Performance > JS & CSS file merging and compression or disable Autoptimize as there maybe a conflict.
Where do you see the error?
Best regards,
Mike
Thanks Mike, yes disabling the theme options you suggested seems to have done the trick. No more errors in my PHP log!
Kind regards,
Carl
Hi,
Glad we were able to help, we will close this now. Thank you for using Enfold.
For your information, you can take a look at Enfold documentation here
And if there are features that you wish Enfold had, you can request them and vote the requested ones here
For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)
Best regards,
Mike