This warning can be seen at https://cliftonheritage.net. Everything seemed fine until I uploaded to the live server.
Warning: array_key_exists(): The first argument should be either a string or an integer in /home/cliftonheritage/public_html/cms/core/lib/PerchTemplate.class.php on line 1074
The above error is what appeared above my perch_content_custom() listings:
PHP
- <?php
- perch_content_custom('Attraction Content',[
- 'count' => 5,
- 'sort-order' => 'RAND',
- 'page' => '/plan-your-visit/places-to-go/*',
- 'template' => '_places-to-go.html',
- 'each' => function($item) { $item['title'] = perch_page_attribute('pageTitle', ['_id' => $item['_pageID']], true); return $item; }
- ]) ?>
This is what I get from debug. It's on my MAMP server, but nothing's printing out to the screen.