This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Plugin doesn’t work properly

11 years ago · Last reply by Greg Priday 11 years ago

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.

URL: http://www.tt-distribution.com/mpump-gift-1

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

3
  1. Tin Trputec 11 years, 5 months ago

    this 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?

  2. Andrew Misplon Staff 11 years, 5 months ago

    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.

  3. Greg Priday Staff 11 years, 5 months ago

    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.

Have a different question or issue?

Start New Thread