TinyPortal

Development => Support => Topic started by: Dylert on August 12, 2019, 07:01:00 PM

Title: Call to undefined function TP_loadTheme()
Post by: Dylert on August 12, 2019, 07:01:00 PM
 Link to my forum: http://www.hellasforum.net/
SMF version: SMF ver. 2.0.15 here
TP version: 1.6.1
Default Forum Language: Norwegian
Theme name and version: Default
Browser Name and Version: Chrome - latest version
Mods installed:
SMF pro likes
SMF contact page
Social login
Topic starter
Users online today
WYSIWYG Quick reply
Post and PM inline attachment
Simple Audio video embedder
Advanced attachment uploader
Alternative menu
DMOT.hook.v141

Related Error messages: Call to undefined function TP_loadTheme()
PHP version: 7
Title: Re: Call to undefined function TP_loadTheme()
Post by: @rjen on August 12, 2019, 07:04:49 PM
Forumlink does not work?

Please Specify complete list of Mods, the Actual TP version as well as the PHP version
Title: Re: Call to undefined function TP_loadTheme()
Post by: Dylert on August 12, 2019, 07:14:39 PM
Quote from: @rjen on August 12, 2019, 07:04:49 PM
Forumlink does not work?

Please Specify complete list of Mods, the Actual TP version as well as the PHP version

Sorry! I have corrected th elink now:  www.hellasforum.net
Title: Re: Call to undefined function TP_loadTheme()
Post by: @rjen on August 12, 2019, 07:20:23 PM
What did you do / change when this started happening? It suggests a broken / incomplete install of TinyPortal...

Did you backup before this started?
Title: Re: Call to undefined function TP_loadTheme()
Post by: Dylert on August 12, 2019, 07:29:25 PM
I changed from http to https and ran repair_settings.php. I clicked on "Remove all hooks", but I don't know if that is the reason.
Title: Re: Call to undefined function TP_loadTheme()
Post by: @rjen on August 12, 2019, 07:32:42 PM
The remove all hooks is most likely the cause...

Do you have a backup? If so restore.

You may have more issues with your mods now.
Title: Re: Call to undefined function TP_loadTheme()
Post by: Dylert on August 12, 2019, 07:34:07 PM
No, I don't have a backup of everything. But I have backup of some files and database which is about 6 months old.
Title: Re: Call to undefined function TP_loadTheme()
Post by: Dylert on August 12, 2019, 07:41:06 PM
Maybe I shold make a clean install??
Title: Re: Call to undefined function TP_loadTheme()
Post by: @rjen on August 12, 2019, 07:54:56 PM
A clean set of files is a sure way to fix it. More work though then a backup... you should really create a full backup of your forum before doing these things...

If you have the backup of the table smf_settings and are comfortabel with phpmyadmin you can manually put back the values you find in the table fields for the variables that start with integrate...

That should fix it, but I am not exactly sure. so no guarantees
Title: Re: Call to undefined function TP_loadTheme()
Post by: @rjen on August 12, 2019, 08:09:45 PM
There is a file in the TinyPortal package: do_hooks.php, that can restore the hooks.

I am not sure how to run that though. Mick, a hand please ?
Title: Re: Call to undefined function TP_loadTheme()
Post by: lurkalot on August 12, 2019, 08:32:39 PM
Quote from: @rjen on August 12, 2019, 08:09:45 PM
There is a file in the TinyPortal package: do_hooks.php, that can restore the hooks.

I am not sure how to run that though. Mick, a hand please ?

You  should be able to grab a copy of the do_hooks.php file from the TP package, and drop that into the directory where all your SMF files are sitting.  Then run it from  your address bar, like you would with a upgrade
Title: Re: Call to undefined function TP_loadTheme()
Post by: @rjen on August 12, 2019, 08:34:58 PM
Tried that, resulting in a white screen and no updates. Saw that you used it before, hence the question
Title: Re: Call to undefined function TP_loadTheme()
Post by: lurkalot on August 12, 2019, 08:51:14 PM
Quote from: @rjen on August 12, 2019, 08:34:58 PM
Tried that, resulting in a white screen and no updates. Saw that you used it before, hence the question

Strange, should run ok, or it always used to.  Haven't had to do this in a while.  Wonder if TP still shows as installed in package manager.  If not then perhaps remove all the TP files manually and reinstall it. (Backing them up first).

But as you said, removing all hooks will certainly break all the other mods that use hooks.
Title: Re: Call to undefined function TP_loadTheme()
Post by: @rjen on August 12, 2019, 08:55:07 PM
It looks like the OP is setting up a fresh set of files...
Title: Re: Call to undefined function TP_loadTheme()
Post by: lurkalot on August 12, 2019, 09:00:52 PM
Quote from: @rjen on August 12, 2019, 08:55:07 PM
It looks like the OP is setting up a fresh set of files...

Might be the best way to go I guess. Lets hope they are fresh files from the large upgrade package, not the install one. Otherwise it's going to get messy.  ;)
Title: Re: Call to undefined function TP_loadTheme()
Post by: lurkalot on August 12, 2019, 09:31:36 PM
Looks like Dylert is running the installer, not just uploading a fresh set of files.  I hope there's a current backup of the database now, because it's going to be a empty forum starting from scratch.
Title: Re: Call to undefined function TP_loadTheme()
Post by: @rjen on August 13, 2019, 09:44:28 PM
Guess he had a backup this time....
Title: Re: Call to undefined function TP_loadTheme()
Post by: lurkalot on August 13, 2019, 09:51:18 PM
It does indeed, well that's a relief.  I was a bit worried when I saw install.php running yesterday.