News:

Wondering if this will always be free?  See why free is better.

Main Menu

Urgent Help

Started by jani01, July 09, 2008, 07:44:25 AM

Previous topic - Next topic

jani01

I have just installed a Mod

http://custom.simplemachines.org/mods/index.php?mod=331

and when I tried to go in Admin Section following message appeared, 

Fatal error: Cannot redeclare template_show_custom_action() (previously declared in C:\Inetpub\vhosts\lahorerang.com\httpdocs\Sources\Load.php(1859) : eval()'d code:1965) in C:\Inetpub\vhosts\lahorerang.com\httpdocs\Sources\Load.php(1859) : eval()'d code on line 2106

Forum Name is


www.Lahorerang.com

Please Tell me How I can Fix this problem 

Thanks

Waiting

jossanaijr

It seems you installed it twice.
Check it manually and delete if duplicity.

Rumbaar

Yes it appears that function was installed twice, as per the error message.

FTP download your Load.php file and search for the two instances of the template_show_custom_action function and remove one of them.  Probably around lines 1965 and/or 2106.

Use a decent text editor like notepad++ and be sure to backup the file before editing.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

jani01

Thanks for ur reply I have done this But now this problem is being happening

Kindly check the issued and reply me

QuoteFatal error: Cannot redeclare smf_main() (previously declared in C:\Inetpub\vhosts\lahorerang.com\httpdocs\index.php:168) in C:\Inetpub\vhosts\lahorerang.com\httpdocs\Sources\Load.php(1857) : eval()'d code on line 376


Thanks a Lot


Waiting

A disturbed Admin

redone

If this is still the same error you could not have replaced the Load.php file with a clean copy. You might want to backup your index.php file and replace that as well.

In short backup everything and be ready to replace the files that have be damaged by a botched mod install or removal.

;)


Rumbaar

This is an eval error too, the error might not even be in that file.

You'll have to disable template eval temporarily to get the real file and error line.

To do this, run this query in PHPmyAdmin (What is phpMyAdmin?)

INSERT INTO smf_settings VALUES ('disableTemplateEval', 1);

Once that's done, get the error again and copy it (the file and line may have changed), then run this query to re-enable it:

DELETE FROM smf_settings WHERE variable = 'disableTemplateEval';
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

jani01

Thanks a Lot

Problem has been solved


Thanks again


:D

Advertisement: