MyBB Community Forums

Full Version: When uploadinng myalearts on mybb 1.8 - getting error?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I tried uploading myalearts 5 times, deleted and reuploaded but I'm getting this error when I go to the plugin page, no plugins are showed and this error is displayed  Exclamation Exclamation How to fix it?

[Image: 00e8c3e59ff8c5096aff732c3573c489.png]

Line 25 of myalearts.php is

require_once MYBBSTUFF_CORE_PATH . 'ClassLoader.php';

I think I need this plugin : https://github.com/MyBBStuff/Plugins.Core but how do I install it?

I uploaded ClassLoader.php in inc/plugins/MybbStuff/Core/

Now The plugin page is blank and nothing is shown.

[Image: b093e7c6b6f4673c082f2b70eace0aed.png]

Checked php error logs in server logs and found this error

[27-Dec-2022 08:13:57 UTC] PHP Fatal error:  Cannot declare class MybbStuff_Core_ClassLoader, because the name is already in use in /home/dekrim/public_html/inc/plugins/MybbStuff/Core/ClassLoader.php on line 14

What to do?

Okay to fix it I changed the name from
MybbStuff_Core_ClassLoader
to
class MybbStuff_Core_ClassLoader4

Now it works. Let me see if myalearts work now. I will update the thread.

I've fixed it. Activating my alearts first then activating OUGC awards fixes the problem. If OUGC awards in active before activating myalearts, the forum crashes.

First activate Myalearts Plugin
Secondly activate OUGC Awards plugin