Hi I try to update the Default base URL (from http to https) in System settings > URL and Path settings. After clicking the save button I get the green success message. But the settings is not saved and now is the field empty?!
Have also tried to update other path settings (like Themes directory). Always get the green message, but the value is not changed and reverts back to the old one.
I have looked at the database tables, but can not find the one that saves these settings?
Any tips on how to solve this?
EE version 5.1.1
/Magnus
I’m experiencing this same issue. My config.php did not include a config setting for base_url. I added one but the field is still empty in the CP.
EE version 5.2.4
Editing to add: As a temp fix for the frontend links to work, I edited the Website root directory field so it didn’t use {base_url} and instead included the website url. Once I saved the settings, the field for base_url was no longer empty and showed the correct URL.
I’ve just been experiencing this same issue, with an EE 5.4.2 site - and stumbled across this post.
Having tried a few things, I concluded that there were so many legacy bits and bobs in the config.php file (from previous versions, where I have upgraded EE so much over the years), that things are quite behaving as they should, when trying to set the URL Settings in the Control Panel.
So I found a more recent 5.4.2 site and copied the config.php file contents (which seems to be so much lighter, by the way). Then I just inserted the correct values for the site I’m working on and it seems to have fixed the problem.
I appreciate this might not be “correct and proper” way to do things, but it worked. 😊
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$config['cookie_prefix'] = '';
$config['require_cookie_consent'] = 'n';
$config['force_redirect'] = 'n';
$config['debug'] = '1';
$config['enable_devlog_alerts'] = 'n';
$config['cache_driver'] = 'file';
$config['index_page'] = '';
$config['is_system_on'] = 'y';
$config['multiple_sites_enabled'] = 'n';
$config['show_ee_news'] = 'n';
// ExpressionEngine Config Items
// Find more configs and overrides at
// https://docs.expressionengine.com/latest/general/system_configuration_overrides.html
$config['app_version'] = '5.4.2';
$config['encryption_key'] = 'VALUE IN HERE';
$config['session_crypt_key'] = 'VALUE IN HERE';
$config['database'] = array(
'expressionengine' => array(
'hostname' => 'localhost',
'database' => 'VALUE IN HERE',
'username' => 'VALUE IN HERE',
'password' => 'VALUE IN HERE',
'dbprefix' => 'exp_',
'char_set' => 'utf8mb4',
'dbcollat' => 'utf8mb4_unicode_ci',
'port' => ''
),
);
$config['share_analytics'] = 'n';
// EOF
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.