Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2007
    Posts
    33
    Plugin Contributions
    0

    application error Catchable fatal error

    Trying to go live today or tomorrow. Was working in admin/links where I was going to manually add in the links from my old site, however the bottom of the page is obfuscated with...

    Catchable fatal error: Object of class queryFactoryResult could not be converted to string in C:\xampp\htdocs\accwh-local.com\admin7734\includes\functions\html_output.php on line 333

    Having looked around the forum I saw others with Catchable fatal error, however it looks like they all had to do with the worldpay module.

    This is a new install of 1.3.7.1 running locally on my test server - W2K XAMPP 1.6.4 which has PHP 5.2.4. GD is 2.0.34 and is enabled. There are around 10,000 products in the database.

    The only thing I know of that is slightly off in my config/setup is the template I am using - TruBlu - is for 1.3.6 and I am using 1.3.7. No other problems have occurred anywhere else throughout the site, so I'm fairly certain it's not a TP problem.

    Help appreciated.
    ZC 1.3.8a on Linux with lots o' mods

  2. #2
    Join Date
    Nov 2007
    Posts
    195
    Plugin Contributions
    2

    Default Re: Catchable fatal error

    Quote Originally Posted by needainstall View Post
    Trying to go live today or tomorrow. Was working in admin/links where I was going to manually add in the links from my old site, however the bottom of the page is obfuscated with...

    Catchable fatal error: Object of class queryFactoryResult could not be converted to string in C:\xampp\htdocs\accwh-local.com\admin7734\includes\functions\html_output.php on line 333

    Having looked around the forum I saw others with Catchable fatal error, however it looks like they all had to do with the worldpay module.

    This is a new install of 1.3.7.1 running locally on my test server - W2K XAMPP 1.6.4 which has PHP 5.2.4. GD is 2.0.34 and is enabled. There are around 10,000 products in the database.

    The only thing I know of that is slightly off in my config/setup is the template I am using - TruBlu - is for 1.3.6 and I am using 1.3.7. No other problems have occurred anywhere else throughout the site, so I'm fairly certain it's not a TP problem.

    Help appreciated.
    If you haven't made any changes to that file this problem is occuring in "function zen_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false)" and line 333 reads "if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]);"

    This line is safe to comment out, all it does is set a default in some drop down menu if none has been specified. See if that works.

    If line 333 isn't that then post the code around it (the whole function).

  3. #3
    Join Date
    Nov 2007
    Posts
    33
    Plugin Contributions
    0

    Default Re: Catchable fatal error

    Thank you. Yes, it works fine after commenting out the line.
    BTW, I found that this appears in two files, html_output.php in both the standard includes and the admin/includes directories.

    In the admin it is line 498, for anyone else that may encounter the same problem.

    I commented the line in both files, assuming this is the right thing to do. If it's not please let me know.


    Wish there were a thumbs up post icon as I would have marked this with one...
    ZC 1.3.8a on Linux with lots o' mods

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Catchable fatal error

    Commenting-out code without understanding "why" is not recommended.

    While in this case it may be a helpful bandage for your situation, it's not something that "everyone else" should be expecting to benefit from.

    I'm glad you got it working ... but the underlying cause should be explored further.

    You may have other odd things happening on your site which could be a result of a related root cause.

    Elsewhere on the forum you'll see that v1.3.8 has some changes in it to address "catchable fatal error" issues.
    .

    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. #5
    Join Date
    Nov 2007
    Posts
    195
    Plugin Contributions
    2

    Default Re: Catchable fatal error

    Sensei ha honto desu ne. But I am sure that you appreciate that in this case there was no harm in commenting out the offending line, however as you point out indiscriminate commenting leads to takusan mondai da na!

    I'm sure that this is a sypmtom of a deeper problem and as you say the underlying cause may be an issue. Any ideas why $globals['name'] isn't a string?

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Catchable fatal error

    It's not a "string", because it's an object. And, PHP 5 isn't as friendly as PHP 4 when it comes to auto-translating objects into strings.

    I'd be interested in knowing whether you still see the problem when using v1.3.8.
    .

    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. #7
    Join Date
    Nov 2007
    Posts
    33
    Plugin Contributions
    0

    Default Re: Catchable fatal error

    I'm not sure when 1.3.8 became available for download, as I checked for new versions just before I started to set the system up, which was perhaps a week ago.

    Since I'm replacing my wamp anyway tomorrow, I'll certainly dl the latest build and give it a whirl.

    What I am attempting to do is to replace a very long standing and heavily modified xcart site. It's been in use and steadily (constantly) modified now for close to 8 years. I'd always been interested in zencart and finally, with some spare time, thought I'd give it a shot and see what it would take to move everything over.

    So far it's not been nearly as big a deal as I always thought it would. I'm starting to wish that I had moved on it earlier.

    I'll post again if problems arise after the new install.

    Thanks for the help.
    ZC 1.3.8a on Linux with lots o' mods

 

 

Similar Threads

  1. Catchable fatal error queryFactoryResult
    By ronwong in forum General Questions
    Replies: 1
    Last Post: 2 Sep 2009, 06:13 PM
  2. Catchable fatal error
    By jvanree in forum General Questions
    Replies: 4
    Last Post: 15 Jul 2008, 10:18 AM
  3. Catchable fatal error in Product Restrictions?
    By gabstero in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 5
    Last Post: 25 Jun 2008, 07:31 AM
  4. catchable fatal error
    By apovey in forum General Questions
    Replies: 2
    Last Post: 7 Nov 2007, 09:13 AM
  5. Catchable fatal error
    By notset4life in forum General Questions
    Replies: 13
    Last Post: 5 Jun 2007, 12:09 PM

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