Cupara
Well-known member
Error: mysqli_stmt::bind_param() [mysqli-stmt.bind-param]: Number of variables doesn't match number of parameters in prepared statement
xPortal.php line 101:
if line is line 100.
Blocks.php line 40:
Entire statement including line 40:
Block.php line 29:
Entire statement including line 29:
I have altered, played, and even removed code in an attempt to fix this error. I have read and re-read threads and code from various XenForo files with no resolution in sight.
Any help would be much appreciated.
xPortal.php line 101:
PHP:
if ($dwInput['temp_id'])
$dw->setExistingData($dwInput['temp_id']);
Blocks.php line 40:
PHP:
', $temp_id);
Entire statement including line 40:
PHP:
$blockById = $this->_getDb()->fetchRow('
SELECT temp_id, temp_title, temp_template, temp_active, temp_position, temp_order
FROM xportal_blocks
WHERE temp_id = ?
', $temp_id);
Block.php line 29:
PHP:
return array('xportal_block' => $this->getModelFromCache('xPortal_Model_Blocks')->getBlockId($tempid));
Entire statement including line 29:
PHP:
protected function _getExistingData($data)
{
if (!$tempid = $this->_getExistingPrimaryKey($data, 'temp_id'))
{
return false;
}
if (!$tempid = $this->getModelFromCache('xPortal_Model_Blocks')->getBlockId($tempid))
{
return false;
}
return array('xportal_block' => $this->getModelFromCache('xPortal_Model_Blocks')->getBlockId($tempid));
}
I have altered, played, and even removed code in an attempt to fix this error. I have read and re-read threads and code from various XenForo files with no resolution in sight.
Any help would be much appreciated.