Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2015-08-09 16:05:23

jdueck
Plugin Author
From: Minneapolis, MN
Registered: 2004-02-27
Posts: 147
Website

Fixed bug in aks_header 0.3.6

I couldn’t find an official thread for this plugin so I’m just creating a new one in case anyone else runs across this problem.

I notice my RSS feed wasn’t updating in some readers, and when I curled the source I found the following:

<pre>Tag error: <b>&lt;txp:aks_header name=&quot;Content-Type&quot; value=&quot;application/atom+xml; charset=UTF-8&quot; strip=&quot;0&quot; gzip=&quot;1&quot; nodebug=&quot;1&quot; /&gt;</b> -> <b> Notice: Use of undefined constant production_status - assumed 'production_status' while parsing form <strong>None</strong> on page <strong>rss_feed</strong></b></pre>

I use aks_header to set the content type on my manually-created RSS feed. I recently moved my sites to a new VPS running Ubuntu 14.04 and the latest PHP so that may be why I didn’t get this error before.

The solution is to edit the plugin code. Find the following line:

if($nodebug || $file){ $GLOBALS[production_status] = 'live'; }

and change it to add quotes around production_status like so:

if($nodebug || $file){ $GLOBALS['production_status'] = 'live'; }

Offline

#2 2015-08-09 16:56:57

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

Re: Fixed bug in aks_header 0.3.6


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

Offline

Board footer

Powered by FluxBB