Ok, the actual error is:
Fatal error: Cannot use string offset as an array in /home/djgould/public_html/podcastdetail.php on line 142
Here’s the relevant code from that page. (The line that’s getting the error - Line 142 - is the first instance of ‘value’=>$current_item[0][‘date’], in the //Display previous item section. But, again, this code works fine on my test server as is.)
[code]
<?php
// Find current item
$current_item = perch_content_custom('Podcasting listing', array(
'skip-template'=>true,
'filter'=>'slug',
'match'=>'eq',
'value'=>perch_get('s')
), true);
// Display previous item
perch_content_custom('Podcasting listing', array(
'filter'=>'date',
'match'=>'lt',
'value'=>$current_item[0]['date'],
'sort'=>'date',
'sort-order'=>'DESC',
'count'=>1,
'template'=>'prev_link.html'
));
?>
<?php
$opts = array(
‘template’=>‘podcastdetail.html’,
‘filter’=>‘slug’,
‘match’=>‘eq’,
‘value’=>$_GET[‘s’]
);
perch_content_custom(‘Podcasting listing’, $opts);
?>
<?php
// Find current item
$current_item = perch_content_custom(‘Podcasting listing’, array(
‘skip-template’=>true,
‘filter’=>‘slug’,
‘match’=>‘eq’,
‘value’=>perch_get(‘s’)
), true);
// Display previous item
perch_content_custom(‘Podcasting listing’, array(
‘filter’=>‘date’,
‘match’=>‘lt’,
‘value’=>$current_item[0][‘date’],
‘sort’=>‘date’,
‘sort-order’=>‘DESC’,
‘count’=>1,
‘template’=>‘prev_link.html’
));
// Display next item
perch_content_custom(‘Podcasting listing’, array(
‘filter’=>‘date’,
‘match’=>‘gt’,
‘value’=>$current_item[0][‘date’],
‘sort’=>‘date’,
‘sort-order’=>‘ASC’,
‘count’=>1,
‘template’=>‘next_link.html’
));
?>
<?php
// Find current item
$current_item = perch_content_custom(‘Podcasting listing’, array(
‘skip-template’=>true,
‘filter’=>‘slug’,
‘match’=>‘eq’,
‘value’=>perch_get(‘s’)
), true);
// Display next item
perch_content_custom(‘Podcasting listing’, array(
‘filter’=>‘date’,
‘match’=>‘gt’,
‘value’=>$current_item[0][‘date’],
‘sort’=>‘date’,
‘sort-order’=>‘ASC’,
‘count’=>1,
‘template’=>‘next_link.html’
));
?>
[/code]
There’s also a little php that brings in the title of the page, inside the tags on that page, but I don’t know if that’s useful:
[php]<?php
$opts = array(
‘template’=>‘podcasttitle.html’,
‘filter’=>‘slug’,
‘match’=>‘eq’,
‘value’=>$_GET[‘s’]
);
perch_content_custom(‘Podcasting listing’, $opts);
?>[/php]
That page links to a few .html pages where the Perch code is included. Here’s podcastdetail.html:
[code]
<perch:content id=“title” type=“text” label=“Podcast title” required=“true” />
<perch:content id=“slug” type=“slug” for=“title” suppress=“true” />[/code]
This is what’s in prev_link.html:
<div id="podcastdetailboxnavprev"><a href="podcastdetail.php?s=<perch:content id="slug" type="slug" for="title" />"><img src="img/prevarrow.png" alt="Prev episode"></a></div><!-- end PODCASTDETAILBOXNAVPREV -->
This is what’s in next_link.html:
<div id="podcastdetailboxnavnext"><a href="podcastdetail.php?s=<perch:content id="slug" type="slug" for="title" />"><img src="img/nextarrow.png" alt="Next episode"></a></div><!-- end PODCASTDETAILBOXNAVNEXT -->