- This topic has 7 replies, 3 voices, and was last updated 5 years, 2 months ago by Tom.
September 23, 2015 at 4:16 pm #139204Ziad
I just purchased and installed GP Premium. I get the following errors in the customizer when I activate another theme:
Warning: Creating default object from empty value in /home4/tlac/public_html/wp-content/plugins/gp-premium/addons/generate-blog/functions/generate-blog.php on line 156
Warning: Creating default object from empty value in /home4/tlac/public_html/wp-content/plugins/gp-premium/addons/generate-blog/functions/generate-blog.php on line 157
Steps to reproduce:
– Activate all GP add-ons
– Select a different theme
– Go to the Customize area
– The errors are displayedSeptember 23, 2015 at 4:18 pm #139206TomLead DeveloperLead Developer
So these errors are showing up when a different theme (not GeneratePress) is active?
This is most likely because all of GP Premium requires GeneratePress to be activated.
That being said, I don’t want any errors to show up when testing out other themes etc.. so I’ll look into suppressing those warnings.September 23, 2015 at 4:22 pm #139208Ziad
What I did was:
– Activate GP
– Activate all Add-Ons
– Changed my theme to another theme
– Went to Customize it. That’s where I got the error.
BTW, FYI, also note that when I do this, the “GeneratePress” entry in the Appearance menu goes away, but the “GP Hooks” entry still shows,
ZiadSeptember 23, 2015 at 10:16 pm #139245TomLead DeveloperLead Developer
This is all expected behavior.
GP Premium is a plugin, so it doesn’t know if you’ve changed themes away from GeneratePress (there’s no function for that).
This means if you change your theme away from GP, you want to deactivate GP Premium (as it’s useless without GP).
Let me know if you need more info 🙂September 24, 2015 at 7:14 am #139360Ziad
OK, thank you Tom,
ZiadSeptember 24, 2015 at 9:38 am #139408TomLead DeveloperLead DeveloperSeptember 24, 2015 at 12:36 pm #139471KIVA
This error is not allowing me to update my WordPress. And shows up in my customizer. Im not sure what it means.
Creating default object from empty value in /home1/public_html/wordpress/wp-content/themes/generatepress/inc/customizer.php on line 33
ThanksSeptember 24, 2015 at 1:23 pm #139473TomLead DeveloperLead Developer
You can fix that error by updating to the latest version of GeneratePress.
Go to “Dashboard > Updates” and you should see the update available.
Let me know 🙂
- You must be logged in to reply to this topic.