Post by TheLegendP » Mon Dec 07, 2020 3:17 am

Hi, hoping somebody can help with a problem (I have caused).
I accidentally uploaded the config.php file from a different website, and unfortunately I have never made a backup (Dumb I know!).
I changed the http and DB to the correct details, but I get white page of death and the following error log.

OC 3.0.3.2

PHP Warning: require_once(/home/domains/vol2/353/2774353/user/htdocs/system/startup.php): failed to open stream: Permission denied in /home/domains/vol3/649/2791649/user/htdocs/index.php on line 17
PHP Fatal error: require_once(): Failed opening required '/home/domains/vol2/353/2774353/user/htdocs/system/startup.php' (include_path='.:/usr/share/pear') in /home/domains/vol3/649/2791649/user/htdocs/index.php on line 17


Line 17:
require_once(DIR_SYSTEM . 'startup.php');


Any help will be appreciated :)

Newbie

Posts

Joined
Thu Jul 02, 2015 11:00 pm

Post by EvolveWebHosting » Mon Dec 07, 2020 3:28 am

TheLegendP wrote:
Mon Dec 07, 2020 3:17 am
Hi, hoping somebody can help with a problem (I have caused).
I accidentally uploaded the config.php file from a different website, and unfortunately I have never made a backup (Dumb I know!).
I changed the http and DB to the correct details, but I get white page of death and the following error log.

OC 3.0.3.2

PHP Warning: require_once(/home/domains/vol2/353/2774353/user/htdocs/system/startup.php): failed to open stream: Permission denied in /home/domains/vol3/649/2791649/user/htdocs/index.php on line 17
PHP Fatal error: require_once(): Failed opening required '/home/domains/vol2/353/2774353/user/htdocs/system/startup.php' (include_path='.:/usr/share/pear') in /home/domains/vol3/649/2791649/user/htdocs/index.php on line 17


Line 17:
require_once(DIR_SYSTEM . 'startup.php');


Any help will be appreciated :)
The index.php file does not contain database and directory details so it is the config.php file you are having issues with. Look at the path for the other line items in the DIR section and copy until the very last bit which is system/startup.php in your file.

There is no line item included for /system/startup

Since I can't see the rest of your file, I am guessing this is what you need to replace it with and check both config.php files:
define('DIR_SYSTEM', '/home/domains/vol3/649/2791649/user/htdocs/system/');

Opencart Hosting Plans, Domain Registration, Microsoft and Google Email and More
Visit our website for great deals and most importantly, fast and friendly support - www.evolvewebhost.com


User avatar
Active Member

Posts

Joined
Fri Mar 27, 2015 11:13 pm
Location - Denver, Colorado, USA

Post by TheLegendP » Mon Dec 07, 2020 3:42 am

I changed the config.php file, but the error log related to index.php

What does the vol2/353/2774353 refer to? Can I find the correct volx/xxx/xxxxxx in a different file as it may be this that is incorrect as I simply copied it from a different backup.

define('DIR_SYSTEM', '/home/domains/vol2/353/2774353/user/htdocs/system/');

Newbie

Posts

Joined
Thu Jul 02, 2015 11:00 pm

Post by sw!tch » Mon Dec 07, 2020 4:02 am

TheLegendP wrote:
Mon Dec 07, 2020 3:42 am
I changed the config.php file, but the error log related to index.php

What does the vol2/353/2774353 refer to? Can I find the correct volx/xxx/xxxxxx in a different file as it may be this that is incorrect as I simply copied it from a different backup.

define('DIR_SYSTEM', '/home/domains/vol2/353/2774353/user/htdocs/system/');
Basically your path is wrong in your config.

You have defined:

Code: Select all

/home/domains/vol2/353/2774353/user/htdocs/
Yet PHP is revealing your true path in the error.

Code: Select all

/home/domains/vol3/649/2791649/user/htdocs/
So update config.php and admin/config.php have the correct path. ^^

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by TheLegendP » Mon Dec 07, 2020 4:16 am

Thank you so much for your patience and explanation, I'm now back up and running ;D

Newbie

Posts

Joined
Thu Jul 02, 2015 11:00 pm
Who is online

Users browsing this forum: No registered users and 391 guests