News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Fatal error: Cannot redeclare template_edit_socialbookmarks_settings()

Started by otoyin, April 30, 2009, 04:16:51 AM

Previous topic - Next topic

otoyin

I just installed the social bookmark mod and i got this message.Now [nofollow] I cannot enter Admin to uninstall it.WHAT SHOULD I DO, PLEASE,  TO SOLVE THIS?

Fatal error: Cannot redeclare template_edit_socialbookmarks_settings() (previously declared in /home/helpersf/public_html/Sources/Load.php(1735) : eval()'d code:1123) in /home/helpersf/public_html/Sources/Load.php(1735) : eval()'d code on line 1264

Afro

Go to your cpanel >> manage files

and remove the added codes manually.
Check the codes added by the mod and remove them slowly and carefully

Tyrsson

Go into phpMyAdmin ( What is phpMyAdmin? ) and click on your database. Then click on the SQL tab and copy paste the following code and run it:

To Disable temp eval

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


Then post the new error here so we can narrow down what file its in.
PM at your own risk, some I answer, if they are interesting, some I ignore.

otoyin

Quote from: Tyrsson on April 30, 2009, 05:45:35 AM
Go into phpMyAdmin ( What is phpMyAdmin? ) and click on your database. Then click on the SQL tab and copy paste the following code and run it:

To Disable temp eval

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


Then post the new error here so we can narrow down what file its in.

After running the above code you gave me, this is the new error message:

Fatal error: Cannot redeclare template_edit_socialbookmarks_settings() (previously declared in /home/helpersf/public_html/Themes/default/Admin.template.php:1123) in /home/helpersf/public_html/Themes/default/Admin.template.php on line 1264

kat

Via FTP, go into your Packages directory.

Inside, you'll find another one named Backups.

In there, you'll find an archive named something like:

2009-04-30_before_social_bookmark.tar.gz

If you download that to your machine, dearchive it and upload all the files, therein, overwriting what's there, now, you should be as you were. before you added the mod.

Why the Hell don't people take backups before adding mods?

otoyin

Quote from: Kat on April 30, 2009, 06:34:30 AM
Via FTP, go into your Packages directory.

Inside, you'll find another one named Backups.

In there, you'll find an archive named something like:

2009-04-30_before_social_bookmark.tar.gz

If you download that to your machine, dearchive it and upload all the files, therein, overwriting what's there, now, you should be as you were. before you added the mod.

Why the Hell don't people take backups before adding mods?

I only found  .htaccess  and index.php files in the Backup directory.There's nothing else there

PLEASE WHAT CAN I DO YET?

kat

Not there?

How perfectly odd.

Can you attach your SMF core theme's Admin.template.php?

otoyin

Quote from: Kat on April 30, 2009, 09:50:27 AM
Not there?

How perfectly odd.

Can you attach your SMF core theme's Admin.template.php?

this is the Admin.php attached .Couldnt find Admin.template.php


otoyin


kat

Well, "template_edit_socialbookmarks" doesn't even appear in that file, so the mystery deepens...

Advertisement: