Hrm- I can’t see any reason for that line to error (and I can’t replicate the error). It’s possible something didn’t get uploaded properly. It may be worth deleting your library folder and uploading a fresh copy. You are running 2.4 now- correct?
If that doesn’t do it- what do you have around line 302 in Core.php?
if (REQ == 'ACTION' OR REQ == 'PAGE')
{
// load up any Snippets
$this->EE->db->select('snippet_name, snippet_contents');
$this->EE->db->where('(site_id = '.$this->EE->db->escape_str($this->EE->config->item('site_id')).' OR site_id = 0)');
$fresh = $this->EE->db->get('snippets');
if ($fresh->num_rows() > 0)
That last line is what I see as the error line. If you’re still getting the error after re-uploading files? Is it possible to do a var_dump just before the error line?
if (REQ == 'ACTION' OR REQ == 'PAGE')
{
// load up any Snippets
$this->EE->db->select('snippet_name, snippet_contents');
$this->EE->db->where('(site_id = '.$this->EE->db->escape_str($this->EE->config->item('site_id')).' OR site_id = 0)');
$fresh = $this->EE->db->get('snippets');
var_dump($fresh); exit;
if ($fresh->num_rows() > 0)
{
It will break the page, but the page is already broken.