stevebluck Posted September 12, 2008 Share Posted September 12, 2008 when the user is about to complete there order they get this error: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/sites/mindredgaming.com/public_html/includes/functions.php on line 0 Warning: Cannot modify header information - headers already sent by (output started at /home/sites/mindredgaming.com/public_html/includes/functions.php:0) in /home/sites/mindredgaming.com/public_html/cart.php on line 0 Any idea how to fix it? Ta. 0 Quote Link to comment Share on other sites More sharing options...
djrino Posted September 16, 2008 Share Posted September 16, 2008 Hi i have the same error afther upgrading to new version Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/omeunuke/public_html/clientes/includes/functions.php on line 0 Warning: Cannot modify header information - headers already sent by (output started at /home/omeunuke/public_html/clientes/includes/functions.php:0) in /home/omeunuke/public_html/clientes/cart.php on line 0 stevebluck> cah you have fixed? i have opened a tiket for this but not reply yet 0 Quote Link to comment Share on other sites More sharing options...
djrino Posted September 16, 2008 Share Posted September 16, 2008 Hi Matt have replyed to my tiket now i post here the reply.. to you fix too your situation.. this is the matt Reply.. ------------------------------------------------------------------------- Remove the display_errors line from your WHMCS config file. Regards, Matt ------------------------------------------------------------------------- many tnx for this Matt 0 Quote Link to comment Share on other sites More sharing options...
ecohosting Posted October 19, 2008 Share Posted October 19, 2008 Hey Matt, Doesn't this just hide the error message? There is something deeper causing this. Should this be of any concern to us? G 0 Quote Link to comment Share on other sites More sharing options...
ecohosting Posted November 6, 2008 Share Posted November 6, 2008 I've now had two clients within a week complain about getting the following errors: *Warning*: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in */home/ecocom/public_html/secure/includes/functions.php* on line *0* *Warning*: Cannot modify header information - headers already sent by (output started at /home/ecocom/public_html/secure/includes/functions.php:0) in */home/ecocom/public_html/secure/cart.php* on line *0* I have added the display_errors off but it is still showing up. Any progress on this issue Matt? G 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted November 6, 2008 Share Posted November 6, 2008 (edited) If you have root access edit your php.ini on the server and change error_reporting line error_reporting = E_ALL & -E_NOTICE if resseler access and you are able to create a php.ini file in your public_html folder add the line above to the file and save Let us know how you went with it Edited November 6, 2008 by sparky 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted November 6, 2008 Share Posted November 6, 2008 (edited) Hey Matt, Doesn't this just hide the error message? There is something deeper causing this. Should this be of any concern to us? G Not really a big concern they aren't errors just warnings Edited November 6, 2008 by sparky 0 Quote Link to comment Share on other sites More sharing options...
Klangaroo Posted November 6, 2008 Share Posted November 6, 2008 This error is caused when you've customised WHMCS and included your own HTML (or any HTTP header data) prior to WHMCS's own cookie creation process. You can't send HTTP headers before writing to a cookie. Are you guys using customized/implemented versions of WHMCS? You may need to chop it up a bit to get the cookie headers handled before your HTML. 0 Quote Link to comment Share on other sites More sharing options...
ecohosting Posted November 7, 2008 Share Posted November 7, 2008 The only files that would have been modified are the template files and I know the header has not been touched. This is from the default template header.tpl which is identical to my custom template header. It must be something else. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset={$charset}" /> <title>{$companyname} - {$pagetitle}</title> <link rel="stylesheet" type="text/css" href="templates/{$template}/style.css" /> </head> <body> 0 Quote Link to comment Share on other sites More sharing options...
xirrom Posted November 9, 2008 Share Posted November 9, 2008 Exactly the same cart errors here after upgrading from 3.6.2 to 3.7.1 and 3.7.2. I will try to edit the PHP.ini as described above but will that really be sufficient? If not I'll tell here. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.