We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

System settings are not saved

How Do I?

Magnusvb's avatar
Magnusvb
57 posts
5 years ago
Magnusvb's avatar Magnusvb

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

       
meatpaste's avatar
meatpaste
16 posts
5 years ago
meatpaste's avatar meatpaste

Are those setting specified in your /system/user/config/config.php file? values in there will always override what is stored in the database settings.

https://docs.expressionengine.com/latest/general/system-configuration-overrides.html

       
Magnusvb's avatar
Magnusvb
57 posts
5 years ago
Magnusvb's avatar Magnusvb

Thanks! It was a while since I worked with EE so I had totally forgot about this. The problem is now fixed.

       
melissajc's avatar
melissajc
86 posts
5 years ago
melissajc's avatar melissajc

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.

       
Magnusvb's avatar
Magnusvb
57 posts
5 years ago
Magnusvb's avatar Magnusvb

To the config.php I added settings for:

$config[‘site_url’] $config[‘theme_folder_url’] $config[‘theme_folder_path’]

This solved the empty base_url field and also added an base_path field (I’m pretty sure it was not present before?)

       
melissajc's avatar
melissajc
86 posts
5 years ago
melissajc's avatar melissajc

Thanks, Magnus.

I would think that if I didn’t have any of those config settings listed in config.php (which I didn’t) that I would be able to fill the fields in and save them within the EE admin.

? 1 👍 1
       
IC360 (Oliver Cannell)'s avatar
IC360 (Oliver Cannell)
241 posts
4 years ago
IC360 (Oliver Cannell)'s avatar IC360 (Oliver Cannell)

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
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.