Post by VTA NS » Sat Sep 21, 2024 2:07 pm

Since (a few weeks ago) we migrated to a new server, admin page will not load:

Code: Select all

<?php
// Version
define('VERSION', '3.0.3.8');

// Configuration
if (is_file('config.php')) {
	require_once('config.php');
}

// Install
if (!defined('DIR_APPLICATION')) {
	header('Location: ../install/index.php');
	exit;
}

// Startup
require_once(DIR_SYSTEM . 'startup.php');

start('admin');
Using Opencart 3.0.3.8 over one year, first time trouble. What is the possible cause and solutions?
Last edited by VTA NS on Sun Sep 22, 2024 2:13 am, edited 1 time in total.

Newbie

Posts

Joined
Tue Mar 22, 2022 9:59 pm

Post by by mona » Sat Sep 21, 2024 5:10 pm

VTA NS wrote:
Sat Sep 21, 2024 2:07 pm
/ Configuration
if (is_file('config.php')) {
require_once('config.php');
}
Did you update both root and admin config.php files to update those after the move?

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by wkt_1 » Sat Sep 21, 2024 7:18 pm

It seems that the issue may have been triggered by the recent server migration. A few possible causes and solutions to consider:

File Path Issues: During migration, the paths defined in config.php and admin/config.php might not align with the new server environment. Double-check both configuration files to ensure all paths (e.g., DIR_APPLICATION, DIR_SYSTEM, etc.) are correct.

Permissions: Verify that the file and folder permissions are set properly on the new server. Incorrect permissions could prevent OpenCart from loading the necessary files.

Missing Files: Ensure that no files were lost or corrupted during the migration process, especially within the /system/ and /admin/ directories.

PHP Version: Check if the new server’s PHP version is compatible with OpenCart 3.0.3.8. Incompatible PHP versions could cause issues loading pages.

Error Logs: Review the server and OpenCart error logs for any specific error messages that can help pinpoint the problem.

If none of the above resolves the issue, you might consider restoring the original configuration or contacting your hosting provider for further assistance.

Newbie

Posts

Joined
Mon Aug 19, 2024 7:42 pm

Post by VTA NS » Sun Sep 22, 2024 2:12 am

by mona wrote:
Sat Sep 21, 2024 5:10 pm
VTA NS wrote:
Sat Sep 21, 2024 2:07 pm
/ Configuration
if (is_file('config.php')) {
require_once('config.php');
}
Did you update both root and admin config.php files to update those after the move?
Thank you both very much, comparing and correcting both config.php helped to solve the problem.

Newbie

Posts

Joined
Tue Mar 22, 2022 9:59 pm
Who is online

Users browsing this forum: No registered users and 2 guests