News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

error log message

Started by fangweile, August 07, 2007, 09:44:42 PM

Previous topic - Next topic

fangweile

I always have an error when I try to view my forum error log. It always display this error

QuoteUndefined variable: definePageTitle
File: /home/vol2/4sql.net/sq_697468/allkoreans.net/htdocs/forum/Themes/dilbermc/MessageIndex.template.php (main_below sub template - eval?)
Line: 75

I recently uninstall the titled links in my forum and then it begins to display this error log. I already tried my best to fix it but it doesnt work anything.

hope someone can help, thanks in advance

codenaught

Looks like you need to remove the call to a definePageTitle variable made inside your dilbermc theme's MessageIndex.template.php. The package manager can only uninstall mods from the default theme, mods installed on custom themes need to be removed manually.

Search for definePageTitle in that file. Do you see it? If it appears something like ', $definePageTitle, ' you can remove just that bit of code. If you need help, try attaching your dilber mc's MessageIndex.template.php file.
Dev Consultant
Former SMF Doc Coordinator

fangweile

Thanks a lot for you response,  :)

BTW, I can't find $definePageTitle in MessageIndex.template.php f

and I got same error in different files in my forum error log.
1.
Quote8: Undefined variable: definePageTitle
File: /home/vol2/4sql.net/sq_697468/allkoreans.net/htdocs/forum/Themes/default/Display.template.php (main_below sub template - eval?)
Line: 75

2.
Quote8: Undefined variable: definePageTitle
File: /home/vol2/4sql.net/sq_697468/allkoreans.net/htdocs/forum/Themes/dilbermc/BoardIndex.template.php (main_below sub template - eval?)
Line: 75

3.
Quote8: Undefined variable: definePageTitle
File: /home/vol2/4sql.net/sq_697468/allkoreans.net/htdocs/forum/Themes/dilbermc/MessageIndex.template.php (main_below sub template - eval?)
Line: 75

4.
and other files with the same error.

Hope you can help :-[, thanks again

codenaught

Okay then, I was thinking it was in that actual file.

Do you have phpMyAdmin? What is phpMyAdmin? With that you can run this query and you will get error messages that *hopefully* give you an accurate file and location for where the variable is really being called.

Code (query) Select
REPLACE INTO smf_settings
   (variable, value)
VALUES ('disableTemplateEval', '1');
Dev Consultant
Former SMF Doc Coordinator

fangweile

#4
I already run a query and it displayed this message

QuoteAffected rows: 2 (Query took 0.0006 sec)
I cant find and locate the error file

edit:
My forum error log change to

Quote8: Undefined variable: definePageTitle
File: /home/vol2/4sql.net/sq_697468/allkoreans.net/htdocs/forum/Themes/default/TPortalBlocks.template.php(35) : eval()'d code
Line: 75

i have configured it out, the problem is my tinyportal block  I recently added in my forum. I disabled that block and I never have any error messages in my forum error log now.

Thanks a lot akabugeyes, more than you think, you're really great, kamsamhamnida ^_^

Advertisement: