Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Invalid Arguement on Order Information Page


unangst

Recommended Posts

Posted

Ok, first off, everything else works very well. I am VERY impressed with osCommerce and plan to support this project (just found it last week).

 

On the page:

http://domain.com/catalog/account_history_....php?order_id=7

(Essentially, just showing a user the details of their order history...)

 

I run into this message at the top of the browser:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/html/catalog/includes/functions/database.php on line 99

 

Here's the offending code:

  function tep_db_fetch_array($db_query) {
   return mysql_fetch_array($db_query, MYSQL_ASSOC);
 }

 

I've peeked at the account_history_info.php code and the database.php code... but any changes either fail to work or crash the page.

 

I might add that I've also added PayPal_Shopping_Cart_IPN, which creates the following tables:

orders_session_info

paypal

 

Thank you for ANY assistance here.

Posted

did it work prior to you installing IPN? i would imagine so, thus you have installed the contribution improperly and need to go back thru the instructions.

Posted

I see your point. Being new to osCommerce I hadn't experimented with this section of my site before installing IPN (which I feel is a must have).

 

So you think then I can double check my installation of IPN? It was just a time consuming setup with a lot of pages to edit by hand originally. I'd hate to head off that way - but judging from your # of posts, I'm going to go with what you said.

 

IPN reinstall here I come. Thanks for the help. I post any attempts/ successes here as time permits.

Posted

sometimes it is easy to use code compare software for doing things, ie beyond compare, or others.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...