Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ArrayArrayArray


Guest

Recommended Posts

Posted

All my product attributes have disappeared & are just showing as ArrayArrayArray.... Obviously not a good thing to happen on a live store, especially when I'm supposed to be promoting a sale.

 

I'm completely stumped. Anyone got any ideas?

Posted

well, it appears that this is harder than having 3 children! anyway, what contributions have you just added to the site?

try doing a 'repair' of the database, via phpmyadmin.

Posted

I've not added anything recently. I've tried reverting to a backup of the database & code. What I find particularly puzzling is that although the attibutes & recently viewed are broken, the customers also bought is still working fine.

Posted

Check with your hosting company and find out if they have done anything recently. Hosting companies are in a panic right now about the two new worms that can affect php based sites, and are instituting security measures.

 

It may be that they have done something which is affecting the reading of the text in the array. This is an instance of your code which results in the output 'array array array' - though you would have to look at the actual code which is generating this.

 

<input type=hidden name="id[14]" value=""><input type=hidden name="id[17]" value=""><input type=hidden name='customer_input' value='FALSE'>     <b>Style</b><br>ArrayArrayArrayArrayArrayArray<input type=hidden name='radio_exists' value='TRUE'>

 

If you have done nothing to your site then it's my guess that your host has done something which is affecting it.

 

Vger

 

p.s. Thanks for the HSBC Module!

Posted

"Array" is what you'll see when you try to display (with echo or certain other PHP commands) a variable which contains an array rather than a single value. I would guess that you made some change that affects how attributes are fetched and interpreted, and that the code has a bug in it.

Posted

I'm 99% sure it has something todo with an upgrade to PHP4.3.10 (or 5.x?).

 

If I remember well it relates to a different default php.ini settings concerning array's. (a thread about an alike problem was posted on this board a couple of days ago)

Posted

Or maybe they (the host) haven't upgraded the zend optimizer? I don't even know what it exactly is, but I know it has to be upgraded if PHP is upgraded to 4.3.10 !

Archived

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

×
×
  • Create New...