SilverCart Forum

We moderate this Forum and we're here to help. Have you already run a forum search to check if your problem has already been solved?

You can help us helping you by providing detailed error messages, screenshots and logfile entries.

SebastianRamon

Page: 1
Topic Can't Add Products 2159 Views

Can't Add Products

14 March 2012 at 5:58am

I've just installed Silverstripe & SilverCart using the SilverCart 1.2.1 Full (with SilverStripe) download, but can't add any products manually and get the following error when I add the test data:

[Warning] htmlentities() expects at most 3 parameters, 4 given
GET /

Line 1030 in /var/www/vhosts/worldsmartretail.com.au/subdomains/shop/httpdocs/silvercart/code/products/SilvercartProduct.php

you can view the full message here:

http://shop.worldsmartretail.com.au/

What have I missed/stuffed up?

Re: Can't Add Products

14 March 2012 at 7:22am

Hello Arena,

due to php.net the function htmlentities() has up to 4 parameters. I presume that your php version is out of date. SilverCart requires PHP 5.3 atm. What PHP version does your server run?

Re: Can't Add Products

14 March 2012 at 7:38am

Thanks for the quick reply, The server is running PHP 5.1.6

I managed to get the products to display by hacking the file and removing the last parameter however I'm still getting other issues with sections of content not displaying such as product groups returning a blank screen.

Is this resolvable using 5.1.6 or do I need to migrate to another server?

Re: Can't Add Products

14 March 2012 at 8:18am

You have to move to a server with PHP 5.3 or update your current PHP version. 5.1 had another bug which even existed in 5.2. We recently discussed this bug in another thread:
http://www.silvercart.org/forum/support-and-troubleshooting/show/613#post613
We do not have the resources to support out of date PHP versions, sorry.
Note that even SilverStripe itself requires at least PHP 5.2.

Re: Can't Add Products

14 March 2012 at 8:25am

thanks again for swift response. Silvercart looks great so I'm looking forward to getting it up and running once a new server solution is in place.