The vB Geek

The vB Geek (http://www.thevbgeek.com/index.php)
-   Geek Gazette (http://www.thevbgeek.com/forumdisplay.php?f=56)
-   -   Error when sending email (http://www.thevbgeek.com/showthread.php?t=5668)

randomdriver 06-22-2010 08:32 PM

Error when sending email
 
I get the following error when I try to send an email:

Quote:

PHP Fatal error: Cannot use object of type mysqli_result as array in /content/forums/admincp/gaz_admin.php on line 949

[22-Jun-2010 13:28:37] PHP Fatal error: Cannot use object of type mysqli_result as array in /content/forums/admincp/gaz_admin.php on line 949

[22-Jun-2010 13:28:49] PHP Fatal error: Cannot use object of type mysqli_result as array in /content/forums/admincp/gaz_admin.php on line 949
Any thoughts?

randomdriver 06-22-2010 08:51 PM

After doing my own investigation, this line is the "redirect" line here. But I am not trying to kill the newsletter, I simply want to send an issue. Why would this get called?

Quote:

// ###################### Start Kill Newsletter #######################

if ($action == 'killnewsletter')
{
$id = $vbulletin->input->clean_gpc('r', 'id', TYPE_UINT);
if ($id)
{
$result = $db->query_read_slave("SELECT title FROM " . TABLE_PREFIX . "gaz_newsletters WHERE id = " . intval($id));
$db->query_write("DELETE FROM " . TABLE_PREFIX . "gaz_newsletters WHERE id = " . intval($id));
$db->query_write("DELETE FROM " . TABLE_PREFIX . "gaz_data WHERE newsletterid = " . intval($id));
drop_subscription_field($id);
}

redirect('displaynewsletters', 'gaz_deleted', $result['title']);
}

Morgan 06-22-2010 10:07 PM

In the snippet you posted change query_read_slave to query_first but I cannot tell you why you are in that part of the code. That snippet is only run when deleting a newsletter is confirmed via an ACP 'are you sure' yes/no form.


All times are GMT. The time now is 01:31 PM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.