Support Forums for LiveMesh Themes & Plugins › Forums › Invent Theme Support › PHP get_theme_option Errors
- This topic has 6 replies, 3 voices, and was last updated 8 years, 10 months ago by kzkotval.
-
AuthorPosts
-
November 14, 2015 at 1:09 am #17634kzkotvalMember
Hi,
I keep receiving these PHP errors any time I try to execute code within my development environments.
Fatal error: Call to a member function get_theme_option() on a non-object in /srv/bindings/62cb44ea87c34a709639363f4c3a3ae5/code/wp-content/themes/invent/framework/functions/page-customization.php on line 136
bc.. 2015-11-14 00:34:47+0000 [-] Warning: array_key_exists() expects parameter 2 to be array, null given in /srv/bindings/62cb44ea87c34a709639363f4c3a3ae5/code/wp-content/themes/invent/framework/functions/page-customization.php on line 133
I took the following steps to debug:
– disabled all plugins
– reinstall Invent
– cleared caches in WordPressSite URL:
asucstudentunion.berkeley.eduWordpress login:
Username: kzkotval
Password: 4$8)7846N^#aqpHope you’re able to help!
November 14, 2015 at 8:26 am #17640VeenaModeratorCan you pls provide more details about the issue? Which code you are trying to execute?
November 14, 2015 at 7:40 pm #17649kzkotvalMemberThis reply has been marked as private.November 16, 2015 at 1:24 pm #17667RaghavendraModeratorLooks like the root cause of this issue is there has been an initialization error. Are you sure the functions.php is getting called? Looks like the global vars are not being initialized since this particular file is not being called in the right way and that is the first file which gets executed by WordPress.
I am not sure about the exact scenario which causes this error. When exactly do you see this error? Is there a way we can replicate this – that’s what I am driving at. I see that the dev environment is working on its own but wanted to know what steps lead to these errors and how are they configured.
November 16, 2015 at 11:22 pm #17670kzkotvalMemberThis reply has been marked as private.November 17, 2015 at 1:16 pm #17682RaghavendraModeratorI do not think this has anything to do with the update. Looks like the workflow script is not really initializing and storing the state of the theme right and assumes that everything is a function and not an object with a state. Large number of themes are written with functions alone (no OOP) and hence the tool has no issues is my guess. It just depends on how the script is written and what assumptions the script makes about a theme. Sorry – it is really hard to support every tool out there. If this particular script is somewhere on the web – open source, I may be able to make some time to take a look at what’s happening.
November 18, 2015 at 1:31 am #17697kzkotvalMemberThis reply has been marked as private. -
AuthorPosts
- The forum ‘Invent Theme Support’ is closed to new topics and replies.