Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-07-21 02:22:21

mericson
Member
Registered: 2004-05-24
Posts: 137
Website

General error Notice: Undefined variable: threshold_type

After upgrade to 4.5.4 I’m seeing these exceptions in debug mode on all ‘single’ pages.

I disabled all plugins, I commented out my entire page template with <txp:hide> and still I get the error! So, seems to indicate it is in the core Textpattern code.

 General error Notice: Undefined variable: threshold_type on line 268
\textpattern\lib\txplib_misc.php(812) : eval()'d code:536 getNextPrev()
PermanentLinks->_textpattern()
\textpattern\lib\txplib_misc.php:854 call_user_func_array()
\textpattern\publish.php:526 callback_event()
\index.php:83 textpattern()

General error Notice: Undefined variable: threshold_type on line 274
\textpattern\lib\txplib_misc.php(812) : eval()'d code:536 getNextPrev()
PermanentLinks->_textpattern()
\textpattern\lib\txplib_misc.php:854 call_user_func_array()
\textpattern\publish.php:526 callback_event()
\index.php:83 textpattern()

Tag error:  ->  Textpattern Notice: Page template blog does not contain a txp:article tag while parsing form None on page blog
\textpattern\publish.php:551 trigger_error()
\index.php:83 textpattern()

The tag trace shows

<!-- Runtime:    0.0370 -->
<!-- Query time: 0.007000 -->
<!-- Queries: 23 -->
<!-- Memory: 3432Kb, end of textpattern() -->
<!-- txp tag trace: 
[SQL (0): select name, data from txp_lang where lang='en-us' AND ( event='public' OR event='common')]
[SQL (0.0019998550415039): select name, code, version from txp_plugin where status = 1 AND type IN (0,1,5) order by load_order]
[SQL (0.0010001659393311): select name,code,version from txp_plugin where status = 1 AND name='soo_txp_obj']
[SQL (0): select name from txp_lang where lang='en-us' limit 1]
[SQL (0): select name, data from txp_lang where lang='en-us' AND event='soo_page_numbers']
[SQL (0): select name,code,version from txp_plugin where status = 1 AND name='gbp_admin_library']
[SQL (0): select name, html as type from txp_prefs where event = 'permlinks' AND html <> 'gbp_partial']
[SQL (0): select name,code,version from txp_plugin where status = 1 AND name='smd_lib']
[SQL (0): select ID, Section from textpattern where ID = 636 and Section = 'blog' and Status >= 4 limit 1]
[SQL (0.00099992752075195): select page, css from txp_section where name = 'blog' limit 1]
[SQL (0): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where ID=636 and Status in (4,5)]
[Article 636]
[SQL (0.00099992752075195): select host from txp_log where ip='127.0.0.1' limit 1]
[SQL (0): insert into txp_log set `time`=now(),page='/blog/636/brine-recommendations/',ip='127.0.0.1',host='REDACTED',refer='',status='200',method='GET']
[SQL (0): select REPLACE(name, 'gbp_permanent_links_', '') AS id from txp_prefs where `event` = 'permlinks' AND `name` REGEXP '^gbp_permanent_links_.{13}$']
[SQL (0): select name from txp_section where (`name` like 'blog' or `name` like 'blog') limit 1]
[SQL (0): select ID, Posted from textpattern where `ID` = '636' and `Section` = 'blog' and `Status` >= 4 limit 1]
[SQL (0): select url_title from textpattern where (`url_title` like 'brine-recommendations' or `url_title` like 'brine-recommendations') and `Section` = 'blog' and `Status` >= 4 limit 1]
[filterAtts accepted]
[SQL (0.00099992752075195): select ID, Title, url_title, unix_timestamp(Posted) as uposted
			from textpattern where Posted > '2013-04-23 10:47:42'
 and Section = 'blog'

  and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00')


 and Status=4
 order by Posted
 asc
 limit 1]
[SQL (0.00099992752075195): select ID, Title, url_title, unix_timestamp(Posted) as uposted
			from textpattern where Posted < '2013-04-23 10:47:42'
 and Section = 'blog'

  and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00')


 and Status=4
 order by Posted
 desc
 limit 1]
[SQL (0): select css, page from txp_section where name = 'blog' limit 1]
[SQL (0): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where ID=636 and Status >= 4]
[Article 636]
[SQL (0): select user_html from txp_page where name='blog']
[Page: blog]
<txp:hide>
</txp:hide>
[ ~~~ secondpass ~~~ ]
Tag error:  -> Textpattern Notice: Page template blog does not contain a txp:article tag while parsing form <strong>None</strong> on page <strong>blog</strong>
 -->

Any ideas?

{Edited to de-label the topic again. – Uli}

Last edited by uli (2013-07-22 14:09:16)

Offline

#2 2013-07-21 02:30:23

mericson
Member
Registered: 2004-05-24
Posts: 137
Website

Re: General error Notice: Undefined variable: threshold_type

My bad! I missed disabling the one plugin that was causing the error! smd_lib v0.36

Stef?

Offline

#3 2013-07-22 12:50:47

mericson
Member
Registered: 2004-05-24
Posts: 137
Website

Re: General error Notice: Undefined variable: threshold_type

Yes, this belongs in Troubleshooting… but, I still haven’t solved the issue. In fact, I have no ruled out smd_lib. Still trying to figure out where this error is coming from!

In fact, I now have confirmed that the issue is in gbp_permanent_links !

Last edited by mericson (2013-07-22 12:52:56)

Offline

#4 2013-07-22 13:18:14

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,304

Re: General error Notice: Undefined variable: threshold_type

mericson wrote:

Yes, this belongs in Troubleshooting… but, I still haven’t solved the issue.

No problem, just an attempt to keep the forum tidy. You sounded like “solved”, didn’t you, but I will remove the label from the title again.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB