MyBB Community Forums
Fatal Error adding or editing groups - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Fatal Error adding or editing groups (/thread-218754.html)



Fatal Error adding or editing groups - michvhf - 2018-07-18

Here's the error:

Fatal error: Call to undefined function array_column() in /.../admin/modules/user/groups.php on line 977

Actual path from root replaced by ...

I'm running 1.8.14 with PostgreSQL 8.1.4 on FreeBSD 8.1.  I'm trying to add a group for new registrations that will be moderated automatically on approval.  Once they're known good, move them to the Registered Users group where everyone else is.  I have new users appearing out of nowhere so I'm hoping this will be a work around.

When I try to add a group, I get the above error, but the group is created.  When I try to edit the group, I get the above error, but the changes are saved.  In case it's not clear, this happens when I save the changes.

Since it appears the changes are taking place, what is this error trying to tell me?  Is it safe to ignore?

Thanks!
Vince.


RE: Fatal Error adding or editing groups - laie_techie - 2018-07-18

What version of PHP are you using? array_column was adding in PHP5 and still exists in PHP7


RE: Fatal Error adding or editing groups - michvhf - 2018-07-18

5.2.5 As I recall I can't go any higher due to a pear plugin that I haven't been able to upgrade as yet.


RE: Fatal Error adding or editing groups - Devilshakerz - 2018-07-18

This issue has been fixed in MyBB 1.8.15: https://github.com/mybb/mybb/issues/2929

As of now the latest version is 1.8.17 - it's best to keep boards updated to avoid bugs and security issues.


RE: Fatal Error adding or editing groups - michvhf - 2018-07-19

The problem with updating is plugins that aren't written using the MyBB database routines and they use MySQL commands direct. I have to rewrite them each time I update.


RE: Fatal Error adding or editing groups - laie_techie - 2018-07-19

(2018-07-18, 04:37 PM)michvhf Wrote: 5.2.5  As I recall I can't go any higher due to a pear plugin that I haven't been able to upgrade as yet.


Good luck with that. Please see a list of currently supported versions. PHP 5.2 reached end of life over 7 years ago. You should at least upgrade to 5.2.17 (the last release of the 5.2 branch) which was released in January 2011.