Zen Cart Logo
Forums / All Other Contributions/Addons / variable passed to each() is not an array - caused by Ultimate SEO mod ?

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

Locked

Views: 1,406

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
4 Jul 2007, 6:15 AM
#1
jeff419 avatar

jeff419

New Zenner

Join Date:
Jul 2007
Posts:
9
Plugin Contributions:
0

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?

4 Jul 2007, 6:16 AM
#2
jeff419 avatar

jeff419

New Zenner

Join Date:
Jul 2007
Posts:
9
Plugin Contributions:
0

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

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.

https://www.yoursaltlamps.com

Thanks!

4 Jul 2007, 6:18 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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

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

4 Jul 2007, 6:38 AM
#4
jeff419 avatar

jeff419

New Zenner

Join Date:
Jul 2007
Posts:
9
Plugin Contributions:
0

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

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?main_page=product_contrib_info&cPath=40_47&products_id=231

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

4 Jul 2007, 6:40 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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

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

4 Jul 2007, 6:41 AM
#6
jeff419 avatar

jeff419

New Zenner

Join Date:
Jul 2007
Posts:
9
Plugin Contributions:
0

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

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

4 Jul 2007, 6:45 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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

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.

4 Jul 2007, 7:04 AM
#8
jeff419 avatar

jeff419

New Zenner

Join Date:
Jul 2007
Posts:
9
Plugin Contributions:
0

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

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?

4 Jul 2007, 7:05 AM
#9
jeff419 avatar

jeff419

New Zenner

Join Date:
Jul 2007
Posts:
9
Plugin Contributions:
0

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

4 Jul 2007, 9:02 PM
#10
jeff419 avatar

jeff419

New Zenner

Join Date:
Jul 2007
Posts:
9
Plugin Contributions:
0

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

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.

4 Jul 2007, 11:02 PM
#11
jeff419 avatar

jeff419

New Zenner

Join Date:
Jul 2007
Posts:
9
Plugin Contributions:
0

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

It's definitely the Ult SEO URLs mod that's breaking the site.

Any good idea on alternatives?