Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2017
    Posts
    2
    Plugin Contributions
    0

    Default PHP Fatal error: Call to a member function read () on a non-object in \ zc_install \

    site URL: www.toscanadamare.eu ZC version: 1.5.5 , list of plugins, PHP version 5.6.3,

    hi, I am installing the 1.5.5 zen cart version and the installer don't start, this is the error:
    PHP Fatal error: Call to a member function read () on a non-object in \ zc_install \ includes \ classes \ class.systemChecker.php on line 600
    This is a portion of the class.systemChecker.php file containing the line 600:

    594 static function getAdminDirectoryList()
    595 {
    596 $adminDirectoryList = array();
    597
    598 $ignoreArray = array('.', '..', 'cache', 'logs', 'installer', 'zc_install', 'includes', 'testFramework', 'editors', 'extras', 'images', 'docs', 'pub', 'email', 'download', 'media');
    599 $d = @dir(DIR_FS_ROOT);
    600 while (false !== ($entry = $d->read())) {
    601 if (is_dir(DIR_FS_ROOT . $entry) && !in_array($entry, $ignoreArray))
    602 {
    603 if (file_exists(DIR_FS_ROOT . $entry . '/' . 'banner_manager.php'))
    604 {
    605 $adminDirectoryList[] = $entry;

  2. #2
    Join Date
    Jan 2004
    Posts
    64,748
    Blog Entries
    6
    Plugin Contributions
    74

    Default Re: PHP Fatal error: Call to a member function read () on a non-object in \ zc_instal

    Remove the @ in @dir on line 599 and see what the error is. I suspect it can't obtain a directory listing due to some restrictions in your server's configuration.
    .

    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
    Mar 2017
    Posts
    2
    Plugin Contributions
    0

    Default Re: PHP Fatal error: Call to a member function read () on a non-object in \ zc_instal

    I removed @ at 599 line and this is the error
    PHP Warning: dir(D:\inetpub\webs\toscanadamareeu\,D:\inetpub\webs\toscanadamareeu\): Access is denied. (code: 5) in D:\inetpub\webs\toscanadamareeu\zc_install\includes\classes\class.systemChecker. php on line 599
    PHP Warning: dir(D:\inetpub\webs\toscanadamareeu\): failed to open dir: Permission denied in D:\inetpub\webs\toscanadamareeu\zc_install\includes\classes\class.systemChecker. php on line 599
    PHP Fatal error: Call to a member function read() on boolean in D:\inetpub\webs\toscanadamareeu\zc_install\includes\classes\class.systemChecker. php on line 600

  4. #4
    Join Date
    Jan 2004
    Posts
    64,748
    Blog Entries
    6
    Plugin Contributions
    74

    Default Re: PHP Fatal error: Call to a member function read () on a non-object in \ zc_instal

    Probably best to report this issue to your hosting company, because they're the ones who control permission for that. They can fix the Access Denied issue.
    Most likely your user account doesn't have the usual required permissions to allow scanning the list of files in the directory.
    .

    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.

 

 

Similar Threads

  1. Replies: 15
    Last Post: 27 Sep 2013, 05:29 PM
  2. v139h PHP Fatal error: Call to a member function add_session() on a non-object
    By absoluteblock in forum General Questions
    Replies: 5
    Last Post: 27 Apr 2013, 01:23 AM
  3. Replies: 5
    Last Post: 31 Jul 2012, 11:33 AM
  4. Replies: 6
    Last Post: 4 Jun 2007, 11:42 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR