Jump to content

Cart Error


stevebluck

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...

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

Link to comment
Share on other sites

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 by sparky
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated