[Pushed] the following warning occured
#1
Sad 
when i upgraded to the newest mybb and copied files when it finished i get this message on the main page of my website

The following warnings occurred: Warning [2] Invalid argument supplied for foreach() - Line: 331 - File: global.php PHP 5.4.14 (Linux)

File
Line
Function/global.php
331
errorHandler->error
/index.php
18
require_once
Reply
#2
This might be a bug with $theme['disporder'] not being an array somehow: https://github.com/mybb/mybb/blob/b82aae...l.php#L331 Moving to bug reports for checking.

EDIT: it might happen if you update the order or delete all stylesheets in an older version of MyBB, where the checks weren't that strict. Not sure about other possible causes. We can simply add an is_array() check as a workaround.
Reply
#3
So can you confirm this issue Destroy? If so please push this.
Support PMs will be ignored!
Reply
#4
(2016-01-01, 02:30 PM)BBMercury Wrote: I just got this error too, found this thread in Google. How do I fix this?

I mentioned a code fix above. But you should rather update your theme's stylesheets order in ACP to a correct one.

Hi,

Thank you for your report. We have pushed this issue to our Github repository for further analysis where you can track our commits and progress with fixing this bug. Discussions regarding this bug may also take place there too.

Follow this link to visit the issue on Github: https://github.com/mybb/mybb/issues/2301

Thanks for contributing to MyBB!

Regards,
The MyBB Group
Reply
#5
IT WAS FIXED (in MyBB 1.8.7)
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)