News:

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

Main Menu

Errors log going more and more bigger

Started by katib, December 21, 2008, 08:48:30 AM

Previous topic - Next topic

katib

Hello
I noticed that error log entries are going more and more bigger ! more than 100.000 entries per week
last time I noticed the following consecutive errors for a single user who logged  just a moment ago:
 
8: Undefined index: disable_avatar
file: /XX/XX/XX/www.hijaj.net/XXX/smf/cache/lang_MembersOnlineToday_arabic-utf8_ClanWars.php (main sub template - eval?)
line: 210  


Undefined index: board_avatar_height
file: /XX/XX/XX/www.hijaj.net/XXX/smf/Sources/Subs-BoardIndex.php
line: 240  

Undefined index: display_childboards
file: /XX/XX/XX/www.hijaj.net/XXX/smf/cache/lang_MembersOnlineToday_arabic-utf8_ClanWars.php (main sub template - eval?)
line: 216  

are those error so importants ?
can I simply turn off errors logging ?
How to piu down errors logging level ?
does this affect the server performances ?
منتدى الحجاج ... منتدى للقراءة والكتاب
http://www.hijaj.net

sherpa サイバー侍

sure it is important to fix erro. If it is not giving problem now then some day it will.

To find out what is real error click on link below
http://www.simplemachines.org/community/index.php?topic=281460.msg1847009#msg1847009

Tyrsson

Do this then clear the error log and post any new errors here.

To disable template eval do the following:

Disable template eval (via phpMyAdmin )

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



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

katib

well
I disabled template eval (via phpMyAdmin )
by running:
INSERT INTO smf_settings VALUES ('disableTemplateEval', 1);
Now, I am getting the fellowing errors:


 today 16:05  
 
   Type of error: Undefined  
 xxxxx/index.php?action=admin;area=logs;sesc  
8: Undefined index: maintain_common
file: /XX/XX/XX/www.hijaj.net/XX/XX/Sources/Admin.php
line: 414  
 
   admin   today 16:05  
 
   Type of error: Undefined  
 xxxxx/index.php?action=admin;area=logs;sesc  
8: Undefined index: thankyouposttitle
file: /XX/XX/XX/www.hijaj.net/XX/XX/Sources/Admin.php
line: 156  
 
 
   Type of error: Undefined  
 
8: Undefined index: disable_avatar
file: /XX/XX/XX/www.hijaj.net/XX/XX/Themes/ClanWars/BoardIndex.template.php
line: 210  
 
   admin   today 16:05  
 
   Type of error: Undefined  
 
8: Undefined index: display_childboards
file: /XX/XX/XX/www.hijaj.net/XX/XX/Themes/ClanWars/BoardIndex.template.php
line: 216  

 
منتدى الحجاج ... منتدى للقراءة والكتاب
http://www.hijaj.net

Oldiesmann

The first one is due to a missing language string. Open up Themes/default/languages/Admin.yourlanguage.php and make sure $txt['maintain_common'] is there.

The second one is also due to a missing language string, but this is due to a mod, so you'll need to talk to the mod author about that one.

The other two are due to undefined settings. Go to Configuration -> Current Theme and click "Save" (without changing anything). That should cause those settings to be defined.
Michael Eshom
Christian Metal Fans

katib

Oldiesmann
Thanks so much
Yes! $txt['maintain_common'] was not there !!!!
I addded it! but I am still getting the same error !!
here is a part of my Admin.arabic-utf8
$txt['maintain_no_errors'] = 'مبروك لا يوجد اي اعطال في المنتدى.';
$txt['maintain_common'] = 'مهام عامة';
$txt['maintain_common_desc'] = 'القيام بالمهام الاعتيادية مثل النسخ الاحتياطي، التفريغ.';

$txt['maintain_sub_database'] = 'Database';
$txt['maintain_sub_routine'] = 'Routine';
$txt['maintain_sub_members'] = 'Members';
$txt['maintain_sub_topics'] = 'Topics';


$txt['maintain_tasks'] = 'المهمات المجدولة';
$txt['maintain_tasks_desc'] = 'إدارة كل المهمات المجدولة عن طريق SMF.';
منتدى الحجاج ... منتدى للقراءة والكتاب
http://www.hijaj.net

Oldiesmann

Go to Admin -> Maintenance -> Forum Maintenance
Scroll down and click on the "Empty file cache" link. That should fix the issue.
Michael Eshom
Christian Metal Fans

katib

@Oldiesmann
Thanks so much
I did both: Configuration -> Current Theme and click "Save"
and: "Empty file cache"
some issues (about mantain_common... etc) has been fixed  :D :D
 but  :(
I am still getting those errors:
 
2: apache_reset_timeout(): Cannot reset the Apache timeout in safe mode
file: /XXX/Sources/Subs-Post.php
line: 782
8: Undefined index: display_childboards
file: /XXX/Themes/ClanWars/BoardIndex.template.php
line: 216  


two others errors
maybe related to this mod
http://custom.simplemachines.org/mods/index.php?mod=1103
8: Undefined index: disable_avatar
file: /XXX/Themes/ClanWars/MessageIndex.template.php
line: 281  

 
8: Undefined index: board_avatar_height
file: /XXX/Sources/MessageIndex.php
line: 482  


another error related to anther mod: thank-o-matic
this error is issued only with Admin acount:
8: Undefined index: thankyouposttitle
file: /XXX/Sources/Admin.php
line: 156
منتدى الحجاج ... منتدى للقراءة والكتاب
http://www.hijaj.net

ThorstenE

all of these errors are missing language strings..
Install the Load Standard Language Modification, most errors should disappear then..

Advertisement: