SMF Support > SMF 2.0.x Support
Undifined offset errors ... SOLVED
(1/1)
iceman~:
Getting loads of these errors ... Can anyone help please.
Undefined offset: 214
File: /home/****/public_html/****/cache/lang_UsersOnlineToday_english_default.php (main sub template - eval?)
Line: 122
Oldiesmann:
It's likely due to a missing language file somewhere - in SMF 2.0, all numeric $txt strings were changed to have descriptive keys.
Run this query in phpMyAdmin - this will disable the "eval" functionality which will give you the specific file and line where the error is being generated...
--- Code: ---REPLACE INTO smf_settings VALUES ('disableTemplateEval', 1);
--- End code ---
iceman~:
Great thanks mate, and how do i enable the "eval" functionality again ?
Bulakbol:
I read it somewhere. Can't remember where.
--- Code: ---DELETE FROM smf_settings WHERE variable = 'disableTemplateEval';
--- End code ---
iceman~:
Thanks JohnyB that sorted my Undefined offset errors problem.
The problem was with my BoardIndex.template.php file.
Thanks again.
Navigation
[0] Message Index
Go to full version