Results 1 to 7 of 7
  1. #1
    Join Date
    May 2009
    Location
    Toronto, Canada
    Posts
    70
    Plugin Contributions
    0

    Default Fatal error: Call to a member function

    No admin access just blank screen
    This is the error report:

    [08-Feb-2011 19:49:19] PHP Fatal error: Call to a member function Execute() on a non-object in /home/pp/public_html/########.com/public/store/admin/includes/init_includes/init_db_config_read.php on line 13

    Section that it is referring to in init_db_config_read.php file:

    $project_db_info= $db->Execute("select * from " . TABLE_PROJECT_VERSION . " WHERE project_version_key = 'Zen-Cart Database' ");

    ZenCart Version 1.3.9h new install (no plugins or themes installed)
    My PHP version is 5.2.4
    MySQL version is 5.0.51a


    Any help is greatly appreciated... all the posts that I have read are very old and and not in regards to version 1.3.9h.

    Thanks

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

    Default Re: Fatal error: Call to a member function

    Evidently it's not loading the database class files, and thus not starting the database connection. That suggests that you're missing one or more files, or have a bad permissions problem on some files, etc.

    If files didn't upload properly due to FTP failures etc, then you'll need to fix that.
    http://www.zen-cart.com/wiki/index.p...Obscure_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.

  3. #3
    Join Date
    May 2009
    Location
    Toronto, Canada
    Posts
    70
    Plugin Contributions
    0

    Default Re: Fatal error: Call to a member function

    Quote Originally Posted by DrByte View Post
    Evidently it's not loading the database class files, and thus not starting the database connection. That suggests that you're missing one or more files, or have a bad permissions problem on some files, etc.

    If files didn't upload properly due to FTP failures etc, then you'll need to fix that.
    http://www.zen-cart.com/wiki/index.p...Obscure_Issues
    I've thought about the 0 byte files and re-uploaded them a second time... the database connection well... I let ZenCart make up its own default sql database and it shows...

    You can view it here:
    store.printersparts.com/store/

    I've deleted the zc_install and 444 the configure.php files already....

    Thanks for the help Doc... :)

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

    Default Re: Fatal error: Call to a member function

    I can't tell whether you're saying you've fixed it or not.
    Hopefully yes.
    .

    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
    May 2009
    Location
    Toronto, Canada
    Posts
    70
    Plugin Contributions
    0

    Default Re: Fatal error: Call to a member function

    no... I am copying files back from my site to compare... for 0 bytes or other...

    Any other suggestions... its a clean install so I don't know what can be wrong????

    1 thing I did differently is I created a different names sql database instead of using 'zencart' default name... that wouldn't make the difference would it?

    The admin directory is still admin if you want to see the blank screen...

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

    Default Re: Fatal error: Call to a member function

    If it's a clean install, why don't you trash it and re-upload it and start over? That's probably a LOT faster than wasting a lot of time debugging what's broken.

    Or you can fiddle around with figuring out what might be broken in the autoloader process by adding a new file at /admin/includes/extra_configures/test_autoload.php containing just the following:
    Code:
    <?php define('DEBUG_AUTOLOAD', true);
    Maybe that'll show you where execution stops or what files it fails to load properly.

    I suspect wiping it and doing a clean install is much simpler.
    .

    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
    May 2009
    Location
    Toronto, Canada
    Posts
    70
    Plugin Contributions
    0

    Default Re: Fatal error: Call to a member function

    I think I will try a clean install again for the 3rd time... I will create a new SQL database to use as well...
    I will also put in the code that u suggested and see what happens with the autoloader.

    Thanks

 

 

Similar Threads

  1. Fatal Error - Call to a member function
    By amyleew in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 2
    Last Post: 2 Nov 2010, 12:44 PM
  2. Fatal error: Call to a member function add_current_page()
    By mrsocks in forum General Questions
    Replies: 3
    Last Post: 10 Feb 2010, 12:34 AM

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