Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Fatal error:/autoload_func.php on line 90

Fatal error:/autoload_func.php on line 90

Locked

Views: 4,648

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
15 Jan 2007, 4:32 PM
#1
jenbrink_fuse_net avatar

jenbrink_fuse_net

New Zenner

Join Date:
Nov 2006
Posts:
81
Plugin Contributions:
0

Fatal error:/autoload_func.php on line 90

I installed on server. Store opened to home page with this Warning at the top:

Warning: session.auto_start is enabled - please disable this PHP feature in php.ini and restart the web server.

I made layout changes through the admin with layout and then the store dissappeared.

So I reinstalled the ZenCart. The page that comes up has a fatal error:

Fatal error: Call to a member function on a non-object in /includes/autoload_func.php on line 90

Is this on my side or the hosting server?
site:
http://www.spittinimagesonline.com/index.php

server PHP version: 4.4.4

Thank you!!!

15 Jan 2007, 8:17 PM
#2
jenbrink_fuse_net avatar

jenbrink_fuse_net

New Zenner

Join Date:
Nov 2006
Posts:
81
Plugin Contributions:
0

Re: Fatal error:/autoload_func.php on line 90

This is the includes/configure.php file if needed:

<?php
/**
 *
 * @package Configuration Settings
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 */


/*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
/***************       The 2 files should be kept separate and not used to overwrite each other.      ***********/

// Define the webserver and path parameters
  // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
  // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
  define('HTTP_SERVER', 'http://www.spittinimagesonline.com');
  define('HTTPS_SERVER', 'https://www.spittinimagesonline.com');

  // Use secure webserver for checkout procedure?
  define('ENABLE_SSL', 'false');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
  // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
  define('DIR_WS_CATALOG', '/spittinimages/');
  define('DIR_WS_HTTPS_CATALOG', '/spittinimages/');

  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_INCLUDES', 'includes/');
  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
  define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
  define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

  define('DIR_WS_PHPBB', '/');

// * DIR_FS_* = Filesystem directories (local/physical)
  //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
  define('DIR_FS_CATALOG', '/home/chrism/public_html/spittinimages/');

  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
  define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
  define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
  define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

// define our database connection
  define('DB_TYPE', 'mysql');
  define('DB_PREFIX', 'zen');
  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', '');
  define('DB_SERVER_PASSWORD', '');
  define('DB_DATABASE', '');
  define('USE_PCONNECT', 'false'); // use persistent connections?
  define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage

  // The next 2 "defines" are for SQL cache support.
  // For SQL_CACHE_METHOD, you can select from:  none, database, or file
  // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache 
  // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
  // ie: /path/to/your/webspace/public_html/zen/cache   -- leave no trailing slash  
  define('SQL_CACHE_METHOD', 'none'); 
  define('DIR_FS_SQL_CACHE', '/home/chrism/public_html/spittinimages/cache');

?>
15 Jan 2007, 10:12 PM
#3
jenbrink_fuse_net avatar

jenbrink_fuse_net

New Zenner

Join Date:
Nov 2006
Posts:
81
Plugin Contributions:
0

Re: Fatal error:/autoload_func.php on line 90

I reinstalled 3 times, still same error.

The store comes up the very first time you go to store. Hit Refresh or go back and the error comes back.

I moved it to a different directory on the last install:

http://spittinimagesonline.com/storefront/index.php?main_page=

Thanks!

I have this on my server as a test and it installed and runs good, not sure what is going on.

Appreciate all the help I can get. Thanks again.

16 Jan 2007, 2:40 AM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Fatal error:/autoload_func.php on line 90

The error message that you are getting in red at the top of the screen tells you what you need to do. The php.ini file is php's initialization file. It is set to automatically start a session which I guess is getting in the way of Zen Cart's attempots to do so. As a result some of the functionality used to build Zen Cart pages can't be properly executed.

You need the automatic session start turned off, but whether you can do this directly, need your host to do it for you, or need a work around, will depend on how your server has been configured. This is a question to put to your web host.

16 Jan 2007, 2:59 PM
#5
jenbrink_fuse_net avatar

jenbrink_fuse_net

New Zenner

Join Date:
Nov 2006
Posts:
81
Plugin Contributions:
0

Re: Fatal error:/autoload_func.php on line 90

That was the first thing that I did. Email support at the hosting company. I have not heard back (go figure?).

I just wanted to make sure it was not something I did in the install process.

I did try the .htacess file and it did not work. Maybe I misunderstood the use of that file.

I'll wait to hear back from the support people.

Thank you for taking the time to answer my post.

28 Jan 2007, 2:32 PM
#6
dusky avatar

dusky

New Zenner

Join Date:
Feb 2006
Location:
Perth Western Australia
Posts:
49
Plugin Contributions:
0

Re: Fatal error:/autoload_func.php on line 90

I just went into the .htaccess file in public_html of the site and added the line:

php_value session.auto_start 0

It worked! Phew. :)

17 Sep 2010, 8:04 AM
#7
breonsnow avatar

breonsnow

New Zenner

Join Date:
Nov 2008
Posts:
1
Plugin Contributions:
0

Re: Fatal error:/autoload_func.php on line 90

Morning all,

I have look over all the posts and done everything that has been said above....with no luck! One day the site was working the next not??

  1. Asked the host to make changes - cant do that as its a shared/virual server
  2. as soon as I add the "php_value session.auto_start 0" to my .htaccess file the server crashes and returns a 500 error

I have tried replacing all the files and nothing!

Does anyone have any other ideas? Please I am Desperate! Thank you in advance!!

Cheers B.