News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Call to a member function versionCheck() on null

Started by Мel, July 01, 2022, 09:19:37 AM

Previous topic - Next topic

Мel

Howdy,
After one of the anti spam mods, my 2.0.19 forum gives me this error while trying to enter the admin panel:
Call to a member function versionCheck() on nullAnd I can't use it. Any tips how can I fix this? There is always a backup, but maybe a more elegant solution exists.
Thanks.
"The ability to speak does not make you intelligent."
- Qui-Gon Jinn

Doug Heffernan

Quote from: Мel on July 01, 2022, 09:19:37 AMHowdy,
After one of the anti spam mods, my 2.0.19 forum gives me this error while trying to enter the admin panel:
Call to a member function versionCheck() on nullAnd I can't use it. Any tips how can I fix this? There is always a backup, but maybe a more elegant solution exists.
Thanks.

I see that you have posted at that mod 's support topic about this. You do not need to start a new topic as well for the same thing.

Мel

"The ability to speak does not make you intelligent."
- Qui-Gon Jinn

Aleksi "Lex" Kilpinen

What prompted this error? I mean, what changed? Or did it come up immediately after installing the mod?
What other mods do you have installed, and what PHP version are you on currently?
Slava
Ukraini!


"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Мel

Quote from: Aleksi "Lex" Kilpinen on July 02, 2022, 08:18:12 AMWhat prompted this error? I mean, what changed? Or did it come up immediately after installing the mod?
What other mods do you have installed, and what PHP version are you on currently?
At first, the mod broke the forum. Without installation manual for the mod I could not remove it, so I asked my hosting provider to restore a backup. The forum returned online, but with that error, that blocks my admin access.
There are several other mods on my forum, like video embedder and such, but I can't see the list without the admin access.
PHP 7.4 (ea-php74).
"The ability to speak does not make you intelligent."
- Qui-Gon Jinn

Kindred

Ah.

You restored a backup of files, but not the database. That was your issue
Слова
Украина

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Мel

Quote from: Kindred on July 03, 2022, 07:21:28 AMAh.

You restored a backup of files, but not the database. That was your issue
Ah, that was a rookie mistake, long time without practice :)
Restored it, everything seems fine, thanks.
"The ability to speak does not make you intelligent."
- Qui-Gon Jinn

Kindred

Mods, especially those in 2.1.x are using hooks more often now. This means that there  are few, if any file edits,  because the calls for mod functions are in the database.

There are several ways to remove hooks, withouta full restore, if the mod breaks your site.
(That being said, you should always take a backup of files and database before any edits (including mods). ;)
Слова
Украина

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Мel

"The ability to speak does not make you intelligent."
- Qui-Gon Jinn

Advertisement: