Welcome Guest, Not a member yet? Register   Sign In
4.4.1 to 4.4.8 base_url php spark closes..
#1

(This post was last modified: 05-06-2024, 11:32 AM by xsPurX.)

Hi,
I'm working on updating to 4.4.8 and my base url is defined like below.
Code:
public string $baseURL = BASE_URL;

in config/Constants.php I have

Code:
$base_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']) . (substr(dirname($_SERVER['SCRIPT_NAME']), -1) == '/' ? '' : '/');

defined('BASE_URL') || define('BASE_URL', $base_url);

when I run php spark on 4.4.1 it works fine, but on 4.4.8 it just exits out, and doesn't run the localhost server.

if i replace the $baseURL with http://localhost:8080/ it works, but I need the dynamic url. So why is 4.4.8 exiting out when 4.4.1 doesn't? I don't get any error, it just goes back the typing commands in command prompt, and doesn't run the local server.

Any help would be appreicated.
Reply


Messages In This Thread
4.4.1 to 4.4.8 base_url php spark closes.. - by xsPurX - 05-06-2024, 11:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB