Starpaul20 / Avatar-Gallery

MyBB plugin that adds an avatar gallery to your board.
GNU General Public License v3.0
3 stars 0 forks source link

Avatar Gallery Plugin Showing Forums' Root As Gallery #6

Open UnoNYC opened 3 years ago

UnoNYC commented 3 years ago

The avatar gallery plugin is showing the forums' install directory, as the gallery itself.

It was working before and the only thing I did recently was upgrade to the latest version of MyBB..

And if I delete anything, then it deletes the files from the server.

I just did a clean reinstall on one of my forums and this is still an issue.

And when I try to deactivate it, it either gives me a 500 error or it takes me to a blank page..

Please, please tell me that this can be fixed?

weird avatar gallery

Thank you in advance for your time.

Starpaul20 commented 3 years ago

Looks like the issue might be a blanked-out setting. Look for the setting Avatar Gallery under Login and Registration Options, and see if the value is anything other than images/avatars. If it is, change it to that.

UnoNYC commented 3 years ago

Thank you for responding, I updated your plugin and the good news is that the gallery shows as normal and not my forum's install directory.

The bad news is that, I looked in my ACP, and I can't see any such option under the setting you told me to look under.

2021-02-12 23 49 44

Also, there was no way for me to deactivate your plugin (be it the newest version, or the previous one) so I could install another version.

I had to manually delete every single file associated with it because every time I tried to deactivate, I got this error..

Fatal error: Cannot redeclare find_replace_templatesets() (previously declared in /home/xyz123/public_html/forums/inc/adminfunctions_templates.php:23) in /home/xyz123/public_html/forums/inc/adminfunctions_templates.php on line 23

It's basically the same error as the one in this topic, and the solution for it didn't work since there was nothing to change in your plugin.

https://community.mybb.com/thread-225451...pid1339089

And this is the same error I got when I tried to uninstall the previous version, which was why I had to manually uninstall it myself. I was trying to deactivate it, so that I could reactivate it and get the gallery to show in the User CP since it currently does not.

Can this be fixed?

Starpaul20 commented 3 years ago

I'm not too sure if that can be fixed.

UnoNYC commented 3 years ago

Hi, I managed to get it working.. for both your Avatar Gallery and Mood Manager plugins, I had to change all the lines "include" lines referring to adminfunctions_templates.php to "include_once"

Like Matt did here on someone else's issue.

https://community.mybb.com/thread-85534-post-625785.html#pid625785

I figured that I'd post back with an update since you said you weren't sure if this could be fixed..

Thank you for all of your help, and I hope this info helps you pinpoint what went wrong. :)