PDA

View Full Version : help with error in pad_base.php



lgreitzer
08-11-2005, 04:45 PM
I'm getting the following error when I display a product with choices for available options such as color and size.

Warning: Invalid argument supplied for foreach() in /catalog/includes/classes/pad_base.php on line 387

Dubious
08-18-2006, 10:23 AM
same problem... bump!

Dubious
08-22-2006, 05:12 PM
Ok, i solved this one thanks to the OS Commerce forums. This a bug in the code that should definitely be addressed in future releases. Here's the problem:

-----------------------------
quoted from Ralphday:
Both pad_single_dropdown.php and pad_single_radioset.php have a line:

CODE
$out.=$this->_draw_out_of_stock_message_js($attributes);

in them. Move that line up above the closing brace (}) right before it in both files.
------------------------------

Once you have this fixed, you will no longer get the pad_base error. But in order to display radio attributes, you need to turn attribute quanitity tracking ON.

Cheers
Dubious