Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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 curl
ed the source I found the following:
<pre>Tag error: <b><txp:aks_header name="Content-Type" value="application/atom+xml; charset=UTF-8" strip="0" gzip="1" nodebug="1" /></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,306
Re: Fixed bug in aks_header 0.3.6
Joel, the official thread is here.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Pages: 1