TinyPortal

Development => Support => Topic started by: Mike66 on December 16, 2023, 12:53:42 PM

Title: TP Admin problem
Post by: Mike66 on December 16, 2023, 12:53:42 PM
When I try to delete a block using the red X, or move a block using the blue arrows, I get the "Are you sure you want to ....." pop up, but when I click OK - I get a "This page isn't working" error?

Just wondering if it is a common problem with an easy fix?

I'm running TP 2.1.0 and SMF 2.0.19.

Cheers
Mike
Title: Re: TP Admin problem
Post by: @rjen on December 16, 2023, 06:06:11 PM
Not a common problem.

But if you are on TP2.1.0 the first thing I recommend that you first upgrade to 2.3.1 and try again
Title: Re: TP Admin problem
Post by: Mike66 on December 16, 2023, 06:36:42 PM
Thanks @rjen

I enabled error logs and got the following:

mysite/forum/index.php?action=tpadmin;fcb2e29c=af6db508b6424770ab80b90b5396adc2;blockbottom=29

4096: Argument 4 passed to TinyPortal\Base::updateSQL() must be an instance of TinyPortal\string, string given, called in mysite/forum/TinyPortal/Block.php on line 338 and defined

File: mysite/forum/TinyPortal/Base.php
Line: 275

Interesting - I was able to delete blocks and move them as normal with error logs enabled, but when I disabled error logs again the buttons stopped working.
Title: Re: TP Admin problem
Post by: @rjen on December 16, 2023, 06:40:14 PM
So are you on TinyPortal 2.3.1 now?
Title: Re: TP Admin problem
Post by: Mike66 on December 16, 2023, 06:54:46 PM
Quote from: @rjen on December 16, 2023, 06:40:14 PMSo are you on TinyPortal 2.3.1 now?

No, I haven't upgraded it yet.

I tried to upgrade SMF from 2.0.17 to 2.0.19 a while ago and failed.
Detailed Version Check shows my SMF package version as 2.0.17 and current version as ??

Everything on the forum is working well apart from this little TP admin glitch @rjen, so I am not sure about upgrading anything at the moment, as I don't want to break it.

Does TP 2.3.1 work with SMF 2.0.17?
Title: Re: TP Admin problem
Post by: @rjen on December 16, 2023, 07:00:23 PM
Quote from: Mike66 on December 16, 2023, 06:54:46 PMDoes TP 2.3.1 work with SMF 2.0.17?

Yes
Title: Re: TP Admin problem
Post by: tino on December 16, 2023, 09:03:41 PM
I think you are running an older version of PHP to get that error.

It's unlikely that 2.3.1 will work if that's the case.
Title: Re: TP Admin problem
Post by: @rjen on December 16, 2023, 09:13:12 PM
he says he is using 2.1.0: that required PHP 7.2 or higher...
Title: Re: TP Admin problem
Post by: Mike66 on December 16, 2023, 10:42:02 PM
Yes, that's the conclusion I've come to  :(

I uninstalled 2.1.0 ready to install 2.3.1 - bad mistake.

Although I already had 2.1.0 installed, I can't install either now.

I guess my host must have lowered the php version without me realising. I can't get in to my hosting control panel tonight either so I have raised a help ticket with them.

What a pain, I had a gut feeling that I would break it if I tried - so I've lost my front page and TP blocks until I can get it fixed.
Title: Re: TP Admin problem
Post by: Mike66 on December 17, 2023, 11:50:14 AM
G'morning @rjen and tino

My web hosting guys got back to me, it had been moved to another server (which was running on 5.6) and they hadn't given me the new control panel details yet.

I used the new control panel to up the php to 7.2 and then installed TP 2.1.0 again.

That is everything fixed, front page and blocks are back and the buttons in TP Admin are now working  :)

Thanks for your help, I really like all the TP features on my forum!

Cheers
Mike
Title: Re: TP Admin problem
Post by: @rjen on December 17, 2023, 12:12:03 PM
In that case I still recommend moving to the latest version of tp since it does hold a number of bug fixes and improvements