• Hi everyone. I have a theme I purchased that for some reason gives me this error when I try to preview it:

    Fatal error: Call to a member function get() on a non-object in /home/…/wp-content/themes/paula/index.php on line 2

    Once I ‘Activate’ it, it works perfectly, however it will not let me preview it. I checked this line 2, but this what’s there:

    Line 1: <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;

    Line 2: <html xmlns=”https://www.w3.org/1999/xhtml&#8221; xml:lang=”<?php echo $gantry->language; ?>” lang=”<?php echo $gantry->language; ?>” <?php echo ($gantry->get(‘facebook-enabled’)) ? ‘xmlns:fb=”https://www.facebook.com/2008/fbml”&#8216;:”; ?> <?php echo ($gantry->get(‘googleplus-enabled’)) ? ‘itemscope itemtype=”https://schema.org/”&#8216;:”; ?>>

    I figured that maybe it’s due to not having Gantry installed as a plugin, however I do and it is enabled.

    Any ideas?
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m sorry but as you are using a commercial theme, you need to seek support from the theme’s vendors.

    Thread Starter codingcoders

    (@codingcoders)

    O sorry, that’s part of the rules? Woops. I actually just got a response from the vendor so I’ll hopefully deal with it from there. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Theme gives one line error when previewing’ is closed to new replies.