HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
2021.009 PHP Fatal error: Cannot declare class MediaModel
I cannot get the upgrade going from 2.1 at http://pochapocha.com/babilu2
A2hosting.com got this:
We found that is generating this error when the page is accessed:
~
[05-Mar-2022 02:39:56 UTC] PHP Fatal error: Cannot declare class MediaModel, because the name is already in use in . . . /babilu2/plugins/FileUpload/class.mediamodel.php on line 0
It looks like the MediaModel plugin is conflicting with something else in the site, or it has a bug. We recommend reaching out to the developer of that plugin and seeing if they can suggest anything to help.
~
A file with the same name is in /applications/dashboard/
0
Comments
Disable FileUpload
https://success.vanillaforums.com/kb/articles/57-uploading-files
"This functionality is built into our editors"
Thanks, Kaspar. How do I do that from cPanel?
It's a Vanilla plugin and you need to disable it from the Vanilla dashboard. If you cannot access your page because of that error, you need to edit the file /conf/config.php and search for the lines where the plugins are listed. Just delete the line where that plugin is listed.
Thanks. I've done that. And now when going to the site, I get
"Something has gone wrong.
We've run into a problem and are unable to handle this request right now.
Please check back in a little while."
At least you do not need your hoster for that ;-)
This is the "friendly" error message. Add this line to the config to see the actual error message:
$Configuration['Debug'] = true;
Thanks, R_J.
It's been decades since I was a Burroughs basic assembler, machine language, and COBOL programmer, even since I studied like Fortran and Pascal in college, but never applied them. Historically (not prehistorically ;-), I was there when Burroughs went from the B500 series to the B1700 multiprocessing tanks. And it has been years since I have had to address any such cPanel issues, and none like this. So discovery is happening as I clear cobwebs in the damp dark basement. Thanks for holding the flashlight.
Here's what I got: https://pochapocha.com/babilu2/
The plugin VRadio is causing troubles. Deactivate it by deleting the corresponding line from the config
Thanks again, R_J,
That resolves the vRadio, and yields this:
Not sure what that means. I would suggest to disable all plugins and try running /utility/update (i.e. go to your-forum.com/utility/update).
Try that and if it is successful, re-enable all desired plugins one by one from the dashboard. Important would be to enable them one by one and to take a look at your forum after each plugin that you have enabled in order to check if the plugin has broken the forum or if it is working as expected.
The first line of that error is cut off, that's why it can't be identified. But it looks like the Tagging plugin is conflicting with something.
If the first line of the error really isn't on the page, try View Source to see if it can be found there. Or your error log.
Thanks, Linc.
The full message shows up at the forum site here: https://pochapocha.com/babilu2/ as Debug is still true, I'll be looking at this shortly and will begin by addressing the Tagging plug in, then doing what R_J suggests.
Rus
Taking out all plug ins yields this:
Putting them back yields this, where the page stands:
Continue without any enabled plugins.
https://open.vanillaforums.com/discussion/comment/260642#Comment_260642
So done.
Here's what the config file looks like around there:
And here's what going to https://pochapocha.com/babilu2/ yields with $Configuration['Debug'] = true;:
Don't know if this helps, but going to https://pochapocha.com/babilu2/admin.php, versus index.php, yields this (and I don't know how to get a code block):
Mark the text that should be formatted as code and click with your mouse on the character that appears on the left side of the text input field. Sorry, I don't find that symbol here on my keyboard and I cannot make a screenshot. But you will figure it out once you know what to look for.
There is no admin.php file, or at least: there should not be such a file.
I haven't replied to your last post because you where repeating that FullName error and I have given the solution for this error in the comment I've linked. Not saying anything was stubborn and impolite, sorry for that!
Please go through the comment where I tried to explain how you can solve that FullName column problem. Please ask if anything is still unclear.
Thanks, R_J,
Got that code block going just in time to edit the above comments. Much better.
I misread your above comment to mean that you were saying the link you provided was where you had already said to disable plug ins, that you were reiterating.
I've got to host a poetry challenge soon, and then go for a doctor-ordered walk. Maybe if not too spent, I will look further into the link you provided tonight. On first read-through, a lot of the conversation has to do with getting signed in, whereas I have nothing to sign into. But I will look further probably Thursday. Wednesdays are bell to bell.
Thanks again.
Rus