Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

help with file


Guest

Recommended Posts

I have just uploaded 2.3.1 to a folder called shop

 

I didnt want it to be in the catalog folder so I uploaded it in the shop folder but am getting this error just on the admin side

 

Warning: require(/shop/includes/classes/action_recorder.php): failed to open stream: No such file or directory in /customers/irhwebsites.co.uk/irhwebsites.co.uk/httpd.www/shop/administration/includes/classes/action_recorder.php on line 13 Fatal error: require(): Failed opening required '/shop/includes/classes/action_recorder.php' (include_path='.:/usr/share/php') in /customers/irhwebsites.co.uk/irhwebsites.co.uk/httpd.www/shop/administration/includes/classes/action_recorder.php on line 13

 

The url for the admin is http://www.irhwebsites.co.uk/shop/administration/login.php

 

Hope someone can help, sorry

 

The file is on the web server, that is why I am so confused with it

Link to comment
Share on other sites

Check how you have amended your configure.php files to call up the new location

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Link to comment
Share on other sites

Hi thank you both for the reply

 

I checked the administration/includes/configure.php and noticed the shop/administration/ in that file so took that out so it looks like this now

 

define('DIR_WS_ADMIN', '');

 

It's prob not right but am so confused with it not sure what to put in there, i thought it would be the shop/administration/

Link to comment
Share on other sites

I think you need to post the top portion of your configure file - without the database and username / password elements - there are still some errors there I think

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Link to comment
Share on other sites

@@ianhaney

 

The /admin/includes/configure.php should look something like this:

 

<?php

define('HTTP_SERVER', 'http://www.irhwebsites.co.uk');

define('HTTP_CATALOG_SERVER', 'https://www.irhwebsites.co.uk');

define('HTTPS_CATALOG_SERVER', 'http://www.irhwebsites.co.uk');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/home/content/xxxxxxxx/html/shop/');

define('DIR_WS_ADMIN', '/shop/administrator/');

define('DIR_FS_ADMIN', '/home/content/xxxxxxxx/html/shop/administrator/');

define('DIR_WS_CATALOG', '/shop/');

define('DIR_FS_CATALOG', '/home/content/xxxxxxxx/html/shop/administrator/');

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/');

 

 

 

Chris

Link to comment
Share on other sites

Hi thank you for the replies

 

my administration/includes/configure.php file now looks like this but still got the error

 

 define('HTTP_SERVER', 'http://www.irhwebsites.co.uk'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', 'https://www.irhwebsites.co.uk');
 define('HTTPS_CATALOG_SERVER', 'http://www.irhwebsites.co.uk');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/shop/'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
 define('DIR_WS_ADMIN', '/shop/administration/');
 define('DIR_FS_ADMIN', '/shop/administration/');
 define('DIR_WS_CATALOG', '/shop/');
 define('DIR_FS_CATALOG', '/shop/administration/');
 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/');

 

The error is below

 

Warning: require(/shop/administration/administration/includes/classes/action_recorder.php): failed to open stream: No such file or directory in /customers/irhwebsites.co.uk/irhwebsites.co.uk/httpd.www/shop/administration/includes/classes/action_recorder.php on line 13 Fatal error: require(): Failed opening required '/shop/administration/administration/includes/classes/action_recorder.php' (include_path='.:/usr/share/php') in /customers/irhwebsites.co.uk/irhwebsites.co.uk/httpd.www/shop/administration/includes/classes/action_recorder.php on line 13

Link to comment
Share on other sites

Sorry I did spot a error in the error I am getting and corrected in the shop/administration/includes/classes/action_recorder.php file

 

My error now looks like below

 

Warning: require(/shop/administration/includes/classes/action_recorder.php): failed to open stream: No such file or directory in /customers/irhwebsites.co.uk/irhwebsites.co.uk/httpd.www/shop/administration/includes/classes/action_recorder.php on line 13 Fatal error: require(): Failed opening required '/shop/administration/includes/classes/action_recorder.php' (include_path='.:/usr/share/php') in /customers/irhwebsites.co.uk/irhwebsites.co.uk/httpd.www/shop/administration/includes/classes/action_recorder.php on line 13

Link to comment
Share on other sites

This is my shop/includes/configure.php file

 

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://www.irhwebsites.co.uk'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.irhwebsites.co.uk'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', '');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '');
 define('HTTPS_COOKIE_PATH', '');
 define('DIR_WS_HTTP_CATALOG', '/shop/');
 define('DIR_WS_HTTPS_CATALOG', '/shop/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 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_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

No doubt I have done that wrong as well lol

Link to comment
Share on other sites

Your DIR_FS_DOCUMENT_* entries are bad. You're telling PHP to start in /shop, which means the filesystem root and "shop" directly under it. You need to change it to "home/ACCOUNTNAME/public_html/shop/", etc., or whatever the full file path is on your particular system. It's definitely not just /shop.

Link to comment
Share on other sites

On the server your shop file is in what folder.

 

Why not compare the configure files from your good working irh toys website if they are on similar servers.

REMEMBER BACKUP, BACKUP AND BACKUP

Link to comment
Share on other sites

this is my shop/includes/configure.php file

 

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://www.irhwebsites.co.uk'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.irhwebsites.co.uk'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'irhwebsites.co.uk');
 define('HTTPS_COOKIE_DOMAIN', 'irhwebsites.co.uk');
 define('HTTP_COOKIE_PATH', '/shop/');
 define('HTTPS_COOKIE_PATH', '/shop/');
 define('DIR_WS_HTTP_CATALOG', '/shop/');
 define('DIR_WS_HTTPS_CATALOG', '/shop/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 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_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

This is my shop/administration/includes/configure.php file

 

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
 define('HTTP_SERVER', 'http://www.irhwebsites.co.uk'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', 'https://www.irhwebsites.co.uk');
 define('HTTPS_CATALOG_SERVER', 'http://www.irhwebsites.co.uk');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/home/content/irhwebsites.co.uk/shop/'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
 define('DIR_WS_ADMIN', '/shop/administration/');
 define('DIR_FS_ADMIN', '/home/content/irhwebsites.co.uk/shop/administration/');
 define('DIR_WS_CATALOG', '/shop/');
 define('DIR_FS_CATALOG', '/home/content/irhwebsites.co.uk/shop/');
 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/');

 

Still got the following error

 

Warning: require(): open_basedir restriction in effect. File(/home/content/irhwebsites.co.uk/shop/includes/classes/action_recorder.php) is not within the allowed path(s): (/customers/irhwebsites.co.uk/irhwebsites.co.uk/httpd.www:/customers/irhwebsites.co.uk/irhwebsites.co.uk/httpd.private:/customers/irhwebsites.co.uk/irhwebsites.co.uk/tmp:/customers/irhwebsites.co.uk/irhwebsites.co.uk:/var/www/diagnostics:/usr/share/php) in /customers/irhwebsites.co.uk/irhwebsites.co.uk/httpd.www/shop/administration/includes/classes/action_recorder.php on line 13 Warning: require(/home/content/irhwebsites.co.uk/shop/includes/classes/action_recorder.php): failed to open stream: Operation not permitted in /customers/irhwebsites.co.uk/irhwebsites.co.uk/httpd.www/shop/administration/includes/classes/action_recorder.php on line 13 Fatal error: require(): Failed opening required '/home/content/irhwebsites.co.uk/shop/includes/classes/action_recorder.php' (include_path='.:/usr/share/php') in /customers/irhwebsites.co.uk/irhwebsites.co.uk/httpd.www/shop/administration/includes/classes/action_recorder.php on line 13

 

Doing my head in now, I can't even do a simple fix like this

Link to comment
Share on other sites

Hi Steve

 

I did try comparing the two configure files from my irh toys site and they are like the following

 

/home/sites/irhtoys.co.uk/public_html/

 

But the irh toys is with a different host

 

On the server for irh websites, the shop folder is in the root

Link to comment
Share on other sites

that's right and to be honest, I have had enough of being criticised, I ask for a bit of help not to be criticised thank you, sorry for asking for a bit of help

Link to comment
Share on other sites

File(/home/content/irhwebsites.co.uk/shop/includes/classes/action_recorder.php) is not within the allowed path(s): (/customers/irhwebsites.co.uk/irhwebsites.co.uk/httpd.www:/customers/irhwebsites.co.uk/irhwebsites.co.uk/httpd.private:/customers/irhwebsites.co.uk/irhwebsites.co.uk/tmp:/customers/irhwebsites.co.uk/irhwebsites.co.uk:/var/www/diagnostics:/usr/share/php) in /customers/irhwebsites.co.uk/irhwebsites.co.uk/httpd.www/shop/administration/includes/classes/action_recorder.php

That tells you that your shop is running in filesystem directory path /customers/irhwebsites.co.uk/irhwebsites.co.uk/httpd.www/shop/ (strange that there are nested directories named irhwebsites.co.uk!). That's what your DIR_FS_* entries would have to start with, not /home/content/irhwebsites.co.uk/shop/.

 

DIR_WS_* entries would start with /shop/, as that's the website (HTML) root for your shop.

Link to comment
Share on other sites

One wonders what exactly was uploaded - whether the full installation kit, with its database and pathname dialogues.

And if so, whether defaults were accepted.

Perhaps ianhaney could be more explicit about this, because there should be no need to amend configuration files.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...