MyBB Community Forums
[Pushed] the following warning occured - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Development (https://community.mybb.com/forum-161.html)
+--- Forum: MyBB 1.8 Development (https://community.mybb.com/forum-165.html)
+---- Forum: 1.8 Bugs and Issues (https://community.mybb.com/forum-157.html)
+----- Forum: Pushed (https://community.mybb.com/forum-183.html)
+----- Thread: [Pushed] the following warning occured (/thread-176562.html)



the following warning occured - Skippero0 - 2015-08-28

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


RE: the following warning occured - Destroy666 - 2015-09-11

This might be a bug with $theme['disporder'] not being an array somehow: https://github.com/mybb/mybb/blob/b82aaecee4d6c533a4ec109b6cf7bca5d86e4e10/global.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.


RE: the following warning occured - Jones H - 2015-09-21

So can you confirm this issue Destroy? If so please push this.


RE: the following warning occured - Destroy666 - 2016-01-01

(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


RE: the following warning occured - Eldenroot - 2016-12-23

IT WAS FIXED (in MyBB 1.8.7)