Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

project.php runs queries, gets results, but errors are not being saved to class object


Recommended Posts

Posted

hi,

I installed os commerce alpha 3 (the new one) and added some products....

after i select a detailed product, to see it from the categories page (the items are displayed fine when they are all listed under their category)

then, I click an item so the url becomes http://www.myowndictionary.com/products.ph...ced&cPath=1

to see details on the product.

the page shows all kinds of

Notice: Undefined index: category_id in /var/myowndictionary/current/includes/classes/product.php on line 165

and such.

Well, the indexes to the array

return $this->_data['category_id'];

are blank, they aren't saving their values.

you know, the project.php goes through for each product and runs some queries.

So, i have looked at the my mysql query log and ran the queeries by hand, and they return good results.

Somehow, statemetns like

$this->_data['category_id'] = $Qcategory->valueInt('categories_id');

are not taking it appears.

 

is there any way to dig deeper into this issue?

Posted

As it turns out, there is a ghost place holder in the bottom of the page for a deleted product (i deleted the PHP book but it wasn't properly deleted).

the thing is to properly delete the old products, now it thinks it's there but it's returning empty set.

Posted

SOLVED: the old product was stored in the session, but during the middle of the session, using another browser, it had been deleted, so the session still had reference to the deleted product.

SOLVED

SOLVED

SOLVED

NOTHING TO WORRY ABOUT

Archived

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

×
×
  • Create New...