I'm new to the forum here. I could really use y'alls experience. I am using ibrave cloud hosting to host my CE Phoenix version 1.0.8.18. I finished up the site and all was great, but my "server" was located in London and I'm in the US. So, I requested the location to be moved to the US. The team at ibrave quickly made it happen. Unfortunately, that broke the site. I found where the root folder containing the site files had changed. I'm pretty sure I found all the affected .php files and corrected them. I have checked the database (myphp sql) and all seems well there. You can navigate to the site but some items such as when clicking on the logo which takes you the index page gives you a [PHOENIX FATAL]. Any advice would be appreciated.
Server Information:
Server Host
Database Host sdb-i.hosting.stackcp.net (10.3.32.128)
Server OS Linux 3.10.0-1160.76.1.el7.x86_64
Database MySQL 10.4.20-MariaDB-log
Server Date 2022-09-08 21:25:23 -0500 CDT
Database Date 2022-09-09 03:25:23
Server Uptime 03:25:23 up 11 days, 8:14, 0 users, load average: 38.22, 27.11, 15.10
HTTP Server Apache
PHP Version 7.4.30 (Zend 3.4.0)
Server Location Change
-
- VIP Member
- Posts: 2025
- Joined: Mon Oct 07, 2019 4:39 am
- : Buy Me A Beverage
- Has thanked: 28 times
- Been thanked: 187 times
Re: Server Location Change
Possibly malformed configure.php files.
There are 2:
admin/includes/configure.php
this controls the admin side
includes/configure.php
this controls the shop side
Double check the constants there are correct.
Re: Server Location Change
Perhaps. Below is a copy of the file. Do you see anything that i'm missing?
Code: Select all
<?php
if (file_exists('includes/local/configure.php')) { // for developers
include 'includes/local/configure.php';
return;
}
// set the level of error reporting
error_reporting(22527);
// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
const HTTP_SERVER = 'https://jenspickles.com';
const COOKIE_OPTIONS = [
'lifetime' => 0,
'domain' => '',
'path' => '/',
'samesite' => 'Lax',
];
const DIR_WS_CATALOG = '/';
const DIR_FS_CATALOG = '/home/sites/18b/7/7afed0e9bc/public_html/Jens_Pickles/';
// set default timezone if none exists (PHP 5.3 throws an E_WARNING)
date_default_timezone_set('America/Chicago');
// If you are asked to provide configure.php details
// please remove the data below before sharing
// define our database connection
const DB_SERVER = 'sdb-u.hosting.stackcp.net';
const DB_SERVER_USERNAME = 'oscomphoenix-####';
const DB_SERVER_PASSWORD = '####';
const DB_DATABASE = 'oscomphoenix-####';
-
- VIP Member
- Posts: 2025
- Joined: Mon Oct 07, 2019 4:39 am
- : Buy Me A Beverage
- Has thanked: 28 times
- Been thanked: 187 times
Re: Server Location Change
Your comment here is the key, i.e. the server move broke it. That's why I guess a constant in configure.php needs changing. I guess it might be the value for const DIR_FS_CATALOG. You might be able to find out the correct value for that in your host control panel, otherwise contact your host.
Re: Server Location Change
That was what I thought also, but I confirmed that to be the correct location. Could it be something the root index file? I am not familiar PHP. I know html, or at least enough to make it work. But the index.php file seems a bit lite, see below. Any thoughts?
<?php
/*
$Id$
CE Phoenix, E-Commerce made Easy
https://phoenixcart.org
Copyright (c) 2021 Phoenix Cart
Released under the GNU General Public License
*/
require 'includes/application_top.php';
require language::map_to_translation('index.php');
require $Template->map(__FILE__, 'page');
require 'includes/application_bottom.php';
<?php
/*
$Id$
CE Phoenix, E-Commerce made Easy
https://phoenixcart.org
Copyright (c) 2021 Phoenix Cart
Released under the GNU General Public License
*/
require 'includes/application_top.php';
require language::map_to_translation('index.php');
require $Template->map(__FILE__, 'page');
require 'includes/application_bottom.php';
-
- Lead Developer
- Posts: 2656
- Joined: Tue Nov 05, 2019 6:02 pm
- Has thanked: 4 times
- Been thanked: 182 times
Re: Server Location Change
[PHOENIX FATAL] is a database error message. So either one or more of the DB_ entries is wrong or they didn't move the database when they moved the files. There may be a log entry somewhere with more information. Or you could turn on display_errors (and then turn it off when you get things working).
Your index.php looks as expected.
Your index.php looks as expected.
Re: Server Location Change
Thank you so much Heatherbell and Ecartz. I thank I finially got it. It was the "const DB_SERVER= 'sdb-u.hosting.stackcp.net';" The U should have been an I . That was quit the headache. Think you both for steering me in the right direction!