Jump to content
rsthornton

osCommerce Online Merchant v2.3.4.1 Admin

Recommended Posts

When I try to access the Admin section of my website I receive the following error:

Warning: require(/catalog/includes/classes/action_recorder.php): failed to open stream: No such file or directory in /catalog/admin/includes/classes/action_recorder.php on line 13

Fatal error: require(): Failed opening required '/catalog/includes/classes/action_recorder.php' (include_path='.:/usr/local/php5_6/lib/php') in /catalog/admin/includes/classes/action_recorder.php on line 13

 

Can anyone provide a solution to correct this?

Edited by rsthornton

Share this post


Link to post
Share on other sites

This is the kind of thing that happens when you install a contribution that is written for a different version of the software than the one that you are using.  E.g. a contribution for Phoenix in 2.3.4.1. 

If that's the problem, you might be able to get around this by going to line 13 of /catalog/admin/includes/classes/action_recorder.php and adding a // to it so it looks like

//require(DIR_FS_CATALOG . 'includes/classes/action_recorder.php');

But that also might just get you to a new error. 

Another possibility is that your /admin/includes/configure.php is incorrect.  Perhaps $DOCUMENT_ROOT isn't getting set and you need to change it to something else. 

  define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

This is something that you'd have to discuss with whomever manages your server, because each server is different.  If you are on Linux and can do an ls command in the root of your web directory, use the pwd command to get the correct value.  It should not end in a / (but should start with one).

Another possibility is that the /catalog/ part is incorrect.  Make sure that your includes/configure.php and admin/includes/configure.php match in where they expect the shop to be. 


Always backup before making changes.

Share this post


Link to post
Share on other sites

That makes it more likely that your includes/configure.php and admin/includes/configure.php files are different.  As those are files that can cause a problem like this, and they get changed as part of the SSL install. 

Do you have older copies of those files?  Perhaps you need to contact your host to determine the right value for DIR_FS_DOCUMENT_ROOT.  I keep harping on that because /catalog/includes/classes/action_recorder.php is missing that.  So unless you edited out the value from there, that seems to be set incorrectly. 

Another thing that you can check is if /catalog/includes/classes/action_recorder.php exists.  If it does, it's more likely to be a configuration problem.  If not, then why is the code trying to load it? 


Always backup before making changes.

Share this post


Link to post
Share on other sites

These are my configure files, maybe I'm not seeing something

 

admin/includes/configure.php

<?php
  define('HTTP_SERVER', 'https://www.site.com');
  define('HTTPS_SERVER', 'https://www.site.com');
  define('ENABLE_SSL', true);
  define('HTTP_COOKIE_DOMAIN', '');
  define('HTTPS_COOKIE_DOMAIN', '');
  define('HTTP_COOKIE_PATH', '/admin');
  define('HTTPS_COOKIE_PATH', '/admin');
  define('HTTP_CATALOG_SERVER', 'https://www.site.com');
  define('HTTPS_CATALOG_SERVER', 'https://www.site.com');
  define('ENABLE_SSL_CATALOG', 'true');
  define('DIR_FS_DOCUMENT_ROOT', '/catalog/');
  define('DIR_WS_ADMIN', '/admin/');
  define('DIR_WS_HTTPS_ADMIN', '/admin/');
  define('DIR_FS_ADMIN', '/catalog/');
  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_CATALOG', '/');
  define('DIR_FS_CATALOG', '/catalog/');
  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
  define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
  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', DIR_WS_CATALOG . 'includes/languages/');
  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_BACKUP', DIR_FS_ADMIN . 'backups/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

  define('DB_SERVER', 'server');
  define('DB_SERVER_USERNAME', 'username');
  define('DB_SERVER_PASSWORD', 'password');
  define('DB_DATABASE', 'database');
  define('USE_PCONNECT', 'false');
  define('STORE_SESSIONS', 'mysql');
  define('CFG_TIME_ZONE', 'America/Chicago');
?>

 

catalog/includes/configure.php

<?php
  define('HTTP_SERVER', 'https://www.site.com');
  define('HTTPS_SERVER', 'https://www.site.com');
  define('ENABLE_SSL', true);
  define('HTTP_COOKIE_DOMAIN', '');
  define('HTTPS_COOKIE_DOMAIN', '');
  define('HTTP_COOKIE_PATH', '/');
  define('HTTPS_COOKIE_PATH', '/');
  define('DIR_WS_HTTP_CATALOG', '/');
  define('DIR_WS_HTTPS_CATALOG', '/');
  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
  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', 'pub/');
  define('DIR_FS_CATALOG', '/catalog/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

  define('DB_SERVER', 'server');
  define('DB_SERVER_USERNAME', 'username');
  define('DB_SERVER_PASSWORD', 'password');
  define('DB_DATABASE', 'database');
  define('USE_PCONNECT', 'false');
  define('STORE_SESSIONS', 'mysql');
  define('CFG_TIME_ZONE', 'America/Chicago');
?>

 

Edited by rsthornton

Share this post


Link to post
Share on other sites

DIR_FS_ADMIN, DIR_FS_DOCUMENT_ROOT and DIR_FS_CATALOG is wrong. It should be an absolut physical path to your admin/store directory.

Edited by raiwa

Share this post


Link to post
Share on other sites
define('DIR_FS_DOCUMENT_ROOT', '/catalog/');

This looks wrong.  It should generally have a value that looks more like /home/rsthornton or /usr/local/apache2/html or /var/www/html or something like that.  It definitely should not be '/catalog/' -- perhaps '' if you have a really weird server setup.  It should not end in a /

Similarly DIR_FS_CATALOG should generally be DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG and DIR_FS_ADMIN should have a different value than DIR_FS_CATALOG


Always backup before making changes.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×