Page 1 of 1

[solved] 2.1.3: > extensions >tags - page gives 500

Posted: Thu May 19, 2016 12:32 pm
by dlen
I wanted to check some built in tags and clicked > extensions > tags and got a 500 - error.

I switched config['debug'] to true and got:

Code: Select all

Cannot redeclare smarty_cms_function_get_template_vars() (previously declared in /var/www/web411/html/cmsms/plugins/function.get_template_vars_orig.php:19) in /var/www/web411/html/cmsms/plugins/function.get_template_vars.php on line 96
Any hints welcome ...

Re: 2.1.3: > extensions >tags - page gives 500 (internal ser

Posted: Thu May 19, 2016 12:53 pm
by Jo Morg
That's a basic PHP error. You have a hacked version of get_template_vars plugin renamed from function.get_template_vars.php to function.get_template_vars_orig.php, and both declare the same function. Just revert the original one to the correct name and get rid of the hacked one...

Re: 2.1.3: > extensions >tags - page gives 500 (internal ser

Posted: Thu May 19, 2016 1:22 pm
by dlen
Wonder why it was in the download in the first place ...

Thanks anyway for the quick answer. It worked. Interestingly , just renaming the hacked version into function.get_template_vars_hacked.php did not work, I had to delete it, as you wrote.

Re: [solved] 2.1.3: > extensions >tags - page gives 500

Posted: Thu May 19, 2016 1:36 pm
by Jo Morg
dlen wrote:Wonder why it was in the download in the first place ...
Sorry, I have to ask: which download?

Re: [solved] 2.1.3: > extensions >tags - page gives 500

Posted: Thu May 19, 2016 1:42 pm
by Rolf
I would be more worried about how someone could hack the file(s)...

Re: [solved] 2.1.3: > extensions >tags - page gives 500

Posted: Thu May 19, 2016 1:55 pm
by Jo Morg
@Rolf: True.
@dlen: this would be a good time to check your installation against a checksum and make sure all your (core) files are ok!