Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: .LORD. on February 06, 2009, 07:13:25 PM

Title: [3090] Undefined index - variables settings after install MOD
Post by: .LORD. on February 06, 2009, 07:13:25 PM
Sorry if this has already been reported, but I think not because the RC1 has just been launched and it isn't fixed.

In SMF 2.X after install a MOD that add variables in the table settings, are generated entries in the log_error, as if these variables don't exist.

The reason is that the cache not has been updated. Once you clear the cache or the administrator goes to the settings, is updated.

Thank you, SMF 2.XX is very good, congratulations :)
Title: Re: Undefined index - variables settings after install MOD
Post by: aldo on February 06, 2009, 07:37:01 PM
What errors..? If its after installing a modification its probably a modification problem not a SMF problem, but if we had the error we might be able to tell you the problem.
Title: Re: Undefined index - variables settings after install MOD
Post by: metallica48423 on February 06, 2009, 08:04:39 PM
Aldo, I think he's saying that when mods are installed that place language strings in the language files, that the cache isn't cleared, thus resulting in undefined index errors until the cache rotates or until it is cleared manually
Title: Re: Undefined index - variables settings after install MOD
Post by: aldo on February 06, 2009, 08:08:57 PM
Oh, I guess that makes sense. I just thought otherwise because he said something about adding to table settings ;)
Title: Re: Undefined index - variables settings after install MOD
Post by: karlbenson on February 07, 2009, 05:10:59 AM
Installing a mod should automatically force a wipe of the cache dir.

I'll have a test of it later though
Title: Re: Undefined index - variables settings after install MOD
Post by: .LORD. on February 09, 2009, 12:02:27 AM
Excuse if I don't knew explained.

You can see from this example, with this package test.

Thanks.
Title: Re: Undefined index - variables settings after install MOD
Post by: karlbenson on February 09, 2009, 08:32:12 AM
Thx for the package.
Using it I was able to confirm the issue. SMF is only clearing language related cache files. When certain cache levels also cache the entire smf_settings table. So that needs clearing too

http://dev.simplemachines.org/mantis/view.php?id=3090
Title: Re: [3090] Undefined index - variables settings after install MOD
Post by: karlbenson on February 09, 2009, 02:32:36 PM
Update: The bug has been fixed in the svn. So it should be included in the next release (RC2?) when ever that is.

Thanks again for the report.
Title: Re: [3090] Undefined index - variables settings after install MOD
Post by: .LORD. on February 10, 2009, 11:49:17 AM
Your welcome, thank you too  :D