Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

errors after cloning website to new hosting server


rayjuan

Recommended Posts

Posted

hi all

 

ive managed to edit all the configure.php in /includes and /admin/includes/ all paths are set correctly.

 

mysql database was also sucessfully imported. but i get these errors on my

 

FRONT PAGE

 

Warning: session_save_path() [function.session-save-path]: open_basedir restriction in effect. File(/home/thecultl/public_html/shop/includes/work/) is not within the allowed path(s): (/home/ecommerva/:/home/ecommerva:/tmp/:/tmp:/usr/local/lib/php/) in /home/ecommerva/domains/ecommercevalue.com/public_html/customerpreview1/includes/functions/sessions.php on line 169

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/ecommerva/domains/ecommercevalue.com/public_html/customerpreview1/includes/functions/sessions.php:169) in /home/ecommerva/domains/ecommercevalue.com/public_html/customerpreview1/includes/functions/sessions.php on line 102

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/ecommerva/domains/ecommercevalue.com/public_html/customerpreview1/includes/functions/sessions.php:169) in /home/ecommerva/domains/ecommercevalue.com/public_html/customerpreview1/includes/functions/sessions.php on line 102

 

 

and the following errors in my /admin login

 

 

Warning: session_save_path() [function.session-save-path]: open_basedir restriction in effect. File(/home/thecultl/public_html/shop/includes/work/) is not within the allowed path(s): (/home/ecommerva/:/home/ecommerva:/tmp/:/tmp:/usr/local/lib/php/) in /home/ecommerva/domains/ecommercevalue.com/public_html/customerpreview1/admin/includes/functions/sessions.php on line 165

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/ecommerva/domains/ecommercevalue.com/public_html/customerpreview1/admin/includes/functions/sessions.php:165) in /home/ecommerva/domains/ecommercevalue.com/public_html/customerpreview1/admin/includes/functions/sessions.php on line 102

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/ecommerva/domains/ecommercevalue.com/public_html/customerpreview1/admin/includes/functions/sessions.php:165) in /home/ecommerva/domains/ecommercevalue.com/public_html/customerpreview1/admin/includes/functions/sessions.php on line 102

 

Warning: Cannot modify header information - headers already sent by (output started at /home/ecommerva/domains/ecommercevalue.com/public_html/customerpreview1/admin/includes/functions/sessions.php:165) in /home/ecommerva/domains/ecommercevalue.com/public_html/customerpreview1/admin/includes/functions/general.php on line 34

 

 

been trying to work this but to no avail

 

can someone please help.................

Posted

Your sessions setting is your problem. I did a quick search on the internet. There is a lot of help on it.

Use this as your search parameter:

Warning: session_save_path() [function.session-save-path]: open_basedir restriction in effect.

Posted

THANKS FIMBLE!

 

the add on worked perfectly well removing all errors on the front page .index

 

now....... im only left with the errors when loading /admin .....

 

 

Warning: require() [function.require]: open_basedir restriction in effect. File(/home/customerpreview1/public_html/includes/classes/action_recorder.php) is not within the allowed path(s): (/home/ecommerva/:/home/ecommerva:/tmp/:/tmp:/usr/local/lib/php/) in /home/ecommerva/domains/ecommercevalue.com/public_html/customerpreview1/admin/includes/classes/action_recorder.php on line 13

 

Warning: require(/home/customerpreview1/public_html/includes/classes/action_recorder.php) [function.require]: failed to open stream: Operation not permitted in /home/ecommerva/domains/ecommercevalue.com/public_html/customerpreview1/admin/includes/classes/action_recorder.php on line 13

 

Fatal error: require() [function.require]: Failed opening required '/home/customerpreview1/public_html/includes/classes/action_recorder.php' (include_path='.:/usr/local/lib/php') in /home/ecommerva/domains/ecommercevalue.com/public_html/customerpreview1/admin/includes/classes/action_recorder.php on line 13

Posted

THANKS FIMBLE!

 

the add on worked perfectly well removing all errors on the front page .index

 

now....... im only left with the errors when loading /admin .....

 

 

Warning: require() [function.require]: open_basedir restriction in effect. File(/home/customerpreview1/public_html/includes/classes/action_recorder.php) is not within the allowed path(s): (/home/ecommerva/:/home/ecommerva:/tmp/:/tmp:/usr/local/lib/php/) in /home/ecommerva/domains/ecommercevalue.com/public_html/customerpreview1/admin/includes/classes/action_recorder.php on line 13

 

Warning: require(/home/customerpreview1/public_html/includes/classes/action_recorder.php) [function.require]: failed to open stream: Operation not permitted in /home/ecommerva/domains/ecommercevalue.com/public_html/customerpreview1/admin/includes/classes/action_recorder.php on line 13

 

Fatal error: require() [function.require]: Failed opening required '/home/customerpreview1/public_html/includes/classes/action_recorder.php' (include_path='.:/usr/local/lib/php') in /home/ecommerva/domains/ecommercevalue.com/public_html/customerpreview1/admin/includes/classes/action_recorder.php on line 13

 

 

hi ..can someone please help...what is action_recorder.php been brought up as an error?

Posted

hope someone can help me out here.. i have copied both my configure.php codes here.. could it be a path error that ive keyed in wrongly?

 

FOR /includes/configure.php

 

<?php
 define('HTTP_SERVER', 'http://ecommercevalue.com/customerpreview1/');
 define('HTTPS_SERVER', 'https://ecommercevalue.com/customerpreview1');
 define('ENABLE_SSL', false);
 define('HTTP_COOKIE_DOMAIN', 'ecommercevalue.com/customerpreview1');
 define('HTTPS_COOKIE_DOMAIN', 'ecommercevalue.com/customerpreview1');
 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_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', '/home/customerpreview1//public_html/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 define('DB_SERVER', 'localhost');
 define('DB_SERVER_USERNAME', 'db_server_username');
 define('DB_SERVER_PASSWORD', 'secret');
 define('DB_DATABASE', 'database');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

 

 

for /admin/includes/configure.php

 

<?php
 define('HTTP_SERVER', 'http://ecommercevalue.com/customerpreview1/');
 define('HTTP_CATALOG_SERVER', 'http://ecommercevalue.com/customerpreview1/');
 define('HTTPS_CATALOG_SERVER', 'https://ecommercevalue.com/customerpreview1/');
 define('ENABLE_SSL_CATALOG', false);
 define('DIR_FS_DOCUMENT_ROOT', '/home/customerpreview1/public_html/');
 define('DIR_WS_ADMIN', '/admin_directory/');
 define('DIR_FS_ADMIN', '/home/customerpreview1/public_html/admin_directory/');
 define('DIR_WS_CATALOG', '/');
 define('DIR_FS_CATALOG', '/home/customerpreview1/public_html/');
 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', 'localhost');
 define('DB_SERVER_USERNAME', 'db_server_username');
 define('DB_SERVER_PASSWORD', 'secret');
 define('DB_DATABASE', 'database');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

  • 9 months later...
Posted

hi ..can someone please help...what is action_recorder.php been brought up as an error?

 

now....... im only left with the errors when loading /admin .....

 

 

Warning: require() [function.require]: open_basedir restriction in effect. File(/home/customerpreview1/public_html/includes/classes/action_recorder.php) is not within the allowed path(s): (/home/ecommerva/:/home/ecommerva:/tmp/:/tmp:/usr/local/lib/php/) in /home/ecommerva/domains/ecommercevalue.com/public_html/customerpreview1/admin/includes/classes/action_recorder.php on line 13

 

etc etc...

 

The solution for this open_basedir restriction problem is to include the code from .../catalog/includes/classes/action_recorder.php in the ADMN file located at .../catalog/admin/includes/classes/action_recorder.php.

 

just replace this line in .../catalog/admin/includes/classes/action_recorder.php:

 

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

 

with this code from .../catalog/includes/classes/action_recorder.php

 

class actionRecorder {

var $_module;

var $_user_id;

var $_user_name;

and so on to the end of the class

 

Richard

Archived

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

×
×
  • Create New...