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

Recent

Welcome to TinyPortal. Please login or sign up.

April 18, 2024, 02:29:13 AM

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

TinyPortal 1.6.2: error with TPassimilate.php file in SMF errors log

Started by smartmouse, March 15, 2019, 09:28:45 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

smartmouse

Hello, I had a look at SMF errors log and I see a lot of errors related to TPassimilate.php file:

"call_user_func() expects parameter 1 to be a valid callback, no array or string given" TPassimilate.php

What should I do to get rid of it?

Thank you in advance for your help.

SMF version: SMF ver. 2.0.15
TP version: TP ver. 1.6.2
Default Forum Language: Italian
Theme name and version: Ambassador
Mods installed:

Optimus
Hide SMF Version
Topic Descriptions
SMF 2.0.15 Update
Responsive Curve
Tapatalk SMF 2.0 Plugin
Stop Spammer
Ad Managment
Aeva ~ Auto-Embed Video & Audio
Disable 'last edit by...' for Administrators
Search Focus Dropdown
Pretty URLs
Custom Tab
cbi 1.0
Stop Forum Spam
Change All Subjects
Global Headers Footers
EU Cookie
Menu Order
Header Addon
Yet Another Global Announcements Mod
Remove Help From Menu
SMF Likes Plus

@rjen

Can you post the complete error message, with the line numbers in the actual file as well as the link to where the error occurs?

(like in example below)

No way to tell from what you are posting where the error occurs...
Running Latest TP on SMF2.1 at: www.fjr-club.nl

smartmouse

Here is my error, it occurs for every topic.

https://mywebsite.com/index.php?pretty;board=board1;topic=topic-title
2: call_user_func() expects parameter 1 to be a valid callback, no array or string given
File: /my/path/www/Sources/TPassimilate.php
Line: 496


In the meanwhile I had to disable TinyPortal because I noticed that it prevent my site from loading the home page.
I mean that if I go to mysite.com I get 500 error, if I go to mysite.com/forum it works with no problems.

I get this problem and previous error when I installed 1.6.2 version. Before I had 1.4R version and atleast the home page worked (I do not know if I had errors in the log).

tino

What version of php are you using?

It's this line of the code;

https://github.com/tinoest/TinyPortal/blob/master/Sources/TPassimilate.php#L496

Which was a change in the code I made for SMF 2.1, although as you are on 2.0 the first part of the if should be true.

@rjen

Given that he is using 1.6.2 the PHP check upon install is already made, hence it should be 5.4 or higher.

Let's hear what exact version it is...
Running Latest TP on SMF2.1 at: www.fjr-club.nl

@rjen

I am noticing the use of Pretty URL's and the resulting 'absense' of the actions in the calling url...

Quotehttps://mywebsite.com/index.php?pretty;board=board1;topic=topic-title

Could that be the cause?
Running Latest TP on SMF2.1 at: www.fjr-club.nl

tino

Quote from: @rjen on March 15, 2019, 10:18:56 AM
I am noticing the use of Pretty URL's and the resulting 'absense' of the actions in the calling url...

Quotehttps://mywebsite.com/index.php?pretty;board=board1;topic=topic-title

Could that be the cause?

That would be the cause, let me install pretty url's here and see what breaks.

tino

Quote from: tino on March 15, 2019, 10:30:25 AM
Quote from: @rjen on March 15, 2019, 10:18:56 AM
I am noticing the use of Pretty URL's and the resulting 'absense' of the actions in the calling url...

Quotehttps://mywebsite.com/index.php?pretty;board=board1;topic=topic-title

Could that be the cause?

That would be the cause, let me install pretty url's here and see what breaks.

I just installed PrettyURL's 2.1.4 and have no issues. So maybe not.

@rjen

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

tino

Quote from: @rjen on March 15, 2019, 10:44:24 AM
Perhaps the OP can provide the link to his forum?

That might help, also in the index.php what is the value of $forum_version?