You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Noticed this in the plugin settings table. Basically there is an array stored but we expect a string or integer. Not sure how this happens as I think it does set only a string in the application. Maybe some race condition?
Otherwise could do transactions I suppose but maybe not every DB supports it.
We could also execute all inserts at once (bulk insert) but this wouldn't fully avoid the issue as basically there is still a gap between delete an insert.
Most of the plugin settings usually would not have concurrency issues but this tour plugin settings is a bit different. So we could potentially avoid most of the issues by making sure we convert any array to a string for these keys.
There might be also more options using other locks that we have etc. Not sure which one is best. Fixing the plugin settings class be certainly best.
mattab
changed the title
WARNING: ccore/Settings/Storage/Storage.php(86): Notice - Array to string conversion
WARNING: core/Settings/Storage/Storage.php(86): Notice - Array to string conversion
Jan 16, 2020
Noticed this in the plugin settings table. Basically there is an array stored but we expect a string or integer. Not sure how this happens as I think it does set only a string in the application. Maybe some race condition?
This breaks the archiving for us.
Looking only quickly at the code I don't really understand how this could happen: https://github.com/matomo-org/matomo/blob/3.13.0/plugins/Tour/Engagement/Challenge.php#L142-L148
The text was updated successfully, but these errors were encountered: