[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’
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.