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

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
dlen
Forum Members
Forum Members
Posts: 67
Joined: Fri Apr 09, 2010 11:32 pm

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

Post 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 ...
Last edited by dlen on Thu May 19, 2016 1:23 pm, edited 1 time in total.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1928
Joined: Mon Jan 29, 2007 4:47 pm

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

Post 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...
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
dlen
Forum Members
Forum Members
Posts: 67
Joined: Fri Apr 09, 2010 11:32 pm

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

Post 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.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1928
Joined: Mon Jan 29, 2007 4:47 pm

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

Post by Jo Morg »

dlen wrote:Wonder why it was in the download in the first place ...
Sorry, I have to ask: which download?
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

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

Post by Rolf »

I would be more worried about how someone could hack the file(s)...
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1928
Joined: Mon Jan 29, 2007 4:47 pm

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

Post 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!
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Locked

Return to “[locked] Installation, Setup and Upgrade”