1.8 Error Message cant resolve. Please help?

Started by Amoreitalia, April 02, 2009, 04:09:09 AM

Previous topic - Next topic

Amoreitalia

This is my error

8: Undefined index: viewer_text
File: /home/content/c/g/f/cgforums/html/forums/Themes/default/MessageIndex.template.php (main sub template - eval?)
Line: 69

its my only error and iw ish it would stop lol. does anyone know what to do? I installed the centering mod for child boards on MessageIndex.php

see attached.


Aleksi "Lex" Kilpinen

That could be an added text by Board Viewers Mod do you have it installed?
If you have it installed, what version of it and do you have it enabled from the admin panel?
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Amoreitalia


Tyrsson

That code is being eval'ed so you will need to run this query in phpmyadmin What is phpMyAdmin?


For 1.x

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);


Use the forum a little and try to regenerate new errors. If any are found, post the new ones here. Then run this query to undo the change we made earlier:

To re-enable temp eval

DELETE FROM smf_settings WHERE variable = 'disableTemplateEval';
PM at your own risk, some I answer, if they are interesting, some I ignore.

Amoreitalia

Im sorry Tyrsson im pretty new to all this but do have basic coding stuff. not sure how to use the phpadmin i was just looking over it too.

???

Tyrsson

Well the trouble is that the error may not be in the file that is listed. The "context" for the MessageIndex.template.php is defined in the Messageindex.php file in the sources folder (for the most part) which means the error could actually be in that file or possible Load.php or several others so without knowing exactly where the error is its hard to fix it.

Which is the reason the eval needs turned off and the error regenerated.
PM at your own risk, some I answer, if they are interesting, some I ignore.

Amoreitalia

ok no problem. hate to be a burden. Can you guide me through it real quick? I just downloaded phpmyadmin to my desktop where do i install/upload it to?

as far as the error eval i turn that off witha checkbox under my admin> ...? then where

Amoreitalia


Tyrsson

No you have to turn the error loggin back on and then disable the temp eval in Phpmyadmin.

Its not real hard. You login to phpmyadmin and then click on the database for the forum (left hand side from the home page in phpmyadmin) Then you will need to look across the top and there will be several options. One of them is SQL which you need to click on. This will open a new screen with a query window in the center. Copy the first section of code from my previous post and paste it into that window and run the query. After that clear the error log (not turn off error loggin) Then try to generate a new error so we can find out exactly where the error is occurring. Post the new error here in your next post.
PM at your own risk, some I answer, if they are interesting, some I ignore.

Amoreitalia

ok im not understanding where do i install phpmyadmin at?

Tyrsson

Most of the time you do not have to install phpmyadmin as it is provided by most hosting companies. You access if through the Cpanel of your hosting. You can contact your host and ask them if they provide this and they can give you instructions to login.
PM at your own risk, some I answer, if they are interesting, some I ignore.

Amoreitalia

I use godaddy. i googled phpmyadmin on godaddy nothign came up? this sucks. i dont knwo what to do  :(

Tyrsson

If you use godaddy you will need to login into your hosting account.

Then from the left hand side click on "Hosting"

Next screen click on "Manage account"

Next screen click "DataBases"

Drop down opens click on "MySQL"

From the next screen choose the database that the forum is using and click on "Manage via phpMyAdmin".

After following these instructions (because they are from memory and its been awhile) if you still can not find how to login into phpmyadmin then you will need to call the Godaddy support line (its open 24/7).
PM at your own risk, some I answer, if they are interesting, some I ignore.

Amoreitalia

ok i was on the phoen with them before i saw your post. i found it. awesome. i got all the way to where you told me to enter that first code and i get an error... screenshot below.

Tyrsson

You have to paste this code:


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


Into the window before you click go.
PM at your own risk, some I answer, if they are interesting, some I ignore.

Amoreitalia

yes ive tried all ways. it already has a semi colon in it ive taken it out pasted it before and after all 3 same errors.

Tyrsson

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

Amoreitalia

ahhh ok i got it. i was putting it in the delimiter area lol. ok i did teh first part now what?

Tyrsson

QuoteAfter that clear the error log (not turn off error loggin) Then try to generate a new error so we can find out exactly where the error is occurring. Post the new error here in your next post.
PM at your own risk, some I answer, if they are interesting, some I ignore.

Amoreitalia

its the same error?...

not sure what i did wrong? Im getting frustrated im not normally this stupid when it comes to stuff like this. Thanks for being patient.


Advertisement: