I have tried to implement a PrevJumpNext call into a template but get a MODx PHP parse error (see below). I’ve tried the call in several configurations using its available parameters and currently have the bare-bones [[PrevJumpNext?]] in the code. The page works fine without the call.
Any thoughts on this, please?
The Error:
[tt]« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: Invalid argument supplied for foreach()
Error type/ Nr.: Warning - 2
File: /Applications/MAMP/htdocs/manager/includes/document.parser.class.inc.php(770) : eval()’d code
Line: 196
Parser timing
MySQL: 0.0044 s (8 Requests)
PHP: 0.0282 s
Total: 0.0326 s [/tt]
**Edit -- here’s a bit more info on this:
I’m using Evo 1.0.4 and PHP 5.3.2 on MAMP. The line referenced about is part of the getSettings() function. I’ve included that code below, with the line referenced about (in 196) in bold:
[tt]
function getSettings() {
if (!is_array($this->config) || empty ($this->config)) {
if ($included= file_exists(MODX_BASE_PATH . ’assets/cache/siteCache.idx.php’)) {
$included= include_once (MODX_BASE_PATH . ’assets/cache/siteCache.idx.php’);
}
if (!$included) {
$result= $this->dbQuery(’SELECT setting_name, setting_value FROM ’ . $this->getFullTableName(’system_settings’));
while ($row= $this->fetchRow($result, ’both’)) {
$this->config[$row[0]]= $row[1];
}
}[/tt]
Any help on this is greatly appreciated.