Forums / Bug Reports / [Done v1.3.8] Catchable fatal error on html_output.php line 333

[Done v1.3.8] Catchable fatal error on html_output.php line 333

Locked

Views: 22,424

Results 1 to 20 of 25
This thread is locked. New replies are disabled.
6 Sep 2007, 3:31 AM
#1
rmowles avatar

rmowles

New Zenner

Join Date:
Sep 2007
Posts:
6
Plugin Contributions:
0

[Done v1.3.8] Catchable fatal error on html_output.php line 333

Hello

I see a few posts about this but nothing "fixed" for this specific error and file that I could find... so here goes.

After I create a coupon, then click "restrictions" I'm seeing this error in "http://xxmyservernamexx/admin/coupon_restrict.php?cid=1&page=1" beside the category name dropdown box under product restrictions (see attached image).

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

This is a brand new install. 2 categories & 1 product added. 1 Coupon created. Coupon type doesn't seem to matter.

PHP Version: 5.2.3 (Zend: 2.2.0)
MySQL 5.0.41
Zen Cart 1.3.7.1
Database Patch Level: 1.3.7.1 Fresh Installation

Once I select a category other than top the page displays correctly.

Thanks
Robert

6 Sep 2007, 6:02 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.8] Catchable fatal error on html_output.php line 333

.
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 Sep 2007, 1:05 PM
#3
rmowles avatar

rmowles

New Zenner

Join Date:
Sep 2007
Posts:
6
Plugin Contributions:
0

Re: [Done v1.3.8] Catchable fatal error on html_output.php line 333

DrByte:

http://www.zen-cart.com/forum/showthread.php?p=384852#post384852
and
http://www.zen-cart.com/forum/showthread.php?t=62755

Thanks, I did read those two already. The first one deals with a wordpay module and an error in functions_general.php. The second one has your quote:

Something seems odd with your database.
However, this bandage approach may work:

However this is a brand new install so there's nothing "funny" about the database. I did a clean install and added 2 categories & one product. When you said it was a "band-aid fix" I thought there must be a proper fix in the works? Or is this going to be the official fix in an upcoming release?

6 Sep 2007, 3:27 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.8] Catchable fatal error on html_output.php line 333

rmowles:

Thanks, I did read those two already.
I suggested them because I believe they'll resolve the problem you reported.

rmowles:

After I create a coupon, then click "restrictions" I'm seeing this error in "http://xxmyservernamexx/admin/coupon_restrict.php?cid=1&page=1" beside the category name dropdown box under product restrictions (see attached image).That's because your database is bringing back a blank value for the pulldown, and your PHP version doesn't like treating the blank result as an object it doesn't know how to handle when running in strict mode.
Hence the suggestion to skip displaying that section if there are no qualifying items:
http://www.zen-cart.com/forum/showpost.php?p=357942&postcount=10

rmowles:

Catchable fatal error: Object of class queryFactoryResult could not be converted to string in /xxmyserverdirectoryxx/admin/includes/functions/html_output.php on line 333One way to get around the incapability of PHP 5 to handle the blank object is to tell it how to handle that particular object.
Hence the suggestion to use the code in the worldpay post which specifically addresses that issue:
http://www.zen-cart.com/forum/showpost.php?p=384852&postcount=1

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

9 Sep 2007, 11:20 PM
#5
rmowles avatar

rmowles

New Zenner

Join Date:
Sep 2007
Posts:
6
Plugin Contributions:
0

Re: [Done v1.3.8] Catchable fatal error on html_output.php line 333

DrByte:

I suggested them because I believe they'll resolve the problem you reported.

That's because your database is bringing back a blank value for the pulldown, and your PHP version doesn't like treating the blank result as an object it doesn't know how to handle when running in strict mode.
Hence the suggestion to skip displaying that section if there are no qualifying items:
http://www.zen-cart.com/forum/showpost.php?p=357942&postcount=10

One way to get around the incapability of PHP 5 to handle the blank object is to tell it how to handle that particular object.
Hence the suggestion to use the code in the worldpay post which specifically addresses that issue:
http://www.zen-cart.com/forum/showpost.php?p=384852&postcount=1
OK, I wasn't sure we were on the same page because it was a different module and there was also a comment about a database problem.

Thanks for the help.

25 Sep 2007, 10:10 PM
#6
richyfus avatar

richyfus

New Zenner

Join Date:
Dec 2005
Posts:
1
Plugin Contributions:
0

Re: [Done v1.3.8] Catchable fatal error on html_output.php line 333

Hello,
I have the same error message, but it produces when I traying to setup a new Template by clicking Administration > Tools > Template Selection then New Language (...admin/template_select.php?page=1&action=new).

My zencart version is 1.3.7.1 with
Easy Populate EP_v2_76f_r1_MS2
Links Manager 3.2.3
Template: Templatemonster Theme030

now I can't add a new theme!!
What do you recomend?
Thanks in advance and excuse my bad english

30 Dec 2007, 3:35 AM
#7
awhfy99 avatar

awhfy99

Zen Follower

Join Date:
Feb 2007
Location:
Burleson. Texas
Posts:
196
Plugin Contributions:
0

Re: [Done v1.3.8] Catchable fatal error on html_output.php line 333

I seem to be getting the same error code in my coupon admin using v1.3.7 with PHP v5.2.4. The suggested fix by changing the functions_general.php did not eliminate the error and a customer says that he cannot complete checkout. Not sure if the two are related since other customers have completed checkout but I have yet to have one do so using the welcome coupon. I have done so in the test mode with no problems.

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

Any suggestions appreciated.

Dennis
www.stampdays.com
Over 80,000 stamps and still growing!

8 Jan 2008, 2:21 PM
#8
koolos_com avatar

koolos_com

New Zenner

Join Date:
Jan 2008
Posts:
16
Plugin Contributions:
0

Re: [Done v1.3.8] Catchable fatal error on html_output.php line 333

Richyfus:

Hello,
I have the same error message, but it produces when I traying to setup a new Template by clicking Administration > Tools > Template Selection then New Language (...admin/template_select.php?page=1&action=new).

Same thing here.

In admin>tools>template selection

I have de Default(All) theme.
I'm able to add one language I see it appear in the list
If I try to add another one, it gives me this error. The edit box on the right disapear and I receive this error :

**
Catchable fatal error: Object of class queryFactoryResult could not be converted to string in [MY PATH] /admin/includes/functions/html_output.php on line 333**

So I'm not able to add laguages to the theme... Meaning that I'm unable to edit the languages/my_language/html_includes/my_theme files...

With the debug error loggin utility it says the same... :
**PHP Catchable fatal error: Object of class queryFactoryResult could not be converted to string in [MY PATH]/admin/includes/functions/html_output.php on line 333
**
ZC 1.3.8 fresh install with no modification or add ons
PHP 5.2.4
MySQL 4.1.22-standard

How can I solve this issue ?

I saw this solution given here for the PhP5 catchable error : http://www.zen-cart.com/forum/showpost.php?p=384852&postcount=1

But from what I can tell, this code as been already modified in ZC 1.3.8...

S.

8 Jan 2008, 6:10 PM
#9
koolos_com avatar

koolos_com

New Zenner

Join Date:
Jan 2008
Posts:
16
Plugin Contributions:
0

Re: [Done v1.3.8] Catchable fatal error on html_output.php line 333

koolos.com:

Meaning that I'm unable to edit the languages/my_language/html_includes/my_theme files...

Sorry, I take that back... It's not the case, I'm able to edit the files in languages/my_language/html_includes/my_theme/ with the define page editor.

But the PHP catchable error is still there...

S.

10 Jan 2008, 12:54 AM
#10
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.8] Catchable fatal error on html_output.php line 333

For the storefront, if you try this altered /includes/functions/html_output.php file, does it help?

And the html_output_admin.zip, unzipped is also html_output.php ... but for the /admin/includes/functions/html_output.php.

NOTE: These updated files are compatible with v1.3.7, 1.3.7.1, 1.3.8, 1.3.8a.
They are not compatible with the admin security patch dated June 2009. See post 22 below for tips on integrating the security patch.
NOTE: The PHP 5.3 Patch for v1.3.8a has NEWER versions of these files, and you should use THOSE instead of these if you are applying the PHP 5.3 patch.

These updates ARE NOT compatible with v1.3.6 and older. You'll need to upgrade.

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

10 Jan 2008, 2:53 PM
#11
koolos_com avatar

koolos_com

New Zenner

Join Date:
Jan 2008
Posts:
16
Plugin Contributions:
0

Re: [Done v1.3.8] Catchable fatal error on html_output.php line 333

Bingo DrByte!

