Zen Cart Logo
Forums / General Questions / Fatal error - site down

Fatal error - site down

Locked

Views: 2,578

Results 1 to 20 of 30
This thread is locked. New replies are disabled.
26 Mar 2008, 2:33 PM
#1
countrycupboard avatar

countrycupboard

New Zenner

Join Date:
Mar 2008
Posts:
37
Plugin Contributions:
0

Fatal error - site down

I just recently moved my site to a new shared Linux server. https://www.acountrycupboard.com
Now I'm getting the following error:
Warning: require(includes/application_top.php) [function.require]: failed to open stream: No such file or directory in /var/www/domains/acountrycupboard.com/docs/index.php on line 26

Warning: require(includes/application_top.php) [function.require]: failed to open stream: No such file or directory in /var/www/domains/acountrycupboard.com/docs/index.php on line 26

Fatal error: require() [function.require]: Failed opening required 'includes/application_top.php' (include_path='.:/usr/local/lib/php') in /var/www/domains/acountrycupboard.com/docs/index.php on line 26
I have the path in the /includes/configure/php and admin/includes/configure.php set to:
define('HTTP_SERVER', 'http://www.acountrycupboard.com/docs/zencart/');

and permissions are set to 444

26 Mar 2008, 2:45 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,606
Plugin Contributions:
0

Re: Fatal error - site down

please post your includes/configure.php without your password.

26 Mar 2008, 3:03 PM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Fatal error - site down

I have the path in the /includes/configure/php and admin/includes/configure.php set to:
define('HTTP_SERVER', 'http://www.acountrycupboard.com/docs/zencart/');
But it looks at though you are trying to load from

define('HTTP_SERVER', 'http://www.acountrycupboard.com/');

as you porovided the link as: https://www.acountrycupboard.com/

26 Mar 2008, 3:35 PM
#4
countrycupboard avatar

countrycupboard

New Zenner

Join Date:
Mar 2008
Posts:
37
Plugin Contributions:
0

Re: Fatal error - site down

My /includes/configure.php file:

<?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 */ // 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.acountrycupboard.com/docs/zencart/'); define('HTTPS_SERVER', 'https://acountrycupboardcom.secure.myhosting.net'); // Use secure webserver for checkout procedure? define('ENABLE_SSL', 'true'); // 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', '/zencart/'); define('DIR_WS_HTTPS_CATALOG', '/zencart/'); 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', '/var/www/domains/acountrycupboard.com/docs/zencart/'); 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', 'MYSQL01'); // eg, localhost - should not be empty define('DB_SERVER_USERNAME', 'shoppingcart_aco'); define('DB_SERVER_PASSWORD', 'xxxxxxxx'); define('DB_DATABASE', 'shoppingcart_aco'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'db' // 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', 'file'); define('DIR_FS_SQL_CACHE', '/var/www/domains/acountrycupboard.com/docs/zencart/cache');
26 Mar 2008, 6:28 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Fatal error - site down

Think your path

acountrycupboard.com/docs/zencart/

is incorrect this should match what you enter as the address in your browser
for the above I have this for an install that is in a folder under the root of "demo" only the browser entry to the top of the domain

  define('HTTP_SERVER', 'http://www.kobrawd.com');
define('DIR_FS_CATALOG', '/var/www/domains/acountrycupboard.com/docs/zencart/');

For this I have only this so it looks as though you are a bit different but the /var/www is probably not necessary:

define('DIR_FS_CATALOG', '/home/kobrawd/public_html/demo/');

and probably similar for

define('DIR_FS_SQL_CACHE', '/var/www/domains/acountrycupboard.com/docs/zencart/cache');
26 Mar 2008, 7:00 PM
#6
countrycupboard avatar

countrycupboard

New Zenner

Join Date:
Mar 2008
Posts:
37
Plugin Contributions:
0

Re: Fatal error - site down

Same error message after I made the following changes to "]/admin/includes/configure.php:

<?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 */ // 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://www.acountrycupboard.com'); define('HTTPS_SERVER', 'https://acountrycupboardcom.secure.myhosting.net'); define('HTTP_CATALOG_SERVER', 'http://www.acountrycupboard.com'); define('HTTPS_CATALOG_SERVER', 'https://acountrycupboardcom.secure.myhosting.net'); // Use secure webserver for catalog module and/or admin areas? define('ENABLE_SSL_CATALOG', 'true'); define('ENABLE_SSL_ADMIN', 'true'); // 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', '/zencart/admin/'); define('DIR_WS_CATALOG', '/zencart/'); define('DIR_WS_HTTPS_ADMIN', '/zencart/admin/'); define('DIR_WS_HTTPS_CATALOG', '/zencart/'); 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', 'http://www.acountrycupboard.com/docs/zencart/admin/'); define('DIR_FS_CATALOG', 'http://www.acountrycupboard.com/docs/zencart/'); 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', 'zen_'); define('DB_SERVER', 'MYSQL01'); // eg, localhost - should not be empty define('DB_SERVER_USERNAME', 'shoppingcart_aco'); define('DB_SERVER_PASSWORD', 'xxxxxxx'); define('DB_DATABASE', 'shoppingcart_aco'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'db' // 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', 'file'); define('DIR_FS_SQL_CACHE', 'acountrycupboard.com/docs/zencart/cache'); ?>

**and the following changes to zencart/includes/configure.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
    */

// 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.acountrycupboard.com');
define('HTTPS_SERVER', 'https://acountrycupboardcom.secure.myhosting.net');

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

// 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', '/zencart/');
define('DIR_WS_HTTPS_CATALOG', '/zencart/');

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', 'acountrycupboard.com/docs/zencart/');

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', 'MYSQL01'); // eg, localhost - should not be empty
define('DB_SERVER_USERNAME', 'shoppingcart_aco');
define('DB_SERVER_PASSWORD', 'xxxxxxx');
define('DB_DATABASE', 'shoppingcart_aco');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'db'

// 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', 'file');
define('DIR_FS_SQL_CACHE', 'acountrycupboard.com/docs/zencart/cache');

26 Mar 2008, 7:15 PM
#7
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Fatal error - site down

your server paths are not correct,
I am going to suggest that you upload the zc_install folder and and run the installer, ( just start it ) this will show you the correct server paths,

you can also set the config files to 777 and run the installer telling it to upgrade the configure files only

27 Mar 2008, 3:26 PM
#8
countrycupboard avatar

countrycupboard

New Zenner

Join Date:
Mar 2008
Posts:
37
Plugin Contributions:
0

Re: Fatal error - site down

Merlinpa1969:

your server paths are not correct,
I am going to suggest that you upload the zc_install folder and and run the installer, ( just start it ) this will show you the correct server paths,

you can also set the config files to 777 and run the installer telling it to upgrade the configure files only

Site still down ... OK. I'm completely stumped and out of my element. I ran the installer, and it now says at the top:

**Access denied for user 'shoppingcart_aco'@'localhost'
/admin/includes/configure.php does not exist **

I've changed my admin/includes/configure.php to the following:

<?php /** * dist-configure.php * * @package Configuration Settings * @package Admin * @copyright Copyright 2003-2007 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: dist-configure.php 6329 2007-05-16 15:36:56Z drbyte $ * @private */ // 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 // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.yourdomain.com // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.yourdomain.com /* * URL's 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 * * If you desire your *entire* admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following: */ define('HTTP_SERVER', 'http://acountrycupboard.com'); define('HTTPS_SERVER', 'https://https://acountrycupboardcom.secure.myhosting.net'); define('HTTP_CATALOG_SERVER', 'http://acountrycupboard.com'); define('HTTPS_CATALOG_SERVER', 'https://acountrycupboardcom.secure.myhosting.net'); // secure webserver for catalog module and/or admin areas? define('ENABLE_SSL_CATALOG', '/zencart/'); define('ENABLE_SSL_ADMIN', '/zencart/'); // 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', '/admin/'); define('DIR_WS_CATALOG', '/zencart/'); define('DIR_WS_HTTPS_ADMIN', '/admin/'); define('DIR_WS_HTTPS_CATALOG', '/zencart/'); 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', '/var/www/domains/acountrycupboard.com/docs/admin/'); define('DIR_FS_CATALOG', '/var/www/domains/acountrycupboard.com/docs/zencart/'); 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', 'zen_'); define('DB_SERVER', 'MYSQL01'); define('DB_SERVER_USERNAME', 'shoppingcart_aco'); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'xxxxxxxx'); define('USE_PCONNECT', 'false'); 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', 'file'); define('DIR_FS_SQL_CACHE', '/var/wwww/domains/acountrycupboard.com/docs/zencart/cache');
27 Mar 2008, 6:04 PM
#9
countrycupboard avatar

countrycupboard

New Zenner

Join Date:
Mar 2008
Posts:
37
Plugin Contributions:
0

Re: Fatal error - site down

I desperately need help! My site is completely down and I'm out of business.
I'm on a shared linux server, so my "root" directory starts after the /docs level. Here's what my server looks like when I ftp into it via the domain name acountrycupboard.com :

zencart
tmp
cgi-bin
index.php

I can see and download the zencart/admin/includes/configure.php file ... so I know it's there. I can aslo see the zencart/includes/configure.php file ... so I know it's there as well.

I'm totally in need of some very detailed help setting up the paths correctly. Can someone help me get the paths in the configure files correct so I can get my site up and running?

27 Mar 2008, 6:54 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Fatal error - site down

Based on your last post, try these corrections to your admin/includes/configure.php

  // secure webserver for catalog module and/or admin areas?
  define('ENABLE_SSL_CATALOG', 'true');
  define('ENABLE_SSL_ADMIN', 'true');

  define('DIR_WS_ADMIN', '/zencart/admin/');
  define('DIR_WS_CATALOG', '/zencart/');
  define('DIR_WS_HTTPS_ADMIN', '/zencart/admin/');
  define('DIR_WS_HTTPS_CATALOG', '/zencart/');


  define('DIR_FS_ADMIN', '/var/www/domains/acountrycupboard.com/docs/zencart/admin/');
  define('DIR_FS_CATALOG', '/var/www/domains/acountrycupboard.com/docs/zencart/');

  define('DIR_FS_SQL_CACHE', '/var/wwww/domains/acountrycupboard.com/docs/zencart/cache');
27 Mar 2008, 9:11 PM
#12
countrycupboard avatar

countrycupboard

New Zenner

Join Date:
Mar 2008
Posts:
37
Plugin Contributions:
0

Re: Fatal error - site down

made the changes, reposted it (made similar corrections in the zencart/includes/configure.php file as well. Same messages in the installer after "Recheck". It says

Access denied for user 'shoppingcart_aco'@'localhost'
/admin/includes/configure.php does not exist

and this is what shows when I try to go to https://www.acountrycupboard.com :

Warning: require(includes/application_top.php) [function.require]: failed to open stream: No such file or directory in /var/www/domains/acountrycupboard.com/docs/index.php on line 26

Warning: require(includes/application_top.php) [function.require]: failed to open stream: No such file or directory in /var/www/domains/acountrycupboard.com/docs/index.php on line 26

Fatal error: require() [function.require]: Failed opening required 'includes/application_top.php' (include_path='.:/usr/local/lib/php') in /var/www/domains/acountrycupboard.com/docs/index.php on line 26

27 Mar 2008, 9:26 PM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Fatal error - site down

countrycupboard:

Same messages in the installer after "Recheck". It says

Access denied for user 'shoppingcart_aco'@'localhost'That says that it tried to use a DB_SERVER_USERNAME of 'shoppingcart_aco' and a DB_SERVER of 'localhost', but was disallowed access using that username and whatever password was supplied.
That could be due to a bad password, or a bad username, or the wrong server being specified.
I notice that your earlier posts said DB_SERVER was set to MYSQL01, not localhost, but your error message is saying localhost. So, either you've posted wrong, or the file on your server contains bad data. And maybe the updates you're trying to make aren't uploading properly because the file is read-only?

27 Mar 2008, 9:33 PM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Fatal error - site down

countrycupboard:

I just recently moved my site to a new shared Linux server. https://www.acountrycupboard.com
Now I'm getting the following error:

Warning: require(includes/application_top.php) [function.require]: failed to open stream: No such file or directory in /var/www/domains/acountrycupboard.com/docs/index.php on line 26

Fatal error: require() [function.require]: Failed opening required 'includes/application_top.php' (include_path='.:/usr/local/lib/php') in /var/www/domains/acountrycupboard.com/docs/index.php on line 26

This specific occurrence of this message is peculiar.
Normally the include_path should contain a . just as yours does, and that means that the server should automatically use the current working directory as a reference point for any request to include/require files in PHP.
But it seems yours is not.

I'm inclined to suggest that you need to talk to your hosting company about their PHP configuration and ask why it's not successfully including files from the current working directory as relative paths even though it says it's set to do that.

27 Mar 2008, 9:33 PM
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Fatal error - site down

What version of Zen Cart?

What did you change servers?

Who did you move to, and why did you select them?

27 Mar 2008, 9:43 PM
#16
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Fatal error - site down

As an addendum to my second-last post ... I might have misread that.

First, are all your files still in a "zencart" folder, or directly in your "docs" folder?

If they're all in a "zencart" folder, then don't bug your host, because the problem isn't theirs. You likely haven't successfully uploaded your configure.php changes due to the file being read-only.

Your error messages don't mention the /zencart/ folder, but your earlier posts assert that you're using a folder named /zencart/.
Thus, the error messages would be correct in saying that they cannot find the requested files.

ie: going to your zencart folder gives no error message: http://www.acountrycupboard.com/zencart/
(just a blank screen)

27 Mar 2008, 10:01 PM
#17
countrycupboard avatar

countrycupboard

New Zenner

Join Date:
Mar 2008
Posts:
37
Plugin Contributions:
0

Re: Fatal error - site down

made the changes, reposted it (made similar corrections in the zencart/includes/configure.php file as well. Same messages in the installer after "Recheck". It says

Access denied for user 'shoppingcart_aco'@'localhost'
/admin/includes/configure.php does not exist

and this is what shows when I try to go to https://www.acountrycupboard.com :

Warning: require(includes/application_top.php) [function.require]: failed to open stream: No such file or directory in /var/www/domains/acountrycupboard.com/docs/index.php on line 26

Warning: require(includes/application_top.php) [function.require]: failed to open stream: No such file or directory in /var/www/domains/acountrycupboard.com/docs/index.php on line 26

Fatal error: require() [function.require]: Failed opening required 'includes/application_top.php' (include_path='.:/usr/local/lib/php') in /var/www/domains/acountrycupboard.com/docs/index.php on line 26

27 Mar 2008, 10:09 PM
#18
countrycupboard avatar

countrycupboard

New Zenner

Join Date:
Mar 2008
Posts:
37
Plugin Contributions:
0

Re: Fatal error - site down

I think I made a huge blunder. I didn't do an install on the new server. I just ftp'd my copy of the files to the new server. I'll back everything out and start with the steps in the FAQ link you provided. Never occurred to me to reinstall. BTW - I'm running 1.3.8a - I have everything backed up, including my database. Oh, well, it's going to be a long night!

Many thanks for getting me back on track! I'll let you know how it worked out.

31 Mar 2008, 7:04 PM
#19
countrycupboard avatar

countrycupboard

New Zenner

Join Date:
Mar 2008
Posts:
37
Plugin Contributions:
0

Re: Fatal error - site down

OK. After several re-intalls, several calls to my hosting support folks, who hadn't gotten around to closing the old site out yet and who had not initiated my secure server account yet, i finally got everything to work! Finishing up a few cosmetics that resulted from having to revert back to the next to last backup and a lot of fixes to the database, we're up and back in business. Boy, I learned a whole lot more about mySQL editing than I ever wanted to know. The sugggestion to review the

https://www.zen-cart.com/tutorials/index.php?article=100

was the answer. Many, many thanks to everyone whp provided guidance!

countrycupboard.
acountrycupboard.com

1 Apr 2008, 5:37 PM
#20
countrycupboard avatar

countrycupboard

New Zenner

Join Date:
Mar 2008
Posts:
37
Plugin Contributions:
0

Re: Fatal error - site down

Well, looks like i spoke too soon. My page is working - all my customization is present, but when I go into my admin page and select configuration/layout settings, many of the options come back with an error message - ususally a variant of the following, depending on which option I select:
Fatal error: Call to undefined function cfg_select_option() in /var/www/domains/acountrycupboard.com/docs/admin/configuration.php(192) : eval()'d code on line 1