Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Re-Installed on New ISP...Now I can't access my Admin section?


Eaviator

Recommended Posts

Greetings all,

 

I have a current and up to date osCommerce site that I had to switch ISP's for because our first ISP kept on dropping in and out on the web, not the best thing for an online business.

 

Everything went smoothly, products seem to be showing up where they're supposed to and all that fun stuff (I'm testing the site only at this point, it's not yet live)....but, there is a glitch in the works somewhere. When I try to access my admin/login.php I get this error message:

 

Fatal error: require() [function.require]: Failed opening required '/home/vhosts/mysite.com/httpdocs/includes/classes/action_recorder.php' (include_path='.:/usr/share/pear:/local/PEAR/') in /home/vhosts/mysite.com/httpdocs/admin/includes/classes/action_recorder.php on line 13

 

I'm going goofy trying to figure out where the "httpdocs" in coming into play here as the new ISP root goes to mysite.com/public_html/whatever_file. On the old site all the catalog folders/files were loaded into "httpdocs" instead of "public_html" as with the new ISP. I've changed the includes/config.php file and the admin/includes/config.php file to reflect the correct url linkage but it's still not working properly. Also, some of the image files aren't showing either which may help find the culprit file here. Which file have I forgotten to change...Can anyone help...please

 

Cheers,

DougB

Link to comment
Share on other sites

@@Eaviator

 

Did you switch from a Windows environment to a Linux environment ? You need to change your .htaccess file if the incorrect path is present and also ensure your /admin/includes/configure.php file is also correct.

 

 

 

Chris

Link to comment
Share on other sites

Hey Chris,

 

Nope no change from Windows to Linux. No .htaccess file. Here's the admin/includes/config.php section that's online giving me the error...(You'll also notice I used the cheat you gave me the last time I had issues with an ISP that didn't cover it's security as well as it could...hmmm).

 

 

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

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

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

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/home/vhosts/mysite.com/');

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

define('DIR_FS_ADMIN', '/home/vhosts/mysite.com/admin/');

define('DIR_WS_CATALOG', '/');

define('DIR_FS_CATALOG', realpath( dirname( __FILE__ ) . '/../../' ) . '/' );

 

Any thoughts at all about what's going wrong here, sure appreciate the help...

 

DougB

Link to comment
Share on other sites

@@Eaviator

 

Did you check your /admin/.htaccess file ???

 

 

 

 

Chris

 

ps. This /httpdocs/ usually indicates a WINDOWS server and /public_html/ usually indicates a Linux server.

Link to comment
Share on other sites

@@Eaviator - To be clear, an ISP is what you use to get access to the Internet. I'm assuming you mean that you changed hosts. The httpdocs directory is common with hosts that us Plesk as the control panel where as public_html is used by CPanel. So if you changed hosts and the control panels changed, the problem has to be in the confiugre files. It might be that you have one in the local directory that is overriding the main one. If so, you should delete it. If not, create a php file with the following contents, upload it to the server and then visit it in a browser. It will display the correct path you should be using

<?php
$p = getcwd();
echo $p;

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Hey Guys,

 

Sorry for the confusion in asking my questions using correct terminology and my delay in responding to you both.

 

Chris in reply to your comments, there is no .htaccess file in the admin folder. With respect to the hosting company's, my new host is using linux with cPanel for administration of the account. The old host used Plesk on their server but the account was supposed to be hosted on a linux backbone as well so I'm lost concerning the httpdocs reference being a Windows server that was used.

 

Jack I used your .php check file from above (somehow the script lost the ?> on the end but I caught it) but it did give me the correct path to use as suggested. When the site was tested it gave me the result of /home/mysite.com/public_html. First I insured I had no extra config.php files locally, then changed the admin/includes/configure.php and includes/config.php to reflect the correct path. Currently the admin/includes/config.php file is like this:

 

define('HTTP_SERVER', '
');

define('HTTP_CATALOG_SERVER', '
');

define('HTTPS_CATALOG_SERVER', '
');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/home/mysite.com/public_html/');

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

define('DIR_FS_ADMIN', '/home/mysite.com/public_html/admin/');

define('DIR_WS_CATALOG', '/');

define('DIR_FS_CATALOG', realpath( dirname( __FILE__ ) . '/../../' ) . '/' );

 

I'm still getting the same error message with the site though so I'm assuming the problem has to be in here somewhere. This is what I'm getting when I try to login to the admin panel:

 

 

Fatal error
: require() [
]: Failed opening required '/home/vhosts/mysite.com/httpdocs/includes/classes/action_recorder.php' (include_path='.:/usr/share/pear:/local/PEAR/') in
/home/vhosts/mysite.com/httpdocs/admin/includes/classes/action_recorder.php
on line
13

 

Does the fact that I'm using a host supplied temporary web address (used for checking the site prior to propagation/switching the DNS over to go live) have anything to do with this perhaps?

 

I'm really losing it here guys so anything will help...thanks...I'll be back first thing in the morning tomorrow at about 8:00 AM PST if either of you is available to go further with this giving me time to test it live as we try. I still can't figure out where the /vhosts/ nor httpdocs/ are coming into play in the error code as neither one is in any of the code throughout the entire site now...trust me I spent the entire weekend looking for any excess code...sigh. MY eye's are crossed, my brain's fried and my customer's PO'd...need I say more...

 

DougB

Link to comment
Share on other sites

The error is occurring because home/vhosts/mysite.com/httpdocs is an invalid path. That has to be coming from the files so you should download all of admin to your computer and search for it. I know you said you looked through the code but that can be different than searching it. If that fails, you can put a statement in the configure file and/or application_top file to check the path

echo 'path '.DIR_FS_DOCUMENT_ROOT.'<br>';

If you place it in the application_top file right before and after the configure file is loaded, it should display no path and then the correct path. That should indicate where the problem is at.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Jack,

 

In respect to what you've said about searching as opposed to looking through all the code, what do you suggest here. Using the search function in my .php code editor (Dev-PHP 2.6.0) or what? All help here is much appreciated. I've also tried using the supplied code from your reply above in my admin/application_top.php file as suggested and sent you a PM with the sites response afterwards. Thanks again!

 

DougB

Link to comment
Share on other sites

Assuming your code is on a server, I suggested downloading it to your computer and using your computers search function. Unless you have access to the actual server, that usually gives better results, in my experience.

 

For the code I posted, you entered it correctly. You need to upload the file to the server and visit one of the pages. That file is loaded on every page load so you should see the message as soon as you visit the admin.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...