Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-12-18 02:05:02

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 1,000
Website

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

#2 2008-12-18 02:09:13

graeme
Plugin Author
Registered: 2004-06-21
Posts: 337
Website

Re: PHP error? "Undefined offset ... txplib_misc.php(574) line 97"

The error is coming from a plugin – line 97

Offline

#3 2008-12-18 06:31:17

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 1,000
Website

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

Board footer

Powered by FluxBB