Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

September 22, 2021, 11:51:35 PM

Login with username, password and session length
Members
  • Total Members: 3823
  • Latest: Ritsu
Stats
  • Total Posts: 192502
  • Total Topics: 21002
  • Online Today: 100
  • Online Ever: 1035
  • (November 26, 2020, 04:45:12 AM)
Users Online
Users: 1
Guests: 38
Total: 39

Author Topic: Problem by using newer PHP version  (Read 785 times)

0 Members and 1 Guest are viewing this topic.

Offline GER_SMF

  • Newbie
  • *
  • Posts: 2
Problem by using newer PHP version
« on: June 21, 2021, 04:17:17 AM »
Link to my forum: Not mentioned for security reasons
SMF version: 2.0.15
TP version: 1.107
Default Forum Language: German
Theme name and version: equal
Browser Name and Version: Different browsers
Mods installed: Not mentioned for security reasons
Related Error messages:


Code: [Select]
Fatal error: Uncaught Error: Cannot create references to/from string offsets in C:\xampp_MDB\htdocs\Sources\TPortal.php:2533 Stack trace: #0 C:\xampp_MDB\htdocs\Themes\default\TPBlockLayout.template.php(45): TPortal_panel('left') #1 C:\xampp_MDB\htdocs\Sources\Load.php(2008): template_tp_above() #2 C:\xampp_MDB\htdocs\Sources\Subs.php(3441): loadSubTemplate('tp_above', true) #3 C:\xampp_MDB\htdocs\Sources\Subs.php(2883): template_header() #4 C:\xampp_MDB\htdocs\Sources\Errors.php(328): obExit(NULL, true, false, true) #5 C:\xampp_MDB\htdocs\Sources\Errors.php(165): setup_fatal_error_context('Cannot create r...') #6 C:\xampp_MDB\htdocs\index.php(122): fatal_error('Cannot create r...', false) #7 [internal function]: {closure}(Object(Error)) #8 {main} thrown in C:\xampp_MDB\htdocs\Sources\TPortal.php on line 2533
Line 2533:
Code: [Select]
$block = &$context['TPortal'][$panelside][$side][$i];
if(!isset($block['frame']))
continue;

Zu aller Erst (in English below) :

Wir haben bestimmt einige zu alte SMF/TPortal Versionen, das hängt damit zusammen, dass SMF durch die vielen Code-Änderungen der MOds etc. keine automatischen Updates mehr zulässt.

Wir fahren ein SMF Forum mit mehreren tausend Benutzern und ca.  35 Modifikationen.

Der  Web-Dienstleister stellt auf mariaDB und eine höhere PHP Version um, das wollte ich jetzt mit einer lokalen Web-Version testen und beim Aufruf der index.php kommt der obige Fehler.

Wie kann ich das alte TPortal manuell entfernen (ohne SMF aufrufen zu können) und die neue manuell installieren?

Server local:
Apache/2.4.47
10.4.19-MariaDB
PHP-Version: 7.3.28

Quote
English:
We certainly have some SMF/TPortal versions that are too old, this is due to the fact that SMF no longer allows automatic updates due to the many code changes to MOds etc.

We run a SMF forum with several thousand users and about 35 modifications.

The web service provider is switching to mariaDB and a higher PHP version, I wanted to test this now with a local web version and when calling the index.php the above error comes up.
How can I remove the old TPortal manually (without being able to call SMF) and install the new one manually?

Greetings & THX
GER_SMF

Online @rjen

  • Support Team
  • *
  • Posts: 2950
    • FJR-club Nederland
Re: Problem by using newer PHP version
« Reply #1 on: June 21, 2021, 04:28:18 AM »
Without access to SMF that is pretty tedious: you require FTP access to the files to uninstall and manually remove the code edits.
Installing the new version without the package manager will require FTP access and Database access. But I do not see why you would try that.

You may need to manually uninstall, then upgrade your SMF install and use the package manager to install TP 2.0.1.
You old TP content will still be available in the new install
Running TP2.1.0 on SMF2.0 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 (latest Github)
Want to check what php version I am testing on? See: PHP Info

Offline GER_SMF

  • Newbie
  • *
  • Posts: 2
Re: Problem by using newer PHP version
« Reply #2 on: June 21, 2021, 04:32:10 AM »
Hi Arjen,

thx for the info.

Which TP version I can use with SMF 2.0.15? TP 2.0.1.?

Greetins
GER_SMF

Online @rjen

  • Support Team
  • *
  • Posts: 2950
    • FJR-club Nederland
Re: Problem by using newer PHP version
« Reply #3 on: June 21, 2021, 04:39:37 AM »
Yes
Running TP2.1.0 on SMF2.0 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 (latest Github)
Want to check what php version I am testing on? See: PHP Info

Online @rjen

  • Support Team
  • *
  • Posts: 2950
    • FJR-club Nederland
Re: Problem by using newer PHP version
« Reply #4 on: June 21, 2021, 07:44:01 AM »
Just checked the (very old) installer of TP1.0..

To fully install you will also need to remove three hooks from the database, table smf_settings...

'integrate_pre_include' => '$sourcedir/TPassimilate.php',
'integrate_load_permissions' => 'tpAddPermissions',
'integrate_buffer' => 'tpAddCopy',
Running TP2.1.0 on SMF2.0 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 (latest Github)
Want to check what php version I am testing on? See: PHP Info