I uploaded the html_output.php in for the admin section and everything is OK now...! I'm able to load more than one language without any PhP Catchable Error.

I did'nt upload the file for the store front cause I did'nt have anyproblem on this side Thanks a lot... I'll keep it to give a try if any problem happens in the future.

Thanks again!

S.

10 Jan 2008, 5:30 PM
#12
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.8] Catchable fatal error on html_output.php line 333

Thanks for the confirmation.

These additional changes will be incorporated in v1.3.9 and newer.

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

12 Jan 2008, 1:47 AM
#13
zankye avatar

zankye

New Zenner

Join Date:
Sep 2006
Posts:
13
Plugin Contributions:
0

Re: [Done v1.3.8] Catchable fatal error on html_output.php line 333

I'm having the some proble using the version
Zen Cart 1.3.0.2

 ** Database Patch Level:  1.3.0.2**

v1.3.0.2 [2006-09-10 18:49:14] (Fresh Installation)
and using
PHP Version 5.2.2,

and the error **
Catchable fatal error**: Object of class queryFactoryResult could not be converted to string in ............................................/includes/functions/html_output.php on line **333

**what code should use to fix this?

thanks

12 Jan 2008, 7:11 AM
#14
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.8] Catchable fatal error on html_output.php line 333

zankye:

I'm having the some proble using the version
Zen Cart 1.3.0.2

 ** Database Patch Level:  1.3.0.2**

v1.3.0.2 [2006-09-10 18:49:14] (Fresh Installation)
and using
PHP Version 5.2.2,

and the error **
Catchable fatal error**: Object of class queryFactoryResult could not be converted to string in ............................................/includes/functions/html_output.php on line **333

**what code should use to fix this?

For PHP 5.2 compatibility, you should upgrade to v1.3.7.1 minimum ... ideally v1.3.8a which is the latest as of this writing.

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

5 Nov 2008, 10:53 PM
#15
tonibarcelona avatar

tonibarcelona

Inactive

Join Date:
Feb 2007
Location:
Barcelona
Posts:
200
Plugin Contributions:
0

Re: [Done v1.3.8] Catchable fatal error on html_output.php line 333

DrByte:

NOTE: These updated files are compatible with v1.3.7, 1.3.7.1, 1.3.8, 1.3.8a.

and are compatible with 1.3.6 ?

6 Nov 2008, 3:21 AM
#16
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.8] Catchable fatal error on html_output.php line 333

tonibarcelona:

DrByte:

NOTE: These updated files are compatible with v1.3.7, 1.3.7.1, 1.3.8, 1.3.8a.

and are compatible with 1.3.6 ?
No, they're not.

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

7 Nov 2008, 8:26 PM
#17
tonibarcelona avatar

tonibarcelona

Inactive

Join Date:
Feb 2007
Location:
Barcelona
Posts:
200
Plugin Contributions:
0

Re: [Done v1.3.8] Catchable fatal error on html_output.php line 333

DrByte:

No, they're not.
then, definetively, i must upgrade...

12 Mar 2009, 11:26 PM
#18
dmm2020 avatar

dmm2020

Zen Follower

Join Date:
Feb 2009
Posts:
157
Plugin Contributions:
0

Re: [Done v1.3.8] Catchable fatal error on html_output.php line 333

DrByte:

For the storefront, if you try this altered /includes/functions/html_output.php file, does it help?

And the html_output_admin.zip, unzipped is also html_output.php ... but for the /admin/includes/functions/html_output.php.

NOTE: These updated files are compatible with v1.3.7, 1.3.7.1, 1.3.8, 1.3.8a.

I did the above and it still will not appear on the store front page.

28 Jun 2009, 5:13 PM
#19
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,304
Plugin Contributions:
39

Re: [Done v1.3.8] Catchable fatal error on html_output.php line 333

DrByte:

For the storefront, if you try this altered /includes/functions/html_output.php file, does it help?

And the html_output_admin.zip, unzipped is also html_output.php ... but for the /admin/includes/functions/html_output.php.

NOTE: These updated files are compatible with v1.3.7, 1.3.7.1, 1.3.8, 1.3.8a.

I guess I could look... but asking may be quicker...

Is this fix included in the recent admin patch?

~Melanie

28 Jun 2009, 6:07 PM
#20
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.8] Catchable fatal error on html_output.php line 333

Hmmm ... no.

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