We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Show stopper - Fatal error after creating snippets/global variables

How Do I?

sheferd's avatar
sheferd
31 posts
about 9 years ago
sheferd's avatar sheferd

[EDIT]:

This has broken the whole site, I can’t view any pages now, even without the snippet included at all in any templates.

and I can’t delete them as this error stops me seeing the list, I can only create them

Just tried creating a snippet, it seems to have worked as I can’t create another with the same name. but now when I try to view the list of my snippets I get this error:

Fatal error: Call to undefined method SplFileInfo::getExtension() in /var/www/vhosts/site.com/httpdocs/system/ee/EllisLab/ExpressionEngine/Model/Template/Snippet.php on line 214

snippet was called ‘google_sn’ and it’s content was:

{!--[removed]
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-XXXXXXXX-Y']);
  _gaq.push(['_trackPageview']);
  (function()
  {
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  var s = document.getElementsByTagName('script')[0]; s[removed].insertBefore(ga, s);
  })();
 [removed]--}

prolly could use a global for this, BUT: I get exactly the same for global variables after crating one of those too. name was ‘test_gv’ and content was ‘test global variable’

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.