Good morning! After a long absence from the EE world, I’ve decided to download & install EE 6 on 2 of my websites. Key info is below, as well as the resulting errors.
Issue: When trying to save the settings under URL and Path Settings, regardless of whether they’re changed or not (I’ve tried both, on both sites), I’m met with the following errors:
Notice Trying to access array offset on value of type null ee/ExpressionEngine/Controller/Settings/Settings.php, line 209
Severity: E_NOTICE
Warning Invalid argument supplied for foreach() ee/ExpressionEngine/Controller/Settings/Settings.php, line 209
Severity: E_WARNING
Warning Cannot modify header information - headers already sent by (output started at ee/legacy/core/Exceptions.php:124) ee/legacy/core/Input.php, line 265
Severity: E_WARNING
Warning Cannot modify header information - headers already sent by (output started at ee/legacy/core/Exceptions.php:124) ee/legacy/libraries/Functions.php, line 500
Severity: E_WARNING
I’ve done 3 different fresh installs of EE (the most recent of which was just now), to include complete database deletions & new creations, on both sites. All installations were upgraded to the most current version. I’ve Googled all of these errors, only to be met with either a plethora of convoluted & outdated results, or unanswered/unresolved questions from others.
Additionally, with the most recent installs, I opted to NOT install the default theme on one, and TO install it on the other. The results are the same. With the most recent install, I’ve not bothered to implement .htaccess, nor have I yet modified the names of my system or admin folder/file.
PHP version: 7.4.9 MySQL version: 10.2.36
I’d really like to use and love EE again, and would greatly appreciate any help with this that you can provide. Thank you! 😊
Hi, Robin! Yes, you’re crystal clear in your understanding. 😊 No addons aside from the default install interface for them.
I had to speak with my hosting provider earlier for a different matter, but while on the phone with them, they gave everything (database structures, etc.) a once-over & couldn’t find any issues server-side that would be causing those errors. They also increased the PHP mem limit, even though it was a non-issue. I’ve also double-checked CHMOD settings, etc.
Also, let me add that this is the ONLY place where I’ve had the “Save Setting” throw errors at me. No other part of the settings section produces it. Thanks! 😊
> Notice Trying to access array offset on value of type null ee/ExpressionEngine/Controller/Settings/Settings.php, line 209
That file ends on line 208, which is why it’s so puzzling. I even pulled down a fresh copy to take a look. Hrm- maybe ftp in and look at system/ee/ExpressionEngine/Controller/Settings/Settings.php, line 209 and see what’s there.
But in the meantime, I’ve pinged the devs. Because…. that is weird! Plus it works fine for me in php 7.4 plus I don’t even think it should be using that file for the urls settings, but I didn’t track it all the way down.
I’ll update as soon as I hear back- I’m super curious what it might be!
Hi, Robin! I’ve taken a gander at that file, in 2 environments. The line that seems to be in question is this:
foreach ($setting[‘fields’] as $field_name => $field)
Enviro 1 - FTP view: The file is 208 lines long (with 208 being an empty line). Above code is on Line 193 here.
Enviro 2 - Opened in Dreamweaver: 226 lines long, the last of which is empty. In this view, that same code occurs on line 209.
Weird, indeed!
Thanks so much for looking into it! I, too, am now more intrigued. 😊
Update: After not receiving any feedback as to how to fix these issues, I have deleted ExpressionEngine completely from my server. I then re-downloaded it, which is the zip for 6.0.1. (Previously, I upgraded through the CP.) I have now done a complete reinstall of ExpressionEngine using the newly downloaded version. I am still receiving the exact same error messages as I first mentioned in my initial post. I have tried switching to all versions of php in my host CP, from 7.1 all the way to the current version, to no avail. Same errors, both here & in my other post asking for help with membership denial.
Listen. While I understand that this software is now free & it’s becoming more & more apparent that support is only given to those that actually pay for it, it should be understood that some of us that are “vanilla” EE users also expect some type of help without having to pay for a support plan - especially those of us that are not building professional websites, but just want to re-establish a personal presence using an old software “friend”. It’s frustrating to come here & ask for help with things, only to feel completely ignored & frankly, unappreciated as an EE user.
Is EE eventually going to be an abandoned project? I ask because that’s the impression I’m getting when I go through the forums looking for answers, and other people seeking help with their issues are met with the sound of crickets, too. shrug
Have you tried doing the same install with an entirely different hosting provider, just to test?
Personally speaking, I’m still considering EE6 to be an “early days” release (if you know what I mean) so I’m not expecting the world to be perfect just yet.
PS. If you’re after free help from other developers, then the EE Slack channel is probably your best bet. Seems like most people hang out there.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.