News:

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

Main Menu

Undifined offset errors ... SOLVED

Started by iceman~, April 15, 2008, 04:34:00 AM

Previous topic - Next topic

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
A wise monkey never monkies with another monkey's monkey

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...

REPLACE INTO smf_settings VALUES ('disableTemplateEval', 1);
Michael Eshom
Christian Metal Fans

iceman~

Great thanks mate, and how do i enable the "eval" functionality again ?
A wise monkey never monkies with another monkey's monkey

Bulakbol

I read it somewhere. Can't remember where.
DELETE FROM smf_settings WHERE variable = 'disableTemplateEval';
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

iceman~

Thanks JohnyB that sorted my Undefined offset errors problem.
The problem was with my BoardIndex.template.php file.
Thanks again.
A wise monkey never monkies with another monkey's monkey

Advertisement: