Theme gives one line error when previewing
-
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”>
Line 2: <html xmlns=”https://www.w3.org/1999/xhtml” 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”‘:”; ?> <?php echo ($gantry->get(‘googleplus-enabled’)) ? ‘itemscope itemtype=”https://schema.org/”‘:”; ?>>
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!
- The topic ‘Theme gives one line error when previewing’ is closed to new replies.