Zen Cart Logo
Forums / PayPal Express Checkout support / Help - Variable passed to each() is not an array - PayPal module

Help - Variable passed to each() is not an array - PayPal module

Locked

Views: 8,550

Results 1 to 20 of 25
This thread is locked. New replies are disabled.
28 Jan 2007, 4:59 PM
#1
jilesmcgee avatar

jilesmcgee

New Zenner

Join Date:
Jan 2007
Posts:
24
Plugin Contributions:
0

Help - Variable passed to each() is not an array - PayPal module

If i install this module i get tones of errors

[B]Warning[/B]:  Variable passed to each() is not an array or object in [B]/home/mcmullen/public_html/damage/shop/includes/classes/db/mysql/query_factory.php[/B] on line [B]114[/B]

[B]Warning[/B]:  session_start() [[URL="http://mcmullendirect.com/damage/shop/function.session-start"]function.session-start[/URL]]: Cannot send session cache limiter - headers already sent (output started at /home/mcmullen/public_html/damage/shop/includes/classes/db/mysql/query_factory.php:114) in [B]/home/mcmullen/public_html/damage/shop/includes/functions/sessions.php[/B] on line [B]108[/B]

[B]Warning[/B]: Cannot modify header information - headers already sent by (output started at /home/mcmullen/public_html/damage/shop/includes/classes/db/mysql/query_factory.php:114) in [B]/home/mcmullen/public_html/damage/shop/includes/init_includes/init_templates.php[/B] on line [B]78[/B]

Can someone help me , ive uninstalled it , and its fine

since ive been informed express is better , i want the better one

[does it cost more in paypal charges?]

28 Jan 2007, 5:07 PM
#2
jilesmcgee avatar

jilesmcgee

New Zenner

Join Date:
Jan 2007
Posts:
24
Plugin Contributions:
0

Re: Help - Variable passed to each() is not an array - PayPal module

jilesmcgee:

If i install this module i get tones of errors

[B]Warning[/B]: Variable passed to each() is not an array or object in [B]/home/mcmullen/public_html/damage/shop/includes/classes/db/mysql/query_factory.php[/B] on line [B]114[/B]

[B]Warning[/B]: session_start() [[URL="http://mcmullendirect.com/damage/shop/function.session-start"]function.session-start[/URL]]: Cannot send session cache limiter - headers already sent (output started at /home/mcmullen/public_html/damage/shop/includes/classes/db/mysql/query_factory.php:114) in [B]/home/mcmullen/public_html/damage/shop/includes/functions/sessions.php[/B] on line [B]108[/B]

[B]Warning[/B]: Cannot modify header information - headers already sent by (output started at /home/mcmullen/public_html/damage/shop/includes/classes/db/mysql/query_factory.php:114) in [B]/home/mcmullen/public_html/damage/shop/includes/init_includes/init_templates.php[/B] on line [B]78[/B]

> 
> since ive been informed express is better , i want the better one
> 
> [does it cost more in paypal charges?]
I have tryied using the patch , that didnt work
28 Jan 2007, 6:50 PM
#3
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Help - Variable passed to each() is not an array - PayPal module

open this file
includes/classes/db/mysql/query_factory.php

put cursor at end of file imediatly behind ?> hit delete 10 times and save re-upload

Zen cart PCI compliant Hosting

28 Jan 2007, 7:02 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: Help - Variable passed to each() is not an array - PayPal module

Merlin, that only applies if the line 114 in the error message was found after the closing ?> in the file. In this case, line 456 or 457 is the end of the file.

.
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.

28 Jan 2007, 7:03 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: Help - Variable passed to each() is not an array - PayPal module

jilesmcgee:

If i install this module i get tones of errors

[B]Warning[/B]: Variable passed to each() is not an array or object in [B]/home/mcmullen/public_html/damage/shop/includes/classes/db/mysql/query_factory.php[/B] on line [B]114[/B]

[B]Warning[/B]: session_start() [[URL="http://mcmullendirect.com/damage/shop/function.session-start"]function.session-start[/URL]]: Cannot send session cache limiter - headers already sent (output started at /home/mcmullen/public_html/damage/shop/includes/classes/db/mysql/query_factory.php:114) in [B]/home/mcmullen/public_html/damage/shop/includes/functions/sessions.php[/B] on line [B]108[/B]

[B]Warning[/B]: Cannot modify header information - headers already sent by (output started at /home/mcmullen/public_html/damage/shop/includes/classes/db/mysql/query_factory.php:114) in [B]/home/mcmullen/public_html/damage/shop/includes/init_includes/init_templates.php[/B] on line [B]78[/B]

> 
> Can someone help me , ive uninstalled it , and its fine

When does this occur ?  What screen do you have to be on, or what do you have to click in order to see it ?
Where does it occur? Where can it be seen?

.
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.

28 Jan 2007, 7:03 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: Help - Variable passed to each() is not an array - PayPal module

jilesmcgee:

since ive been informed express is better , i want the better one

[does it cost more in paypal charges?]

PayPal Express Checkout has the same fee structure as other PayPal transactions.

.
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.

28 Jan 2007, 8:30 PM
#7
jilesmcgee avatar

jilesmcgee

New Zenner

Join Date:
Jan 2007
Posts:
24
Plugin Contributions:
0

Re: Help - Variable passed to each() is not an array - PayPal module

It happens when you click onto a product , the sides header and footer disappear and awaiting approval logo pops up and all this poop happens

28 Jan 2007, 8:32 PM
#8
drbyte avatar

drbyte

Sensei

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

