Fatal error: while login to my forum

Started by Qayyom Ashraf, April 03, 2009, 04:32:03 AM

Previous topic - Next topic

Qayyom Ashraf

I am facing a critical error while I am log in to my forum,

Please help me to solve the Problem:

Test User:
User:  talal
Psw:  deleted
URL:  http://www.jangforum.com

Fatal error: Cannot redeclare template_init() (previously declared in /home/jangforu/public_html/Sources/Load.php(1766) : eval()'d code:32) in /home/jangforu/public_html/Sources/Load.php(1766) : eval()'d code on line 57
Qayyom Ashraf  |  Karachi-PK |::.www.JangForum.Com.::|

JBlaze

Jason Clemons
Former Team Member 2009 - 2012

Qayyom Ashraf

Sir,

I personally facing the problem,

OK let spouse if someone facing the problem at him side, what should be the reason?

I am giving you an other ID

please try this one:

mwasimr/raza123

thanks for your prompt response!
Qayyom Ashraf  |  Karachi-PK |::.www.JangForum.Com.::|

Tyrsson

Most likely you have this:

template_init()

Present twice in a file. What mods have you installed/uninstalled recently?

Please attach:
/Sources/Load.php

And just to make sure also attach:

Themes/{current_theme}/index.template.php

PM at your own risk, some I answer, if they are interesting, some I ignore.

Qayyom Ashraf

OK please check attached both php files, with .txt addition

Actually till now I observed only above mentioned ID that have problem after login, or can't logged in...

the forum behaves normal with all other IDs until i logged in with mwasimr, after trying to logged in with the ID, the forum goes down, and show the same error with all IDs and even with normal browsing without logging into Forum
mean: we've to clear cache/cookies to brows again

I think the problem with mwasimr e.g.

I'll be great full to you all for support
Qayyom Ashraf  |  Karachi-PK |::.www.JangForum.Com.::|

Tyrsson

Please attach files that have NOT been opened with any Microsoft editor. Also please DO NOT rename the files. Attach them just as they are.
PM at your own risk, some I answer, if they are interesting, some I ignore.

Qayyom Ashraf

please find attached both php files, as is
Qayyom Ashraf  |  Karachi-PK |::.www.JangForum.Com.::|

onepiece

#7
These files are okay. Any chance that the user having problem selected a theme other than SMF Default Theme - Core? Would you check his theme from profile?

Qayyom Ashraf

yes that was Core in his profile because I don't have any other, then Default - Core Theme.
Qayyom Ashraf  |  Karachi-PK |::.www.JangForum.Com.::|

onepiece

Quote from: qayyom on April 03, 2009, 05:16:24 AMI am giving you an other ID

please try this one:

mwasimr/raza123

This account seems to be working for me now. If it happens again, I suggest disabling template eval temporarily to see the error more clearly. Here is a tutorial about how you can do that: How to Enable / Disable eval()

Qayyom Ashraf

#10
Before reading above last reply I've Reset Theme Options for all members and the user successfully logged with without any error

now we can say that user: mwasimr's problem has been solved, but The "forum" problem is to be diagnosed for further disturbance (if you think it is important to know the exact error)

or mark it Solved

overall thanks you all for my help with proper guidance

Thanks again!
Qayyom Ashraf  |  Karachi-PK |::.www.JangForum.Com.::|

Advertisement: