Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cant get to Admin panel!


Guest

Recommended Posts

Posted

Had my installation of 2.3.1 moved from linux server to windows server. The store runs fine, but I cant get into my admin panel. I get this text when trying to log in:

 

Warning:

require(/home/bgood/public_html/catalog/includes/classes/action_recorder.php)

[function.require]: failed to open stream: No such file or directory in

D:\InetPub\vhosts\herstone.com\httpdocs\catalog\admin\includes\classes\action_recorder.php

on line 13

 

Fatal error: require() [function.require]: Failed opening required

'/home/bgood/public_html/catalog/includes/classes/action_recorder.php'

(include_path='.;./includes;C:/Program Files

(x86)/Parallels/Plesk/Additional/PleskPHP5/Pear') in

D:\InetPub\vhosts\herstone.com\httpdocs\catalog\admin\includes\classes\action_recorder.php

on line 13

 

 

I'm assuming this is happening because the path to the action_recorder.php has changed

 

Can anyone tell me what I need to change here, and where I can change it? I can get into my databases and all my files via my cpanel at host...its just the admin log in I can reach.

Posted

I think you have to check server path in configure file.

 

if you dont know what is the actual path then echo $_SERVER['DOCUMENT_ROOT']; and see what path is displayed.

 

or

 

some file could not copied from your old server to new server.

 

check that.

Please take backup of your files before do changes suggested by me

Posted

I think you have to check server path in configure file.

 

if you dont know what is the actual path then echo $_SERVER['DOCUMENT_ROOT']; and see what path is displayed.

 

or

 

some file could not copied from your old server to new server.

 

check that.

 

 

You mean in configure.php?

Posted

and i do not know how to do this-----

 

if you dont know what is the actual path then echo $_SERVER['DOCUMENT_ROOT']; and see what path is displayed.

Posted

ok

 

simply write echo $_SERVER['DOCUMENT_ROOT'];

in configure.php file.

it will display your server path (in browser) or you can say your catalog path where it is.

 

and check the path in cofigure.php file.

 

define('DIR_FS_CATALOG', 'your server path'); // this line

 

path displayed in browser and your DIR_FS_CATALOG are same or not.

 

if not then replace your old path with this one which is displayed in browser (by $_SERVER['DOCUMENT_ROOT'];)

 

note: please remove $_SERVER as soon as possible because its not good habit to see the path in browser other also can see the path when your site live... so please remove that after you done

Please take backup of your files before do changes suggested by me

Posted

This text exactly?

 

echo $_SERVER['DOCUMENT_ROOT'];

 

anywhere in the file?, and then just click the file and it will show me, or do i need to type ...../configure.php in my browser?

Posted

I see a configuration.php inside the admin folder....is this the correct file?

admin/configuration.php

Posted

You have two config files. First is /catalog/includes/configure.php. Second is /catalog/admin/includes/configure.php. Both will need the correct path info. ;)

 

Peace,

Chris

Posted

Ok, I replaced the path in both configure files (one of them had like 4 instances in it)

Now I try to go to admin login page and receive this response:

 

Warning: require(D:\Inetpub\vhost\herstone.com\httpdocs/catalog/includes/classes/action_recorder.php) [function.require]: failed to open stream: No such file or directory in D:\InetPub\vhosts\herstone.com\httpdocs\catalog\admin\includes\classes\action_recorder.php on line 13

 

Warning: require(D:\Inetpub\vhost\herstone.com\httpdocs/catalog/includes/classes/action_recorder.php) [function.require]: failed to open stream: No such file or directory in D:\InetPub\vhosts\herstone.com\httpdocs\catalog\admin\includes\classes\action_recorder.php on line 13

 

Fatal error: require() [function.require]: Failed opening required 'D:\Inetpub\vhost\herstone.com\httpdocs/catalog/includes/classes/action_recorder.php' (include_path='.;./includes;C:/Program Files (x86)/Parallels/Plesk/Additional/PleskPHP5/Pear') in D:\InetPub\vhosts\herstone.com\httpdocs\catalog\admin\includes\classes\action_recorder.php on line 13

 

 

Am I missing something here?

Posted

This is my current admin/includes/configure.php file:

 

<?php

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

define('HTTP_CATALOG_SERVER', 'http://herstone.com');

define('HTTPS_CATALOG_SERVER', 'http://herstone.com');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', 'D:\Inetpub\vhost\path_to/catalog/');

define('DIR_WS_ADMIN', '/catalog/admin/');

define('DIR_FS_ADMIN', 'D:\Inetpub\vhost\path_to/catalog/admin/');

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

define('DIR_FS_CATALOG', 'D:\Inetpub\vhost\path_to/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', 'localhost');

define('DB_SERVER_USERNAME', '**************');

define('DB_SERVER_PASSWORD', '**************');

define('DB_DATABASE', '************');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

Posted

and this is my current catalog/includes/configure.php file:

 

<?php

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

define('HTTPS_SERVER', 'http://herstone.com');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', '');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/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', 'D:\Inetpub\vhost\path_to/catalog/');

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', '********');

define('DB_SERVER_PASSWORD', '********');

define('DB_DATABASE', '********');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

 

?>

Posted

$_SERVER['DOCUMENT_ROOT']

 

just type this code in top of your configure.php file

 

then run your site in browser as usual

 

like index.php or any other page it will display path on the top of the page

 

so simple...

Please take backup of your files before do changes suggested by me

Posted

$_SERVER['DOCUMENT_ROOT']

 

just type this code in top of your configure.php file

 

then run your site in browser as usual

 

like index.php or any other page it will display path on the top of the page

 

so simple...

Posted

I did, and it gave me the following:

 

D:\Inetpub\vhost\herstone.com\httpdocs

 

As you can see above, I plugged that into both configure.php files. But I am now getting that new warning and do not know why. I am showing you both configure.php files so someone can tell me if I did something wrong.

Or am I now missing something else?

Posted

and this is my current catalog/includes/configure.php file:

 

<?php

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

define('HTTPS_SERVER', 'http://herstone.com');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', '');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/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', 'D:\Inetpub\vhost\path_to/catalog/');

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', '******');

define('DB_SERVER_PASSWORD', '*****');

define('DB_DATABASE', '******');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

 

?>

 

 

write this......... echo $_SERVER['DOCUMENT_ROOT'];..................... in top of the page and run as you run your site normally...

 

then compare path with

define('DIR_FS_CATALOG', 'D:\Inetpub\vhost\path_to/catalog/');

your old path wrote in DIR_FS_CATALOG

 

if they are different with each other then try new path put new path instead of old one

 

 

NOTE : I PERSONALLY GIVE ADVISE TO YOU.... NEVER...NEVER.....GIVE YOUR CONFIGURE FILE DETAIL TO ANYONE...... LIKE YOU HAVE DONE NOW....

PLEASE REMOVE THIS POST AFTER YOU GOT IT. IT WILL BE HARMFULL

Please take backup of your files before do changes suggested by me

Posted

write this......... echo $_SERVER['DOCUMENT_ROOT'];..................... in top of the page and run as you run your site normally...

 

then compare path with

define('DIR_FS_CATALOG', 'D:\Inetpub\vhost\path_to/catalog/');

your old path wrote in DIR_FS_CATALOG

 

if they are different with each other then try new path put new path instead of old one

 

 

NOTE : I PERSONALLY GIVE ADVISE TO YOU.... NEVER...NEVER.....GIVE YOUR CONFIGURE FILE DETAIL TO ANYONE...... LIKE YOU HAVE DONE NOW....

PLEASE REMOVE THIS POST AFTER YOU GOT IT. IT WILL BE HARMFULL

 

 

I will try again now, and thank you for your advice!

Posted

Ok, I tried again and got this response:

 

D:\InetPub\vhosts\herstone.com\httpdocs

 

Everyplace I see /home/bgood/public_html/ in the two configure.php files

 

I replaced with new path as you see above......

 

I still get the same error. Is there something else I am missing? Some other file that needs edit? Sorry to be a bother, but I do not know these things very well.

Posted

This is what I see when I go to my admin log in page----

 

Warning: require(D:\Inetpub\vhost\herstone.com\httpdocs/catalog/includes/classes/action_recorder.php) [function.require]: failed to open stream: No such file or directory in D:\InetPub\vhosts\herstone.com\httpdocs\catalog\admin\includes\classes\action_recorder.php on line 13

 

Warning: require(D:\Inetpub\vhost\herstone.com\httpdocs/catalog/includes/classes/action_recorder.php) [function.require]: failed to open stream: No such file or directory in D:\InetPub\vhosts\herstone.com\httpdocs\catalog\admin\includes\classes\action_recorder.php on line 13

 

Fatal error: require() [function.require]: Failed opening required 'D:\Inetpub\vhost\herstone.com\httpdocs/catalog/includes/classes/action_recorder.php' (include_path='.;./includes;C:/Program Files (x86)/Parallels/Plesk/Additional/PleskPHP5/Pear') in D:\InetPub\vhosts\herstone.com\httpdocs\catalog\admin\includes\classes\action_recorder.php on line 13

Posted

You've got a mix of back and forward slashes in there. ;)

 

D:\Inetpub\vhost\herstone.com\httpdocs/catalog/includes/classes/action_recorder.php

 

See the difference? :D They should all be the same.

 

Peace,

Chris

Posted

Fixed the slashes and get this when i try to go to admin panel------

 

Warning: require(D:/Inetpub/vhost/herstone.com/httpdocs/catalog/includes/classes/action_recorder.php) [function.require]: failed to open stream: No such file or directory in D:\InetPub\vhosts\herstone.com\httpdocs\catalog\admin\includes\classes\action_recorder.php on line 13

 

Warning: require(D:/Inetpub/vhost/herstone.com/httpdocs/catalog/includes/classes/action_recorder.php) [function.require]: failed to open stream: No such file or directory in D:\InetPub\vhosts\herstone.com\httpdocs\catalog\admin\includes\classes\action_recorder.php on line 13

 

Fatal error: require() [function.require]: Failed opening required 'D:/Inetpub/vhost/herstone.com/httpdocs/catalog/includes/classes/action_recorder.php' (include_path='.;./includes;C:/Program Files (x86)/Parallels/Plesk/Additional/PleskPHP5/Pear') in D:\InetPub\vhosts\herstone.com\httpdocs\catalog\admin\includes\classes\action_recorder.php on line 13

 

 

what is "actions_recorder.php? --- does that have anything to do with this?

Posted

Nope...it still can't find the files. You've got backslashes in one and forward slashes in the other. Should all be the same. ;)

 

Warning: require(D:/Inetpub/vhost/herstone.com/httpdocs/catalog/includes/classes/action_recorder.php) [function.require]: failed to open stream: No such file or directory in D:\InetPub\vhosts\herstone.com\httpdocs\catalog\admin\includes\classes\action_recorder.php on line 13

 

Peace,

Chris

Posted

We're getting closer!

 

Now I get this:

 

Parse error: syntax error, unexpected T_STRING in D:\InetPub\vhosts\herstone.com\httpdocs\catalog\admin\includes\configure.php on line 8

 

ad here is my first few lines of code from that file-----

 

<?php

 

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

define('HTTP_CATALOG_SERVER', 'http://herstone.com');

define('HTTPS_CATALOG_SERVER', 'http://herstone.com');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', 'D:\Inetpub\vhost\herstone.com\httpdocs\catalog\');

define('DIR_WS_ADMIN', '/catalog/admin/');

define('DIR_FS_ADMIN', 'D:\Inetpub\vhost\herstone.com\httpdocs\catalog\admin\');

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

 

 

can you tell me whats not right?

Posted

You've still got forward slashes in these two lines:

 

define('DIR_WS_ADMIN', '/catalog/admin/');
define('DIR_WS_CATALOG', '/catalog/');

Posted

You've still got forward slashes in these two lines:

 

define('DIR_WS_ADMIN', '/catalog/admin/');
define('DIR_WS_CATALOG', '/catalog/');

 

Changed them, still get this error-

Parse error: syntax error, unexpected T_STRING in D:\InetPub\vhosts\herstone.com\httpdocs\catalog\admin\includes\configure.php on line 8

Posted

Ahh, I see now. According to the info you posted earlier, the store is not located in a /catalog/ subdirectory...remove catalog from all lines in the config.

 

define('DIR_WS_ADMIN', '/admin/');
define('DIR_WS_CATALOG', '/');

 

Like so.

 

Peace,

Chris

Archived

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

×
×
  • Create New...