Plugin doesn’t work properly
Hy i’m using Rapid Mailer and when i want to opt-in on mailing list it show the same error.:
Fatal error: Call to a member function create_css_builder() on a non-object in /home5/public_html/ttdistribution/wp-content/themes/vantage/premium/inc/customizer.php on line 440
(btw plugin works fine with other free wordpress themes)
Please tell me what to do!? I was try to reinstall everything include theme but still no result.
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
3this is code in that file between line 438 and 440:
function vantage_customizer_style() {
global $siteorigin_vantage_customizer;
$builder = $siteorigin_vantage_customizer->create_css_builder();
what can i do with that?
Hi Tin
Thanks for running Vantage.
I’ll ask Greg to take a look at this. In the mean time perhaps rule out a few challenges for us:
1. Dashboard > Updates: update anything available.
2. De-activate all plugins besides ones by SiteOrigin and the plugin in question. Re-test.
3. Is the issue presenting when you add the plugin via Page Builder or to a widget area?
Thanks for your patience.
Hi Tin
So the reason this is coming up is that the plugin is calling the wp_head action without ever calling the init action. I’m not sure why the plugin would be doing this. It’s best practice to always call the init action.
It’s a fairly easy fix though. I’ve already edited the development version of Vantage with the fix. If you need to apply a hot fix, just edit the function to look like the following.
function vantage_customizer_style() { global $siteorigin_vantage_customizer; if(empty($siteorigin_vantage_customizer)) return; $builder = $siteorigin_vantage_customizer->create_css_builder(); // Add any extra CSS customizations echo $builder->css(); }It just needs that extra “if empty” check.
Replies on this thread are closed.
Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.