- This topic has 24 replies, 5 voices, and was last updated 4 years, 12 months ago by Tom.
-
AuthorPosts
-
August 27, 2016 at 3:56 pm #221768Balázs
I installed and activated GP Premium, and now the Live preview doesn’t work, and the Customization also doesn’t work for any other themes.
Looking at logs, it seems gp-premium is at fault:"PHP message: PHP Fatal error: Uncaught Error: Call to undefined function generate_get_defaults() in ************/wp-content/plugins/gp-premium/blog/functions/customizer.php:725 Stack trace: #0 ************/wp-includes/class-wp-customize-control.php(235): generate_blog_is_excerpt(Object(WP_Customize_Control)) #1 ************/wp-includes/class-wp-customize-control.php(293): WP_Customize_Control->active() #2 ************/wp-includes/class-wp-customize-control.php(309): WP_Customize_Control->to_json() #3 ************/wp-includes/class-wp-customize-manager.php(1918): WP_Customize_Control->json() #4 ************/wp-includes/plugin.php(524): WP_Customize_Manager->customize_pane_settings('') #5 ************/wp-admin/customize.php(185): do_action('customize_contr...') #6 {main} thrown in ************/wp-content/plugins/gp-premium/blog/functions/customizer.php on line 725" while reading upstream
I’m a complete beginner to WordPress, so bear with me.
I deleted gp-premium, re-added it, but still happens.
I’m using WordPress latest of today.Greets,
BalazsAugust 27, 2016 at 4:24 pm #221773TomLead DeveloperLead DeveloperHi there,
Make sure GeneratePress is installed and active: https://generatepress.com/install-generatepress/
That should fix it 🙂
August 27, 2016 at 4:29 pm #221778LyleI noticed the Customizer not being available for another theme after switching from GP just to do some testing. Thought it was a dodgy install and didn’t think much more about it. However, this post from Balazs made me do a test on a clean install and yes, the Customizer issue is reproducible (Preview changes or clicking on the permalink in the page/post editor still works for me).
I am not sure if this is a “bug” or just “how things work” but there is a rather easy fix. The key is that one has to either go to Appearance > GeneratePress and deactivate all of the GP Premium Addons before changing the theme from GeneratePress or deactivate the GP Premium plugin. Once you do that, then the Customizer items for the theme you are changing to will be available.
Cheers!
LyleAugust 27, 2016 at 4:34 pm #221781TomLead DeveloperLead DeveloperIf GP Premium is activated, GeneratePress has to be activated as well.
GP Premium uses GeneratePress functions, so if GeneratePress isn’t active GP Premium is looking for functions that don’t exist.
August 27, 2016 at 4:36 pm #221782BalázsIt is, I mean I can access all the advanced functionality. I downloaded gp-premium.zip and installed manually.
I followed this: https://generatepress.com/knowledgebase/install-activate-addons/
I then went here: https://generatepress.com/knowledgebase/updating-add-ons/
Actually I forgot to paste the license key, so I did it now. It sais “Gp Premium 1.2.89” Is that correct? I don’t know if the update worked, I got a green chekmark next to the license key.
However, the Customizer still didn’t work.The “fix” Lyle mentioned “fixed” it, though I’d rather call it a temporary workaround.
Did I do something wrong or can this be fixed?EDIT: Ah wait, just read your post, will try that now…
Greets,
BalázsAugust 27, 2016 at 4:41 pm #221784BalázsHmmm…, GeneratePress (the Theme) is installed and active (it also was before). The theme itself works. It sais version 1.3.39.
Gp Premium plugin is also installed and activated. Version 1.2.89.
I can’t Live Preview or Customize other themes.EDIT: OK, so as I understand it, when the GP Premium stuff is activated, BUT I want to preview other themes, the GeneratePress Theme itself gets deactivated, so the premium plugins fail, is that it? So there is nothing to be done about it then? (This was what Lyle said “how things work”?)
Greets,
BalázsAugust 27, 2016 at 5:34 pm #221792TomLead DeveloperLead DeveloperHi there,
I’m afraid so, GP Premium assumes that GP is activated, so when it’s switched off, those functions that GP Premium needs don’t exist anymore.
August 27, 2016 at 5:53 pm #221798BalázsIsn’t there a way to show a big red box or something that “Hey, the GP Plugins are failing, hence Live Preview fails too, because the GP Theme is not active!” or something?
Because the plugins basically break a core functionality of WordPress, namely the Live preview of other themes is broken while the plugins are active. I would consider this a bug, and for a first time user, especially for a less technically inclined, can leave him wondering why he can’t preview themes anymore (like Lyle assumed his WordPress install was dodgy).
If it can’t be fixed now, at the very least some big letter warning should be shown somewhere, that Live preview won’t work while the GP Plugins are active.
But better yet, isn’t it possible to just simply disable the plugin functionality automatically when the GP Theme is not active, like auto-detecting and silently disabling the plugin?
Greets,
BalázsAugust 27, 2016 at 5:58 pm #221799TomLead DeveloperLead DeveloperThere’s no real way for plugins to check what the active theme is (consistently) – I’ve tried quite a bit in the past.
You’re right though – it’s not the friendliest way to fail when previewing other themes.
For now, until I figure out a fix, it’s best to deactivate GP Premium (or just the add-ons) while previewing other themes.
I’ll try to find a solution for the next version 🙂
August 27, 2016 at 6:04 pm #221800BalázsIf a big warning is shoved into my face like “You WON’T preview other themes while the plugins are active. You’ve been warned!”, I’d consider that a fix for me 😀
But if you find a real solution, that’d be great!
Anyway, the GP theme is awesome! I just (today) began using WordPress in general, and I’m sure a big part in my enjoyment so far was thanks to GP, so thanks for it, and keep up the good work!
Greets,
BalázsAugust 27, 2016 at 6:05 pm #221801TomLead DeveloperLead DeveloperReally appreciate your input, thank you!
Glad you’re liking GP so far as well 🙂
March 29, 2019 at 4:10 am #853274HansI have the same problem, suddenly, during building the website
– installed GeneratePress
– installed the GP Premium (version 1.7.8)Activate the GP Premium:
– Customise will give a blank page trying to start Live PreviewDeactivate GP Premium Plugin:
– Customise can be used normallyHowto solve that (server is WP 5.1.1, memory is set to 256M on nginx)?
March 29, 2019 at 4:17 am #853278DavidStaffCustomer SupportHi there,
can you check what PHP version you are on, recommend that is 7.x let me know.
March 29, 2019 at 4:32 am #853294HansThe server data is:
Web server: nginx/1.12.2 (Linux FHML-SRV067 3.10.0-957.5.1.el7 64-bit #1 SMP Fri Feb 1 14:54:57 UTC 2019)
ABSPATH: /usr/share/nginx/wordpress/
WP_CONTENT_DIR: /usr/share/nginx/wordpress/wp-content
WP_PLUGIN_DIR: /usr/share/nginx/wordpress/wp-content/plugins
Table prefix: wp_
Web-server disk space in use by UpdraftPlus: 44.3 MB refresh
Peak memory usage: 8.25 MB
Current memory usage: 8.25 MB
Memory limit: 1024M
PHP version: 7.2.15 – show PHP information (phpinfo)
MySQL version: 5.5.60-MariaDB
Curl version: 7.29.0 / SSL: NSS/3.36 / libz: 1.2.7
OpenSSL version: OpenSSL 1.0.2k 26 Jan 2017
MCrypt: No
ZipArchive::addFile: Yes
zip executable found: Yes: /usr/bin/zipMarch 29, 2019 at 4:40 am #853301DavidStaffCustomer SupportHave you checked to see if there are other plugins that are conflicting?
-
AuthorPosts
- You must be logged in to reply to this topic.