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

Recent

Welcome to TinyPortal. Please login or sign up.

April 19, 2024, 05:00:30 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: 266
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 186
  • Total: 186

PHP 7 compatability for TP

Started by @rjen, May 23, 2017, 09:48:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

@rjen

This one might be relevant also:

I just found this error in my webhosts error log:

[Thu May 25 09:28:55.368469 2017] [lsapi:notice] [pid 373625:tid 140390126552832] [client 91.121.175.91:34525] [host www.fjr-club.nl] Backend log: PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; chain has a deprecated constructor in /home/deb77453/domains/fjr-club.nl/public_html/Sources/TPSubs.php on line 612\n
Running Latest TP on SMF2.1 at: www.fjr-club.nl

lurkalot

@rjen Think you did say somewhere, but just to confirm, what version of TP were / are you testing with php 7 / 7.1 ?

Was it the very latest TP1.2R3 that allvip posted in the beta thread?

@rjen

Quote from: lurkalot on June 09, 2017, 07:36:09 AM
@rjen Think you did say somewhere, but just to confirm, what version of TP were / are you testing with php 7 / 7.1 ?

Was it the very latest TP1.2R3 that allvip posted in the beta thread?

I believe so, but I am not 100% sure to be honest.

Since Allvip has reposted that version a number of times without changing version numbers I have lost track  :'(.
It would be nice if there was a formal version at some point (1.3R?) so we would be sure we are on the latest...
Running Latest TP on SMF2.1 at: www.fjr-club.nl

lurkalot

Quote from: @rjen on June 09, 2017, 01:00:08 PM

I believe so, but I am not 100% sure to be honest.

Since Allvip has reposted that version a number of times without changing version numbers I have lost track  :'(.
It would be nice if there was a formal version at some point (1.3R?) so we would be sure we are on the latest...

Totally get what you're saying.  I lost track after the first few to be honest, I did try and get the new versions posted to the admin board first, so we could do a quick minor version change, but this just didn't happen for some reason.

As you're testing this particular version, and it works apart for a couple of errors, I might ask if you could attach that exact package here so we can take a look at it. 

@rjen

I attached the package that I am currently using (and testing) to this post.

I tried to download the version from this post: http://www.tinyportal.net/index.php?topic=35806.msg289193#msg289193

But I am getting error: 404 - Attachment Not Found
???

Trying to upload an attachment now throws THIS error: Cannot access attachments upload path!
Seems this forum is in trouble now?
Running Latest TP on SMF2.1 at: www.fjr-club.nl

illori


@rjen

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

lurkalot

Quote from: @rjen on June 09, 2017, 08:21:19 PM
I attached the package that I am currently using (and testing) to this post.

I tried to download the version from this post: http://www.tinyportal.net/index.php?topic=35806.msg289193#msg289193

But I am getting error: 404 - Attachment Not Found
???

Trying to upload an attachment now throws THIS error: Cannot access attachments upload path!
Seems this forum is in trouble now?

Thanks for adding that file. ;)  I guess we still have some path problems here due to the server move a couple of weeks ago.  Thankfully, looks like illori has got it under control.  ;).   

lurkalot

Quote from: @rjen on May 25, 2017, 09:11:43 AM
This one might be relevant also:

I just found this error in my webhosts error log:

[Thu May 25 09:28:55.368469 2017] [lsapi:notice] [pid 373625:tid 140390126552832] [client 91.121.175.91:34525] [host www.fjr-club.nl] Backend log: PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; chain has a deprecated constructor in /home/deb77453/domains/fjr-club.nl/public_html/Sources/TPSubs.php on line 612\n

Try replacing the TPSubs.php file with the one I've attached, and see if it works out better

@rjen

This version of the file seems to work. To be honest this is not my main concern:

this one is, because it is completely breaking Tinyportal on the website when php 7..1 is activated:

Quote8: Array to string conversion
Bestand: /home/deb77453/domains/fjr-club.nl/public_html/Sources/TPortal.php
Regel: 2138
Running Latest TP on SMF2.1 at: www.fjr-club.nl