Re: Help - Variable passed to each() is not an array - PayPal module

"awaiting approval logo" ? I don't follow you there.

Can you share a URL where this can be seen in action?

.
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.

28 Jan 2007, 9:02 PM
#9
jilesmcgee avatar

jilesmcgee

New Zenner

Join Date:
Jan 2007
Posts:
24
Plugin Contributions:
0

Re: Help - Variable passed to each() is not an array - PayPal module

28 Jan 2007, 9:05 PM
#10
drbyte avatar

drbyte

Sensei

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

Re: Help - Variable passed to each() is not an array - PayPal module

And you're saying that the only thing you have to do to trigger this condition is to turn on or off the PayPal Express Checkout module ?

Do you see any errors in the admin when editing payment module settings ?

.
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.

28 Jan 2007, 9:36 PM
#11
jilesmcgee avatar

jilesmcgee

New Zenner

Join Date:
Jan 2007
Posts:
24
Plugin Contributions:
0

Re: Help - Variable passed to each() is not an array - PayPal module

Nope nothing until i install the express cart

28 Jan 2007, 9:37 PM
#12
drbyte avatar

drbyte

Sensei

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

Re: Help - Variable passed to each() is not an array - PayPal module

jilesmcgee:

Nope nothing until i install the express cart

And when you do, what errors are shown in the admin ?

.
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.

28 Jan 2007, 9:39 PM
#13
drbyte avatar

drbyte

Sensei

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

Re: Help - Variable passed to each() is not an array - PayPal module

A few questions:

  1. Are you in fact using v1.3.7?
  2. What other mods/addons do you have installed?
  3. What customizations have you made since the fresh install?

.
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.

28 Jan 2007, 9:51 PM
#14
jilesmcgee avatar

jilesmcgee

New Zenner

Join Date:
Jan 2007
Posts:
24
Plugin Contributions:
0

Re: Help - Variable passed to each() is not an array - PayPal module

No errors in Admin , 1.3.7 , I aint made any mods except order intergrator

28 Jan 2007, 10:16 PM
#15
drbyte avatar

drbyte

Sensei

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

Re: Help - Variable passed to each() is not an array - PayPal module

It seems that if I leave your site alone for 10 minutes or more, and then do a refresh, it works fine ... until I click on something ... and then all the errors appear again.

This suggests to me that you have a caching problem.

What are your settings in /includes/configure.php for these?

define('DB_PREFIX', '');
define('DB_SERVER', '');
define('DB_SERVER_USERNAME', '');
define('DB_SERVER_PASSWORD', '');
define('DB_DATABASE', '');
define('STORE_SESSIONS', '');storage

.
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.

28 Jan 2007, 10:30 PM
#16
jilesmcgee avatar

jilesmcgee

New Zenner

Join Date:
Jan 2007
Posts:
24
Plugin Contributions:
0

Re: Help - Variable passed to each() is not an array - PayPal module

they are all correct, paypal ipn works perfectly the database writes completey fine JUST the Express cart!

For security reasons there is no way on earth i am posting that information

28 Jan 2007, 10:35 PM
#17
drbyte avatar

drbyte

Sensei

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

Re: Help - Variable passed to each() is not an array - PayPal module

gads -- I was distracted ... I meant these settings:```
define('STORE_SESSIONS', '');
define('SQL_CACHE_METHOD', '');
define('DIR_FS_SQL_CACHE', '');


I'm specifically looking at how you have things configured with respect to caching; hence the questions.

.
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.

28 Jan 2007, 10:55 PM
#18
jilesmcgee avatar

jilesmcgee

New Zenner

Join Date:
Jan 2007
Posts:
24
Plugin Contributions:
0

Re: Help - Variable passed to each() is not an array - PayPal module

i reinstalled the directory, and now

Warning: Variable passed to each() is not an array or object in /home/mcmullen/public_html/damage/shop/includes/classes/db/mysql/query_factory.php on line 114

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/mcmullen/public_html/damage/shop/includes/classes/db/mysql/query_factory.php:114) in /home/mcmullen/public_html/damage/shop/includes/functions/sessions.php on line 108

Warning: Cannot modify header information - headers already sent by (output started at /home/mcmullen/public_html/damage/shop/includes/classes/db/mysql/query_factory.php:114) in /home/mcmullen/public_html/damage/shop/includes/init_includes/init_templates.php on line 78

Warning: Cannot modify header information - headers already sent by (output started at /home/mcmullen/public_html/damage/shop/includes/classes/db/mysql/query_factory.php:114) in /home/mcmullen/public_html/damage/shop/includes/functions/functions_general.php on line 44

is shown

any ideas?

28 Jan 2007, 11:29 PM
#19
isaiah36 avatar

isaiah36

Zen Follower

Join Date:
Jun 2006
Posts:
120
Plugin Contributions:
0

Re: Help - Variable passed to each() is not an array - PayPal module

Warning: reset(): Passed variable is not an array or object in /home/nilajah/public_html/includes/modules/order_total/ot_tax.php on line 38

Warning: Variable passed to each() is not an array or object in /home/nilajah/public_html/includes/modules/order_total/ot_tax.php on line 39

Warning: Cannot modify header information - headers already sent by (output started at /home/nilajah/public_html/includes/modules/order_total/ot_tax.php:38) in /home/nilajah/public_html/includes/functions/functions_general.php on line 44

I am getting this after submitting payment at Paypal - the URL shows the IPN main handler file is loaded. Paypal does not record the order as completed, payment is not made, ZC does not record the order. Any help would be appreciated.