TinyPortal

Development => Support => Installation => Topic started by: IgorS on March 30, 2024, 09:35:20 PM

Title: Hooks issue after installation - Empty TP Admin page
Post by: IgorS on March 30, 2024, 09:35:20 PM
Link to my forum: https://www.truck-spotters.eu/forum/
SMF version: 2.1.4
TP version: 3.0.0
Default Forum Language: Polish (but tested also with English)
Theme name and version: Default
Browser Name and Version: Chrome
Mods installed: Topic Count in Profiles, Ad Management, TinyPortal, Forum Width Setting, AutoPurge old Topics, Social Login, Post as Another Member, Enhanced Quick Reply, Google Analytics Code, Anti-spam by CleanTalk, Simple .htaccess Proxy Blocker Mod, Simple .htaccess Cache Mod
Related Error messages:
- The callable TinyPortal\Integrate::hookDefaultAction could not be called.
- Hook call: function "TinyPortal\Integrate::hookPreLoad" in file /home/tspotter/domains/truck-spotters.eu/public_html/TinyPortal/Integrate.php could not be called.
- The callable TinyPortal\Integrate::hookPreLoad could not be called.

I have installed TinyPortal 3.0.0 without any issues. Database has been updated:
1.png

But when I clicked go to TP Admin page after installation, the page is empty:
2.png

When entering Configuration page, there is no TP Admin page at all:
3.png

Could you please help to get it working?
Title: Re: Hooks issue after installation - Empty TP Admin page
Post by: @rjen on March 30, 2024, 10:13:46 PM
Does not sound like something I have seen before .

Did you try uninstalling and install again?
Title: Re: Hooks issue after installation - Empty TP Admin page
Post by: tino on March 30, 2024, 10:23:33 PM
Can you check the files exist on the server. My guess is file permissions and the TinyPortal directory wasn't created so the other hooks aren't loaded.
Title: Re: Hooks issue after installation - Empty TP Admin page
Post by: IgorS on March 30, 2024, 10:31:27 PM
Sure, but without success. I have also tried to uninstall some other mods and then install TP, but nothing really changes.

I tried to uninstall it, then remove DB tables manually (as default procedure fails due to ALTER TABLE instead of DROP TABLES) and then installing TP again. Installation summary says it's successfull, but I have no settings as on the screenshots.

I've checked Integration hooks and they are there, but some of them are "not found":
4.png

Quote from: tino on March 30, 2024, 10:23:33 PMCan you check the files exist on the server. My guess is file permissions and the TinyPortal directory wasn't created so the other hooks aren't loaded.

Will check it tommorrow and update here. Which files should I check?
Title: Re: Hooks issue after installation - Empty TP Admin page
Post by: @rjen on March 30, 2024, 10:31:58 PM
Checking the site I do see blocks, som some files are definitely there
Title: Re: Hooks issue after installation - Empty TP Admin page
Post by: lurkalot on March 31, 2024, 09:17:58 AM
Since reading this I just checked a couple of sites.  I've noticed on a few of them mine and others show the TinyPortal\Integrate::hookCredits hook as "temporary hook not found"

Also the TinyPortal\Integrate::hookDefaultAction hook showing as "Not Found"

But everything appears to be working as normal.

@IgorS What version of php are you running, and do you have modsecurity enabled on you hosting??
Title: Re: Hooks issue after installation - Empty TP Admin page
Post by: @rjen on March 31, 2024, 11:13:12 AM
I am pretty sure this is 'standard' behavior due to how TinyPortal implemented the hooks, which is not exactly what SMF expects. I am sure Tino can explain this better
Title: Re: Hooks issue after installation - Empty TP Admin page
Post by: IgorS on March 31, 2024, 06:23:25 PM
Guys, I am so sorry for wasting your time.

I was doing it on my personal forum account, which inherits all permissions from Admin.
In fact, it didn't inherits permissions related to TP.

After logging to Admin account, everything works fine.

Thank you and sorry!
Title: Re: Hooks issue after installation - Empty TP Admin page
Post by: @rjen on March 31, 2024, 09:49:00 PM
Not sure how you managed to get logged in to the TinyPortal admin page then... you should have gotten this screen imo...

2024-03-31_224618.png