Re: Admin Page Won't Load
I tried to edit the above post, but it won't allow me to, so here's a quick update.
I tried logging in again, and this is the newest log report. At least it finally showed the proper admin folder, so I changed that to xxxxxx in this post.
[15-Jul-2024 13:59:12 America/Chicago] Request URI: /xxxxxx/, IP address: 108.189.243.79, Language id 1
#1 require_once() called at [/home2/boruma/public_html/rainforest-pets.com/includes/autoload_func.php:40]
#2 require(/home2/boruma/public_html/rainforest-pets.com/includes/autoload_func.php) called at [/home2/boruma/public_html/rainforest-pets.com/xxxxxx/includes/application_top.php:42]
#3 require(/home2/boruma/public_html/rainforest-pets.com/xxxxxx/includes/application_top.php) called at [/home2/boruma/public_html/rainforest-pets.com/xxxxxx/home.php:9]
#4 require(/home2/boruma/public_html/rainforest-pets.com/xxxxxx/home.php) called at [/home2/boruma/public_html/rainforest-pets.com/xxxxxx/index.php:11]
--> PHP Warning: require_once(includes/init_includes/init_special_funcs.php): failed to open stream: No such file or directory in /home2/boruma/public_html/rainforest-pets.com/includes/autoload_func.php on line 40.
[15-Jul-2024 13:59:12 America/Chicago] PHP Fatal error: require_once(): Failed opening required 'includes/init_includes/init_special_funcs.php' (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home2/boruma/public_html/rainforest-pets.com/includes/autoload_func.php on line 40
But here's what's really weird: The two files it's saying aren't there: (includes/autoload_func.php) and (includes/init_includes/init_special_funcs.php) ARE both there, right where they belong! So why is it saying they're not there??
Re: Admin Page Won't Load
It "sounds like" the /admin/includes/configure.php has some extra/unwanted information present. Please post the contents (minus the database settings, towards the bottom of the file) using the "CODE" tag (the big # in the menu-bar when you write your response).
Re: Admin Page Won't Load
Thanks for your quick reply, lat9! Is this what you're looking for?
Code:
<?php
/**
* @copyright Copyright 2003-2022 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* File Built by Zen Cart Installer on Mon Jul 15 2024 13:31:11
*/
/*************** NOTE: This file is VERY similar to, but DIFFERENT from the "store" version of configure.php. ***********/
/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/
/**
* Enter the domain for your Admin URL. If you have SSL, enter the correct https address in the HTTP_SERVER setting, instead of just an http address.
*/
define('HTTP_SERVER', 'https://rainforest-pets.com');
/**
* Note about HTTPS_SERVER:
* There is no longer an HTTPS_SERVER setting for the Admin. Instead, put your SSL URL in the HTTP_SERVER setting above.
*/
/**
* Note about DIR_WS_ADMIN
* The DIR_WS_ADMIN value is now auto-detected.
* In the rare case where it cannot be detected properly, you can add your own DIR_WS_ADMIN definition below.
*/
/**
* Enter the domain for your storefront URL.
* Enter a separate SSL URL in HTTPS_CATALOG_SERVER if your store supports SSL.
*/
define('HTTP_CATALOG_SERVER', 'https://rainforest-pets.com');
define('HTTPS_CATALOG_SERVER', 'https://rainforest-pets.com');
/**
* Do you use SSL for your customers login/checkout on the storefront? If so, enter 'true'. Else 'false'.
*/
define('ENABLE_SSL_CATALOG', 'true');
/**
* These DIR_WS_xxxx values refer to the name of any subdirectory in which your store is located.
* These values get added to the HTTP_CATALOG_SERVER and HTTPS_CATALOG_SERVER values to form the complete URLs to your storefront.
* They should always start and end with a slash ... ie: '/' or '/foldername/'
*/
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
/**
* This is the complete physical path to your store's files. eg: /var/www/vhost/accountname/public_html/store/
* Should have a closing / on it.
*/
define('DIR_FS_CATALOG', '/home2/boruma/public_html/rainforest-pets.com/');
/**
* NOTE about DIR_FS_ADMIN
* The value for DIR_FS_ADMIN is now auto-detected.
* In the very rare case where there is a need to override the autodetection, simply add your own definition for it below.
*/
Re: Admin Page Won't Load
There should also be a file /admin/includes/init_includes/init_special_funcs.php (where admin is your site's admin directory name).
You can find your Zen Cart version by viewing the contents of /includes/version.php, BTW.
Re: Admin Page Won't Load
Good to know. I'm definitely using version 1.5.8a.
The admin/includes/init_includes/init_special_funcs.php file is not there. How do I correct this?
Re: Admin Page Won't Load
Quote:
Originally Posted by
CJDarling
Thanks for your quick reply, lat9! Is this what you're looking for?
Code:
<?php
/**
* @copyright Copyright 2003-2022 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* File Built by Zen Cart Installer on Mon Jul 15 2024 13:31:11
*/
/*************** NOTE: This file is VERY similar to, but DIFFERENT from the "store" version of configure.php. ***********/
/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/
/**
* Enter the domain for your Admin URL. If you have SSL, enter the correct https address in the HTTP_SERVER setting, instead of just an http address.
*/
define('HTTP_SERVER', 'https://rainforest-pets.com');
/**
* Note about HTTPS_SERVER:
* There is no longer an HTTPS_SERVER setting for the Admin. Instead, put your SSL URL in the HTTP_SERVER setting above.
*/
/**
* Note about DIR_WS_ADMIN
* The DIR_WS_ADMIN value is now auto-detected.
* In the rare case where it cannot be detected properly, you can add your own DIR_WS_ADMIN definition below.
*/
/**
* Enter the domain for your storefront URL.
* Enter a separate SSL URL in HTTPS_CATALOG_SERVER if your store supports SSL.
*/
define('HTTP_CATALOG_SERVER', 'https://rainforest-pets.com');
define('HTTPS_CATALOG_SERVER', 'https://rainforest-pets.com');
/**
* Do you use SSL for your customers login/checkout on the storefront? If so, enter 'true'. Else 'false'.
*/
define('ENABLE_SSL_CATALOG', 'true');
/**
* These DIR_WS_xxxx values refer to the name of any subdirectory in which your store is located.
* These values get added to the HTTP_CATALOG_SERVER and HTTPS_CATALOG_SERVER values to form the complete URLs to your storefront.
* They should always start and end with a slash ... ie: '/' or '/foldername/'
*/
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
/**
* This is the complete physical path to your store's files. eg: /var/www/vhost/accountname/public_html/store/
* Should have a closing / on it.
*/
define('DIR_FS_CATALOG', '/home2/boruma/public_html/rainforest-pets.com/');
/**
* NOTE about DIR_FS_ADMIN
* The value for DIR_FS_ADMIN is now auto-detected.
* In the very rare case where there is a need to override the autodetection, simply add your own definition for it below.
*/
Delete the above in red.
Should be
Code:
define('DIR_FS_CATALOG', '/home2/boruma/public_html/');
Re: Admin Page Won't Load
Okay, that helped...I think. Now I'm seeing an error page that says I either need to upload and run the zc_install folder (which I removed yesterday following the install instructions, or the admin folder would have been blocked, or
Code:
This is not your first time using Zen CartŪ and you have previously completed the normal installation procedures.
If this is the case for you, then...
Your /includes/configure.php and/or /admin/includes/configure.php files contain invalid path information and/or invalid database-connection information.
If you recently edited your configure.php files for any reason, or perhaps moved your site to a different folder or different server, then you will need to review and update all your settings to the correct values for your server.
Additionally, if the permissions have been changed on your configure.php files, then perhaps they are too low for the files to be read.
Or the configure.php files could be missing altogether.
Or your web hosting provider has recently changed the server's PHP configuration (or upgraded its version) then they may have broken things as well.
See the Online Documentation area on the Zen CartŪ website for assistance.
I tried editing includes/configure.php, removing the same section of code, but nothing has changed. I'm still getting the same error page. So what else do I need to check?
Re: Admin Page Won't Load
We really need to see both config files (with database names and passwords changed) in order to get everything set correctly.
Again, use the # and add them separately.
Re: Admin Page Won't Load
Sure, no problem.
admin/includes/configure.php:
Code:
<?php
/**
* @copyright Copyright 2003-2022 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* File Built by Zen Cart Installer on Mon Jul 15 2024 13:31:11
*/
/*************** NOTE: This file is VERY similar to, but DIFFERENT from the "store" version of configure.php. ***********/
/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/
/**
* Enter the domain for your Admin URL. If you have SSL, enter the correct https address in the HTTP_SERVER setting, instead of just an http address.
*/
define('HTTP_SERVER', 'https://rainforest-pets.com');
/**
* Note about HTTPS_SERVER:
* There is no longer an HTTPS_SERVER setting for the Admin. Instead, put your SSL URL in the HTTP_SERVER setting above.
*/
/**
* Note about DIR_WS_ADMIN
* The DIR_WS_ADMIN value is now auto-detected.
* In the rare case where it cannot be detected properly, you can add your own DIR_WS_ADMIN definition below.
*/
/**
* Enter the domain for your storefront URL.
* Enter a separate SSL URL in HTTPS_CATALOG_SERVER if your store supports SSL.
*/
define('HTTP_CATALOG_SERVER', 'https://rainforest-pets.com');
define('HTTPS_CATALOG_SERVER', 'https://rainforest-pets.com');
/**
* Do you use SSL for your customers login/checkout on the storefront? If so, enter 'true'. Else 'false'.
*/
define('ENABLE_SSL_CATALOG', 'true');
/**
* These DIR_WS_xxxx values refer to the name of any subdirectory in which your store is located.
* These values get added to the HTTP_CATALOG_SERVER and HTTPS_CATALOG_SERVER values to form the complete URLs to your storefront.
* They should always start and end with a slash ... ie: '/' or '/foldername/'
*/
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
/**
* This is the complete physical path to your store's files. eg: /var/www/vhost/accountname/public_html/store/
* Should have a closing / on it.
*/
define('DIR_FS_CATALOG', '/home2/boruma/public_html/');
/**
* NOTE about DIR_FS_ADMIN
* The value for DIR_FS_ADMIN is now auto-detected.
* In the very rare case where there is a need to override the autodetection, simply add your own definition for it below.
*/
includes/configure.php:
Code:
<?php
/**
* @copyright Copyright 2003-2022 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* File Built by Zen Cart Installer on Mon Jul 15 2024 13:31:11
*/
/*************** NOTE: This file is VERY similar to, but DIFFERENT from the "admin" version of configure.php. ***********/
/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/
/**
* Enter the domain for your store
* If you have SSL, enter the correct https address in BOTH the HTTP_SERVER and HTTPS_SERVER settings, instead of just an http address.
*/
define('HTTP_SERVER', 'https://rainforest-pets.com');
define('HTTPS_SERVER', 'https://rainforest-pets.com');
/**
* If you have https enabled on your website, set this to 'true'
*/
define('ENABLE_SSL', 'true');
/**
* These DIR_WS_xxxx values refer to the name of any subdirectory in which your store is located.
* These values get added to the HTTP_CATALOG_SERVER and HTTPS_CATALOG_SERVER values to form the complete URLs to your storefront.
* They should always start and end with a slash ... ie: '/' or '/foldername/'
*/
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
/**
* This is the complete physical path to your store's files. eg: /var/www/vhost/accountname/public_html/store/
* Should have a closing / on it.
*/
define('DIR_FS_CATALOG', '/home2/boruma/public_html/');
/**