Skip to main content
Topic: Error when removing all the members' options and use the defaults (Read 6100 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Error when removing all the members' options and use the defaults

Hi, I just converted my forum to Elk and when I tried to remove all member option there is an error:

Database error, given array of string values is empty (old_settings)

screenshot attached.

Re: Error when removing all the members' options and use the defaults

Reply #1

oh, I think that one is probably due to the import... I'll try to reproduce. Thanks again for reporting.
Thorsten "TE" Eurich
------------------------

Re: Error when removing all the members' options and use the defaults

Reply #2

Might be a missing parameter in one of those subs files, can you please check your error log and see, if there's a related log entry?
Thorsten "TE" Eurich
------------------------

Re: Error when removing all the members' options and use the defaults

Reply #3

It's a wrong default set for the last parameter of the removeThemeOptions function.

Fixed here:
https://github.com/emanuele45/Dialogo/commit/9a5c2d62466220bc4f8a71f0210e70e45265d5e4

If you want to fix it locally, you can open /sources/subs/Themes.subs.php anche change:
Code: [Select]
function removeThemeOptions($theme, $membergroups, $old_settings = array())
to
Code: [Select]
function removeThemeOptions($theme, $membergroups, $old_settings = '')

It seems my fault that one too.

 emanuele is working hard to get another award! :P
Bugs creator.
Features destroyer.
Template killer.