Forum

Thread tagged as: Problem, Shop

Generate Variants - Cannot modify header error

Hi

I'm getting the following error message when I click on 'generate variants';

Warning: Invalid argument supplied for foreach() in /home/myservername/public_html/beautyroom/perch/addons/apps/perch_shop/lib/PerchShop_VariantFactory.class.php on line 123

Warning: Cannot modify header information - headers already sent by (output started at /home/myservername/public_html/beautyroom/perch/addons/apps/perch_shop/lib/PerchShop_VariantFactory.class.php:123) in /home/myservername/public_html/beautyroom/perch/core/lib/PerchUtil.class.php on line 1405

Warning: Cannot modify header information - headers already sent by (output started at /home/fullfatwebsite/public_html/beautyroom/perch/addons/apps/perch_shop/lib/PerchShop_VariantFactory.class.php:123) in /home/myservername/public_html/beautyroom/perch/core/lib/PerchUtil.class.php on line 1406

Warning: Cannot modify header information - headers already sent by (output started at /home/myservername/public_html/beautyroom/perch/addons/apps/perch_shop/lib/PerchShop_VariantFactory.class.php:123) in /home/myservername/public_html/beautyroom/perch/core/lib/PerchUtil.class.php on line 1407

Warning: Cannot modify header information - headers already sent by (output started at /home/myservername/public_html/beautyroom/perch/addons/apps/perch_shop/lib/PerchShop_VariantFactory.class.php:123) in /home/myservername/public_html/beautyroom/perch/core/lib/PerchUtil.class.php on line 1413

Warning: Cannot modify header information - headers already sent by (output started at /home/myservername/public_html/beautyroom/perch/addons/apps/perch_shop/lib/PerchShop_VariantFactory.class.php:123) in /home/myservername/public_html/beautyroom/perch/core/inc/top.php on line 17

Summary information

Perch: 3.0.4, PHP: 5.4.45, MySQL: 5.5.46, with MySQLi
Server OS: Linux, cgi-fcgi
Installed apps: content (3.0.4), assets (3.0.4), categories (3.0.4), perch_blog (5.5.1), perch_shop_orders (1.2), perch_shop_products (1.2), perch_shop (1.2), perch_members (1.6.1)
App runtimes: <?php $apps_list = array( 'perch_blog', 'perch_members', 'perch_shop', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/myservername/public_html/beautyroom/perch
PERCH_CORE: /home/myservername/public_html/beautyroom/perch/core
PERCH_RESFILEPATH: /home/myservername/public_html/beautyroom/perch/resources
Image manipulation: GD
PHP limits: Max upload 25M, Max POST 128M, Memory: 256M, Total max file upload: 25M
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
Resource folder writeable: Yes
DOCUMENT_ROOT: /home/myservername/public_html/beautyroom
HTTP_HOST: beautyroom.fullfatwebsitedesign.co.uk
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
Wayne Hooper

Wayne Hooper 6 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Have you added options to your product?

Yes, added the option and went to variants.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, then you'll need to provide a bit more information if I'm going to be able to help.

Ok, its the same site as this one... link

Which I solved by uploading the local version and installing Shop on the dev server. I've added a product, then an option, then variants > 'generate variants' and I get the error.

Its OK, I think it was to do with the option I made, as I've done a test one and that works OK.

Sorry to have wasted your time.