Zen Cart Logo
Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / Coupon Restrict: Object of class queryFactoryResult could not be converted to string

Coupon Restrict: Object of class queryFactoryResult could not be converted to string

Locked

Views: 9,654

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
5 Mar 2008, 9:23 PM
#1
dodgegirl avatar

dodgegirl

New Zenner

Join Date:
Nov 2007
Posts:
8
Plugin Contributions:
0

Coupon Restrict: Object of class queryFactoryResult could not be converted to string

I was trying to set up a coupon today when I noticed this error listed under the "Product Restrictions" area...

Catchable fatal error: Object of class queryFactoryResult could not be converted to string in /home/domain/public_html/site/zc/admin/includes/functions/html_output.php on line 333

Can anyone tell me how to fix this?

I am using 1.3.7. DigiOverdose

Thanks!

9 Mar 2008, 4:28 PM
#2
hollygds avatar

hollygds

New Zenner

Join Date:
Feb 2007
Posts:
36
Plugin Contributions:
0

Re: Coupon Restrict: Object of class queryFactoryResult could not be converted to string

I'm running 1.3.7 and getting this error too now that we've just upgraded to php5.2.5. This error didn't exist right before the upgrade.

11 Mar 2008, 7:48 AM
#3
wilkesy avatar

wilkesy

Zen Follower

Join Date:
Jul 2004
Location:
stroud, gloucestershire
Posts:
198
Plugin Contributions:
0

Re: Coupon Restrict: Object of class queryFactoryResult could not be converted to string

Hi All,

im getting the following error message in the 'Restrictions' area of the coupon admin. I want to apply a coupon to a specific product but im getting this error message when the screen loads up

Catchable fatal error: Object of class queryFactoryResult could not be converted to string in /home/x10funk/public_html/admin/includes/functions/html_output.php on line 333

Any ideas? Ive recently been upgraded to php5 by my hosts. Im also running 1.3.7 of Zencart.

many thanks

Paul

11 Mar 2008, 8:04 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: Coupon Restrict: Object of class queryFactoryResult could not be converted to string

For v1.3.8, the following fix applies:
http://www.zen-cart.com/forum/showpost.php?p=487734&postcount=11

It could be adapted for v1.3.7.x if you carefully backport the differences to match older code.

13 Mar 2008, 5:17 AM
#5
jrafuse avatar

jrafuse

New Zenner

Join Date:
Apr 2004
Posts:
31
Plugin Contributions:
0

Re: Coupon Restrict: Object of class queryFactoryResult could not be converted to string

DrByte:

For v1.3.8, the following fix applies:
http://www.zen-cart.com/forum/showpost.php?p=487734&postcount=11

It could be adapted for v1.3.7.x if you carefully backport the differences to match older code.

DrByte,

     I had the same problem with version 1.3.0.1, and used your fix to take care of it ... simply used beyond compare to find the differences, and then copied all the lines to my files, and presto. There was one line in mine which wasn't in the new one at all, but I left that in without a glitch happening :)

Just means that you are even better than you think :clap:

John
(thanking you humbly)

4 Mar 2009, 9:25 AM
#6
thieving_gypsy avatar

thieving_gypsy

New Zenner

Join Date:
May 2006
Posts:
87
Plugin Contributions:
0

Re: Coupon Restrict: Object of class queryFactoryResult could not be converted to string

Thanks all - this solved my problem on a windows machine which was just upgraded to use PHP5!

Andy