Re: Problem with install - cannot instantiate class - autoload_func.php
first its functioning and BOOM it quits. Then you say you moved it.:lookaroun
Have you made sure that BOTH configure.php files are correct with the move?
admin/includes/configure.php and includes/configure.php should both be correct. When they are not, the system looks for the zc_install directory to try to get the configure files ... well .... configured.
Re: Problem with install - cannot instantiate class - autoload_func.php
I lobbed an addendum in there on you, sorry. Going to generate a ticket with the new host, I seem to be having multiple issues so maybe it's not me. I have three accounts with them and none of the shops are loading. Index.html pages load but not the shops.
Thanks for your help, I will keep checking back in case you have some idea what might have snapped. Really appreciate the support I get here, guess I will be buying you donuts and coffee again soon!
*I'll go check those files - Thanks!
Re: Problem with install - cannot instantiate class - autoload_func.php
Change the .html files to .lmht and see if that doesn't work. Those should have gone by-by. I wouldn't delete them till you know they aren't containing something important.
Re: Problem with install - cannot instantiate class - autoload_func.php
You were right, the configure.php files had old info in them. Still not working though - now I get these errors:
Warning: is_dir() [function.is-dir]: Stat failed for /home/buzzardr/public_html/tgadmin/shop//includes/classes (errno=13 - Permission denied) in /home/tgadmin/public_html/shop/includes/application_top.php on line 132
Warning: Cannot modify header information - headers already sent by (output started at /home/tgadmin/public_html/shop/includes/application_top.php:132) in /home/tgadmin/public_html/shop/includes/application_top.php on line 132
Fatal error: Cannot instantiate non-existent class: notifier in /home/tgadmin/public_html/shop/includes/autoload_func.php on line 156
Should I still change .html files to .lmht?
Re: Problem with install - cannot instantiate class - autoload_func.php
Travel once again to both configs. There are several places where the information must be correct.
Re: Problem with install - cannot instantiate class - autoload_func.php
I am learning much, Sensei, but apparently not yet enough.
Decided to start at the top and fix the config files for the buzzardr home account, and did, and was able to get the BR shop to load there. Small victory. There's a red banner that says I need to change permissions on a config file but I did that. I'll worry about it later.
Went back to tgadmin and combed both config files, made the new changes I learned to make in the buzzardr config files. Saved everything and tried again - and got the same exact error messages again. But I will keep working. Since it worked for the buzzardr account, something has to work for tgadmin - I just have to find what's broke. Could be as simple as syntax, I guess. I will post again when I fix it - or if I decide to seek more help.
Re: Problem with install - cannot instantiate class - autoload_func.php
See comments in Red
Quote:
Originally Posted by
brodybro1
I am learning much, Sensei, but apparently not yet enough.
Decided to start at the top and fix the config files for the buzzardr home account, and did, and was able to get the BR shop to load there. Small victory. There's a red banner that says I need to change permissions on a config file but I did that. I'll worry about it later. You may have to change the permissions through your host's control panel.
Went back to tgadmin and combed both config files, made the new changes I learned to make in the buzzardr config files. Saved everything and tried again - and got the same exact error messages again. But I will keep working. Since it worked for the buzzardr account, something has to work for tgadmin - I just have to find what's broke. Could be as simple as syntax, I guess. I will post again when I fix it - or if I decide to seek more help. Is just one side broken or do both the cart and admin malfunction?
Re: Problem with install - cannot instantiate class - autoload_func.php
I get these errors for admin:
Warning: main(/home/buzzardr/public_html/tgadmin/shop/includes/autoload_func.php) [function.main]: failed to open stream: Permission denied in /home/tgadmin/public_html/shop/admin/includes/application_top.php on line 273
Warning: main(/home/buzzardr/public_html/tgadmin/shop/includes/autoload_func.php) [function.main]: failed to open stream: Permission denied in /home/tgadmin/public_html/shop/admin/includes/application_top.php on line 273
Fatal error: main() [function.require]: Failed opening required '/home/buzzardr/public_html/tgadmin/shop/includes/autoload_func.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tgadmin/public_html/shop/admin/includes/application_top.php on line 273
I will see if there's another place in the control panel to change file permissions - I was doing it in the file manager.
Re: Problem with install - cannot instantiate class - autoload_func.php
please post both your config files WITHOUT username and password. The two files mentioned in your error do not have 273 lines of code combined:shocking:
Your version?
Re: Problem with install - cannot instantiate class - autoload_func.php
For Zen Cart v. 1.3.7.1
/public_html/shop/admin/includes/configure.php
----------------------------------------------
application/x-httpd-php configure.php
PHP script text
<?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 "store" version of configure.php. ***********/
/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/
// Define the webserver and path parameters
// Main webserver: eg, http://localhost - should not be empty for productive servers
// HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
// HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
// HTTP_CATALOG_SERVER is your Main webserver: eg, http://www.yourdomain.com
// HTTPS_CATALOG_SERVER is your Secure webserver: eg, https://www.yourdomain.com
/*
* URLs for your site will be built via:
* HTTP_SERVER plus DIR_WS_ADMIN or
* HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or
* HTTP_SERVER plus DIR_WS_CATALOG or
* HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
* ...depending on your system configuration settings
*/
define('HTTP_SERVER', 'http://transgentry.com');
define('HTTPS_SERVER', 'https://transgentry.com');
define('HTTP_CATALOG_SERVER', 'http://transgentry.com');
define('HTTPS_CATALOG_SERVER', 'https://transgentry.com');
// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'false');
define('ENABLE_SSL_ADMIN', '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_ADMIN', '/shop/admin/');
define('DIR_WS_CATALOG', '/shop/');
define('DIR_WS_HTTPS_ADMIN', '/shop/admin/');
define('DIR_WS_HTTPS_CATALOG', '/shop/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
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_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');
// * 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_ADMIN', '/home/tgadmin/public_html/shop/admin/');
define('DIR_FS_CATALOG', '/home/tgadmin/public_html/shop/');
define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
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/tgadmin/public_html/shop/cache');
?>
I'll post the other file in a separate window - I did just now spot the db server designation of "localhost' - do I need to post a specific server name there?