Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Mar 2004
    Posts
    9
    Plugin Contributions
    0

    Default autoload_func.php error on fresh installation

    I had this problem with an upgrade, and was not able to get rid of,
    so I did a totaly fresh install, and it reappears:

    The catalog pages always raise an error:
    Fatal error: Call to a member function add_current_page() on a non-object in c:\domains\foo\wwwroot\includes\autoload_func.php on line 90

    the admin works properly.

    Database: MySQL 4.1.13
    PHP Version: 5.1.2
    HTTP Server: Microsoft-IIS/6.0

    session.auto_start = Off

    thanks.

  2. #2
    Join Date
    Mar 2004
    Posts
    9
    Plugin Contributions
    0

    Default Re: autoload_func.php error on fresh installation

    I'm trying to install the latest zencart version: 1.3.6

  3. #3
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: autoload_func.php error on fresh installation

    That suggests that your /includes/classes/navigation_history.php file is corrupt or missing.
    .

    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.

  4. #4
    Join Date
    Mar 2004
    Posts
    9
    Plugin Contributions
    0

    Default Re: autoload_func.php error on fresh installation

    no, I've double and triple checked, I have the original distribution file.
    I also read it, and it looks ok.

  5. #5
    Join Date
    Mar 2004
    Posts
    9
    Plugin Contributions
    0

    Default Re: autoload_func.php error on fresh installation

    if it helps:
    i added:

    var_dump($_SESSION[$objectName]);

    in line 90 of autoload_func.ph

    and got:

    object(__PHP_Incomplete_Class)#2 (4) { ["__PHP_Incomplete_Class_Name"]=> string(17) "navigationHistory" ["path"]=> array(1) { [0]=> array(4) { ["page"]=> string(5) "index" ["mode"]=> string(6) "NONSSL" ["get"]=> string(0) "" ["post"]=> array(0) { } } } ["snapshot"]=> array(0) { } ["observers"]=> array(0) { } }

  6. #6
    Join Date
    Mar 2004
    Posts
    9
    Plugin Contributions
    0

    Default Fixed the problem!!!!

    in includes/autoload_func.php, lines 67-69:
    if (isset($entry['checkInstantiated']) && $entry['checkInstantiated'] === true) {
    if (!is_object($_SESSION[$objectName])) {
    $_SESSION[$objectName] = new $className();

    instead of:

    if (isset($entry['checkInstantiated']) && $entry['checkInstantiated'] === true) {
    if (!isset($_SESSION[$objectName])) {
    $_SESSION[$objectName] = new $className();

    please let me know if this is ok, or i'm missing soething else.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: autoload_func.php error on fresh installation

    Sounds like your PHP configuration isn't handling sessions very well.

    Perhaps you might consider installing XAMPP to use apache instead of bug-laden IIS?
    This would also give you the added benefit of a server errorlog which would tell you more about what's going wrong with PHP.
    .

    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.

  8. #8
    Join Date
    Mar 2004
    Posts
    9
    Plugin Contributions
    0

    Default Re: autoload_func.php error on fresh installation

    thanks, I usually work on linux servers, but this belongs to someone else.
    anyway - it did not solve the problem, because now the shopping cart class get instantiated every request, so its not persistant...

  9. #9
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: autoload_func.php error on fresh installation

    Yes -- running these kinds of systems on home PC's using wannabe webserver engines is often problematic.

    I'm sure if you installed it to a Linux server, esp if it's configured as a common webserver, you'd have fewer problems :)
    .

    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. #10
    Join Date
    Jun 2005
    Location
    Austin, Texas, US
    Posts
    216
    Plugin Contributions
    0

    Default Re: autoload_func.php error on fresh installation

    Im running into this same error, but my situation is not like the previous poster with the Windows server. I am using a Unix based platform with Apache web server.

    Error occurs only when visiting the site at index.php (not when using admin, which works fine).

    Fatal error: Call to a member function on a non-object in /export/spare/local/sites/runaraven.com/htdocs/includes/autoload_func.php on line 90

    Any suggestions on what to look for? I did check to be sure the navigation_history.php file is present.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 PHP Fatal error: Class 'QueryCache' (autoload_func.php)
    By Debbie2014 in forum General Questions
    Replies: 2
    Last Post: 20 Oct 2012, 05:01 PM
  2. Fatal error:/autoload_func.php on line 90
    By [email protected] in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 17 Sep 2010, 09:04 AM
  3. Replies: 6
    Last Post: 1 Aug 2008, 05:24 PM
  4. Admin Page Blank (autoload_func.php) Error
    By lorifury in forum Basic Configuration
    Replies: 0
    Last Post: 21 Aug 2006, 01:02 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