The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Gazette

Geek Gazette GAZ is a community newsletter management system.

Advertisement
This is an HTML example. Isn't it just wonderful?!?!
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 06-22-2010, 08:32 PM
randomdriver randomdriver is offline
Junior Member
 
Join Date: May 2010
Posts: 2
Geek Gazette License Holder 
Default 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?
Reply With Quote
  #2  
Old 06-22-2010, 08:51 PM
randomdriver randomdriver is offline
Junior Member
 
Join Date: May 2010
Posts: 2
Geek Gazette License Holder 
Default

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']);
}
Reply With Quote
  #3  
Old 06-22-2010, 10:07 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

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.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
resume sending Ramses Geek Gazette 5 03-17-2009 09:27 PM
Email not Sending popowich Geek Gazette 4 01-21-2009 09:57 PM
GAZ has mind of its own started sending, no way to stop? KenDude Geek Gazette 1 11-17-2008 05:26 AM
Sending text newsletter rather than HTML brihan Geek Gazette 3 05-29-2008 02:31 PM
Sending newsletters to one person only pixie Geek Gazette 0 07-27-2007 08:29 AM


All times are GMT. The time now is 09:16 AM.


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