Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

SS 3.0.5 No login possible, Error: Warning: Invalid argument supplied for foreach() in (...) /framework/core/manifest/ConfigManifest.php on line 102


Go to End


4 Posts   742 Views

Avatar
sebbiboss

Community Member, 2 Posts

26 June 2016 at 1:52am

Hello everybody,

my homepage with SilverStripe was working like a charm for years until now. The startpage shows above failure message and i cannot login on mysite/admin.
Do you have any suggestions how to solve this? Btw i am no web developer, just managed to install this CMS using the manual.

Avatar
martimiz

Forum Moderator, 1391 Posts

26 June 2016 at 10:35pm

I've seen this happen if there is an invalid yaml file somewhere: for instance one that has no config items, but does have some content, maybe a name.

SilverStripe doesn't take empty yml files into account, but if there is some content present it tries to read it as an array to add it to the manifest (the config cache). So you get that empty array warning.

Or, if this is an older version of SilverStripe (2.4) that doesn't use yml, or it isn't a yml issue, then maybe your provider recently upgraded you PHP version?

Avatar
sebbiboss

Community Member, 2 Posts

27 June 2016 at 12:33am

Edited: 27/06/2016 12:34am

Thanks for your quick reply. I am using SS 3.0.5 but yes, my provider updated my page from PHP 5.4 to PHP 5.6. could this be the reason for my error? I did not change any file during the last six month, only using the SS interface for new poste. While logged into my provider control panel, i can switch to PHP 5.4 again while paying an extra fee or to PHP 7, but that version is not supported by SS yet. Would it help to update my SS version? It would be great to login to my site soon. ;-)

Avatar
martimiz

Forum Moderator, 1391 Posts

27 June 2016 at 1:56am

Unfortunate that they would charge you to revert to an older version of PHP, because that would absolutely be the first thing I would try. I seem to recall php 5.6 being somewhat more strict regarding arrays...

I haven't seen this error in clean installs of SilverStripe. Are you using any other modules or themes or did you use any custom code? Or is it just a basic SilverStripe install?