Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Need Help to MYBB Plugin Avatar Gallery

#1
Exclamation 
HY 

i`m Need Help to MYBB Plugin Avatar Gallery

Hey guys, sorry but once again it's not going as it should

After the installation and after creating a new gallery (e.g. Test1), when I click on it in the ACP, the error occurs:

Warning [2] count (): Parameter must be an array or an object that implements Countable - Line: 599 - File: admin / modules / user / avatar_gallery.php PHP 7.4.14 (Linux)
File line function
/admin/modules/user/avatar_gallery.php 599 errorHandler-> error
/admin/index.php 824 require

LINE 599 /admin/modules/user/avatar_gallery.php = if (count ($ avatar) == 0)



I tried to upload an AVATAR anyway, after that it no longer shows the error in the ACP in the called gallery, the uploaded AVATAR is NOT shown in the ACP but in the user CP when you call this gallery it is available.

see my screen,
#############
   
   
   
   
#############
Then I have in the /admin/modules/user/avatar_gallery.php

Line 599

if (count ($ avatar) == 0)

changed on

if (is_array ($ avatar) && count ($ avatar) == 0)

changed
the images are now also displayed in the ACP, however
BUT :!
when I do that comes:


Warning [2] asort () expects parameter 1 to be array, null given - Line: 606 - File: admin / modules / user / avatar_gallery.php PHP 7.4.14 (Linux)
File line function
[PHP] errorHandler-> error
/admin/modules/user/avatar_gallery.php 606 asort
/admin/index.php 824 require
Warning [2] Invalid argument supplied for foreach () - Line: 607 - File: admin / modules / user / avatar_gallery.php PHP 7.4.14 (Linux)
File line function
/admin/modules/user/avatar_gallery.php 607 errorHandler-> error
/admin/index.php

Line: 606/607:
asort ($ avatar);
foreach ($ avatar as $ key => $ file)

And that BUT: if I upload an avatar to the new folder despite the error, the error message is gone and the avatar is also displayed in the new folder

I've already tried to get help at Mybb.de, but unfortunately I didn't get any help

Here the Plugin
Lg Tc4me


 
[Image: autism4all.png]
[x] <= Drive in nail here for new display!
Reply


Messages In This Thread
Need Help to MYBB Plugin Avatar Gallery - by tc4me - January 27th, 2021 at 4:08 PM
RE: Need Help to MYBB Plugin Avatar Gallery - by Darth-Apple - January 27th, 2021 at 5:29 PM
RE: Need Help to MYBB Plugin Avatar Gallery - by tc4me - January 27th, 2021 at 6:14 PM
RE: Need Help to MYBB Plugin Avatar Gallery - by Darth-Apple - January 28th, 2021 at 6:26 AM
RE: Need Help to MYBB Plugin Avatar Gallery - by tc4me - January 28th, 2021 at 11:34 AM



Users browsing this thread: 1 Guest(s)

Dark/Light Theme Selector

Contact Us | Makestation | Return to Top | Lite (Archive) Mode | RSS Syndication 
Proudly powered by MyBB 1.8, © 2002-2024
Forum design by Makestation Team © 2013-2024