Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php 8.2 cache rebuild errors #4731

Open
Cx-Developments opened this issue Jun 18, 2023 · 0 comments
Open

php 8.2 cache rebuild errors #4731

Cx-Developments opened this issue Jun 18, 2023 · 0 comments

Comments

@Cx-Developments
Copy link

I believe the root cause is line 640 in class_datacache.php located in the INC folder

$usergroups = array_keys($this->read("usergroups", true)); // not returning an array key

Error is as such:

PHP Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, bool given in /home/[Hidden User]/[Hidden Directory]/inc/class_datacache.php:640 Stack trace: #0 /home/[Hidden User]/[Hidden Directory]/inc/class_datacache.php(640): array_keys(false) #1 /home/[Hidden User]/[Hidden Directory]/inc/class_datacache.php(625): datacache->build_forum_permissions() #2 /home/[Hidden User]/[Hidden Directory]/admin/inc/functions.php(338): datacache->update_forumpermissions() #3 /home/[Hidden User]/[Hidden Directory]/admin/modules/forum/management.php(1532): save_quick_perms(60) #4 /home/[Hidden User]/[Hidden Directory]/admin/index.php(833): require('/home/dh_u7aey5...') #5 {main} thrown in /home/[Hidden User]/[Hidden Directory]/inc/class_datacache.php on line 640 PHP Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, bool given in /home/[Hidden User]/[Hidden Directory]/inc/class_datacache.php:640 Stack trace: #0 /home/[Hidden User]/[Hidden Directory]/inc/class_datacache.php(640): array_keys(false) #1 /home/[Hidden User]/[Hidden Directory]/inc/class_datacache.php(625): datacache->build_forum_permissions() #2 /home/[Hidden User]/[Hidden Directory]/admin/modules/forum/management.php(2086): datacache->update_forumpermissions() #3 /home/[Hidden User]/[Hidden Directory]/admin/index.php(833): require('[Hidden Directory]...') #4 {main} thrown in /home/[Hidden User]/[Hidden Directory]/inc/class_datacache.php on line 640

Using php 8.2 a resolution to this would be good because I am unable to modify my threads or add new ones

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant