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

Recent

Welcome to TinyPortal. Please login or sign up.

March 28, 2024, 08:53:08 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,104
  • Total Topics: 21,212
  • Online today: 212
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 209
  • Total: 210
  • illori

PHP Depreciation woes

Started by PD3, May 05, 2020, 03:07:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

PD3

Hi guys,

I've been running an old version of the portal for years without any problems, but now it's just a white page with an internal server error 500

I'll paste the error code below, just in case there's an easy fix, but after reading around I'm pretty sure I just need to upgrade. My question is this -- how do I upgrade without losing everything if I can't even get the forum to load?

Thanks in advance for any useful information

PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/public_html/forum/Sources/Load.php(225) : runtime-created function on line 3

@rjen

Firstly provide a bit more details: what version are you using: SMF version, Tinyportal version, PHP version?
What other mods are you using?
The error is not pointing to TinyPortal...

What led to the errors?

I assume you moved to a higher PHP version? What version was working last?

Easiest approach would be to downgrade to the php version that was working and when the forum comes back take it from there...
Running Latest TP on SMF2.1 at: www.fjr-club.nl

PD3

Quote from: @rjen on May 05, 2020, 03:44:37 PM
Firstly provide a bit more details: what version are you using: SMF version, Tinyportal version, PHP version?

Software Version:           SMF 1.1.21
$forum_version = 'SMF 1.1.21'
(from the index.php can't find the TP version)
PHP is up to date, but the host tried loading an older version, and that didn't work either

QuoteWhat other mods are you using?

None that I can remember

QuoteThe error is not pointing to TinyPortal...

I had some problems with trying to update the SMF, with errors showing on multiple lines, so it was inadvisable to go ahead. I made the mistake of not taking it further because it was working OK without the update.

QuoteWhat led to the errors?

I didn't do anything to bring it on. I'm guessing the hosts just updated PHP

QuoteI assume you moved to a higher PHP version? What version was working last?

I've no idea -- I leave that to the hosts. I can find out if you need to know.

QuoteEasiest approach would be to downgrade to the php version that was working and when the forum comes back take it from there...

Yes, tried that. I was hoping I can somehow find a way to upgrade SMF or TP without having to use SMF package manager, as I don't currently have access to it due to the fault.

Many thanks for the reply, @rjen

tino

If you can downgrade to php 5.5 or lower then you can apply this patch short term to remove the error notices in SMF https://www.smfhacks.com/index.php?action=downloads;sa=view;down=204

The ideal would be to upgrade to SMF 2.0.x, if you do that remember to back up your database.

@rjen

Since it is not a TinyPortal issue, but a general SMF issue, you can better follow up on your support request on SMF:  over there are more knowledgeable people that can provide support then here....
Running Latest TP on SMF2.1 at: www.fjr-club.nl

PD3

OK, thanks guys. I guess I now know what I'm going to be doing Saturday  :-\