TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 16, 2024, 06:34:37 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,158
  • Total Topics: 21,219
  • Online today: 106
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 60
  • Total: 60

Call to undefined function TP_loadTheme()

Started by Dylert, August 12, 2019, 07:01:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dylert

 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

@rjen

Forumlink does not work?

Please Specify complete list of Mods, the Actual TP version as well as the PHP version
Running Latest TP on SMF2.1 at: www.fjr-club.nl

Dylert

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

@rjen

What did you do / change when this started happening? It suggests a broken / incomplete install of TinyPortal...

Did you backup before this started?
Running Latest TP on SMF2.1 at: www.fjr-club.nl

Dylert

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.

@rjen

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.
Running Latest TP on SMF2.1 at: www.fjr-club.nl

Dylert

No, I don't have a backup of everything. But I have backup of some files and database which is about 6 months old.

Dylert


@rjen

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
Running Latest TP on SMF2.1 at: www.fjr-club.nl

@rjen

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 ?
Running Latest TP on SMF2.1 at: www.fjr-club.nl

lurkalot

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

@rjen

Tried that, resulting in a white screen and no updates. Saw that you used it before, hence the question
Running Latest TP on SMF2.1 at: www.fjr-club.nl

lurkalot

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.

@rjen

It looks like the OP is setting up a fresh set of files...
Running Latest TP on SMF2.1 at: www.fjr-club.nl

lurkalot

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.  ;)

lurkalot

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.

@rjen

Running Latest TP on SMF2.1 at: www.fjr-club.nl

lurkalot

It does indeed, well that's a relief.  I was a bit worried when I saw install.php running yesterday.