Hi,
All of a sudden I am getting the following error message on all of the pages of my shopping cart.
strict standards only variables should be assigned by reference in php
Example being
http://www.orcabinoculars.com/binocshop/index.php
Looking around the internet it looks like it maybe caused by using a & in the code which now shows up as an error because of an upgrade of the php to 5.4
example
$starredgroup_products =& $myPage->getStarredProducts($starredgroup_id);
Is there a work around I can do? I've tried removing the & but it doesn't seem to work.
Will there be an update to Shopping Cart Creator to fix the problem?
Many thanks,
Alan.
All of a sudden I am getting the following error message on all of the pages of my shopping cart.
strict standards only variables should be assigned by reference in php
Example being
http://www.orcabinoculars.com/binocshop/index.php
Looking around the internet it looks like it maybe caused by using a & in the code which now shows up as an error because of an upgrade of the php to 5.4
example
$starredgroup_products =& $myPage->getStarredProducts($starredgroup_id);
Is there a work around I can do? I've tried removing the & but it doesn't seem to work.
Will there be an update to Shopping Cart Creator to fix the problem?
Many thanks,
Alan.
At this time, Shopping Cart Creator has not been updated to support PHP 5. However, with just a small change to one of the included PHP files, you can make the shop function correctly. Here is what you need to do.
1. Locate the config.inc.php file in your shop folder.
2. Open that file in any editor.
3. Locate this line of text error_reporting(E_ALL ^ E_NOTICE);
4. Change that to error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);
5. Save the file.
Just remember that if you make changes to your shop, you will need to make this correction each time.
We are hoping to have an update in the next few months to address this issue and add other exciting new features.
1. Locate the config.inc.php file in your shop folder.
2. Open that file in any editor.
3. Locate this line of text error_reporting(E_ALL ^ E_NOTICE);
4. Change that to error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);
5. Save the file.
Just remember that if you make changes to your shop, you will need to make this correction each time.
We are hoping to have an update in the next few months to address this issue and add other exciting new features.
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
Hi Scott,
That worked a treat. Many thanks for the help and the quick reply.
Alan,
That worked a treat. Many thanks for the help and the quick reply.
Alan,
Hi
This isn't working for me. I have spent 30 hours designing a website that I now cannot use because the software has not been updated. I'm really disappointed.
Terri
This isn't working for me. I have spent 30 hours designing a website that I now cannot use because the software has not been updated. I'm really disappointed.
Terri
Why can't you use it? Lots of people do. If you read Scott's post above there is an easy fix for this problem. I agree that the program needs an update, but until then it's still doable.
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
-------------------------------------
https://sadduck.com
Gunsmoke, the fix doesn't work. I have a blank website. I tried it three times, I administered via FTP and also downloaded, reuploaded and replaced file.
Terri Allington wrote:
Gunsmoke, the fix doesn't work. I have a blank website. I tried it three times, I administered via FTP and also downloaded, reuploaded and replaced file.
Gunsmoke, the fix doesn't work. I have a blank website. I tried it three times, I administered via FTP and also downloaded, reuploaded and replaced file.
Make sure you did it correctly with no spaces or other punctuation marks. It will work, I can guarantee you that.
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
Definitely not working. My business partner has also checked.
Domain is gemsandall.co.uk and the file is attached (actually, it won't let me upload a .php file, so I paste below).
As I said, I did it both by downloading this file and editing on my computer before re-uploading and I have also edited directly in the FTP site.
Terri
<?php
/**
* CoffeeCup Software's Shopping Cart Creator.
*
* Configuration file that must be included in all pages. This file determines
* what version of SCC (Base, Pro or Hosted) is installed.
*
* @version $Revision: 2265 $
* @author Cees de Gruijter
* @category SCC
* @copyright Copyright (c) 2010 CoffeeCup Software, Inc. (http://www.coffeecup.com/)
*/
// we don't like it when E_NOTICE is set
//error_reporting(E_ALL );
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);
Domain is gemsandall.co.uk and the file is attached (actually, it won't let me upload a .php file, so I paste below).
As I said, I did it both by downloading this file and editing on my computer before re-uploading and I have also edited directly in the FTP site.
Terri
<?php
/**
* CoffeeCup Software's Shopping Cart Creator.
*
* Configuration file that must be included in all pages. This file determines
* what version of SCC (Base, Pro or Hosted) is installed.
*
* @version $Revision: 2265 $
* @author Cees de Gruijter
* @category SCC
* @copyright Copyright (c) 2010 CoffeeCup Software, Inc. (http://www.coffeecup.com/)
*/
// we don't like it when E_NOTICE is set
//error_reporting(E_ALL );
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);
I just verified this again on our Godaddy testing account and it worked as outlined in the article with PHP 5.
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
Mine isn't hosted with GoDaddy. It's hosted with JustHosts.
Terri
Terri
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.