Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jul 2007
    Posts
    9
    Plugin Contributions
    0

    Default variable passed to each() is not an array - caused by Ultimate SEO mod ?

    I'm getting these errors:

    Warning: Variable passed to each() is not an array or object in /home/yoursalt/public_html/includes/classes/shopping_cart.php on line 1708

    Warning: Cannot modify header information - headers already sent by (output started at /home/yoursalt/public_html/includes/classes/shopping_cart.php:1708) in /home/yoursalt/public_html/includes/functions/functions_general.php on line 44


    Any thoughts?

  2. #2
    Join Date
    Jul 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Warning: Cannot modify header information

    Oh, so you know, I'm getting this when I try to add a product to the shopping cart from a category page. Also, when I try to add a product to the cart from the product page it says there are no products in my cart.

    www.yoursaltlamps.com

    Thanks!

  3. #3
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: variable passed to each() is not an array - in shopping_cart.php

    What version of Zen Cart?
    What version of PHP?
    What version of MySQL?
    What addons have you installed? or customizations made?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Jul 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: variable passed to each() is not an array - in shopping_cart.php

    Server OS: Linux 2.6.9-42.0.10.ELsmp

    Database: MySQL 4.1.22-standard

    PHP Version: 4.4.2 (Zend: 1.3.0)

    HTTP Server: Apache/1.3.37 (Unix) PHP/4.4.2 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a

    The only addons I installed was the Ultimate SEO URLs, for URL rewriting.

    http://www.zen-cart.com/index.php?ma...roducts_id=231

    I also added something to the .htaccess to include www in all the URLs.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: variable passed to each() is not an array - in shopping_cart.php

    Did this happen before or after installing the SEO mod ?
    What happens if you remove it ?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Jul 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: variable passed to each() is not an array - in shopping_cart.php

    I don't think I can remove the SEO mod without starting over with a fresh install.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: variable passed to each() is not an array - in shopping_cart.php

    Well, that becomes the next question ... does it work properly with a clean install on your server?

    That error typically only occurs when a mod or customization has changed something in a core file incorrectly, or if an FTP upload has failed to properly upload all files, or a combination of both.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Jul 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: variable passed to each() is not an array - in shopping_cart.php

    So, I tried another install in a new folder, and added a couple products, and I got the same error.

    I probably should have checked this before building the whole site.

    I installed the with Fantastico, does that ever cause problems?

  9. #9
    Join Date
    Jul 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: variable passed to each() is not an array - in shopping_cart.php


  10. #10
    Join Date
    Jul 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: variable passed to each() is not an array - in shopping_cart.php

    Okay, so I lied. I tried a fresh install on a different domain name and it worked just fine.

    Will the mod-rewrite work with just changing the .htaccess? I'm guessing it has to have been the Ult SEO thing that broke the site.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Warning: Variable passed to each() is not an array or object
    By caprimia in forum General Questions
    Replies: 2
    Last Post: 1 Feb 2013, 06:16 AM
  2. Replies: 4
    Last Post: 1 May 2009, 06:47 AM
  3. Variable passed to each() is not an array or object in
    By wareagletsf in forum Basic Configuration
    Replies: 2
    Last Post: 13 Mar 2008, 10:32 AM
  4. MZMT - Variable passed to each() is not an array
    By dantien in forum Addon Shipping Modules
    Replies: 17
    Last Post: 22 May 2007, 06:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg