Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
PHP error? "Undefined offset ... txplib_misc.php(574) line 97"
Suddenly began seeing this error on all my pages:
Notice: Undefined offset: 1 in [...]/textpattern/lib/txplib_misc.php(574) : eval()'d code on line 97
I can’t find anything in the tag trace. I was editing and testing forms when it happened, but reverting to earlier versions didn’t make it go away.
Any ideas?
Last edited by johnstephens (2008-12-18 02:05:40)
Offline
Re: PHP error? "Undefined offset ... txplib_misc.php(574) line 97"
The error is coming from a plugin – line 97
Offline
Re: PHP error? "Undefined offset ... txplib_misc.php(574) line 97"
Thanks Graeme! Since I resolved the issue, I wanted to report back and mention the solution in case anyone else makes the same mistake.
I use the excellent plugin cnk_versioning to keep all my templates as text files. This plugin reads files anding in .txp
into the database as pages and forms. I created a new form, but forgot to set the type in the file name, calling it form.txp, instead of form.article.txp. Once I renamed the file, the error resolved itself.
Thanks again for pointing me in the right direction!
Offline