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?

July 02, 2022, 11:26:54 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 193409
  • Total Topics: 21081
  • Online today: 67
  • Online ever: 1035
  • (November 26, 2020, 04:45:12 AM)
Users Online
Users: 1
Guests: 41
Total: 42

Author Topic: Updating TP on test site causes failure on live site  (Read 703 times)

0 Members and 1 Guest are viewing this topic.

Online @rjen

  • Support Team
  • *
  • Posts: 3252
    • FJR-club Nederland
Re: Updating TP on test site causes failure on live site
« Reply #10 on: January 20, 2022, 11:43:12 PM »
After reading your original post again I suspect I know what went wrong. It is not a TinyPortal issue but an SMF thing.

When you move SMF you need to run repair settings. This is needed to update the settings file to hold the database name and password to the new database and update the file paths in the database.

However, and this is not well documented, you need to run repair settings TWICE.

The first time to change database and password. Save it, and the second time to change the file locations .

If you do not do that the copied install will still refer to the main site file locations and uninstalling a mod on the copy will actually remove the sources from the main site!!!
« Last Edit: January 21, 2022, 04:25:31 AM by @rjen »
Running Latest TP on SMF2.1 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 North East Man

  • Jr. Member
  • **
  • Posts: 13
Re: Updating TP on test site causes failure on live site
« Reply #11 on: January 21, 2022, 03:35:03 AM »
Many thanks @rjen - I’ll be giving it another go over the weekend and see how it goes.  Fingers crossed!!

Offline North East Man

  • Jr. Member
  • **
  • Posts: 13
Re: Updating TP on test site causes failure on live site
« Reply #12 on: January 22, 2022, 09:47:47 AM »
We’ll, the test run of uninstalling TP 1.5.1 and installing the current version on the Test site went very smoothly- no issues whatsoever on either the test site or the live site.  That was relief as I had been putting off the upgrade.  However despite the site looking OK on the surface and seeming to perform OK, switching the test site to PHP 7.4 created so many errors - approx 20 errors for each post on the forum, so I have dropped it back to 7.3. 

There are also issues with the live site in starting the migration to 2.0.18 - missing elements that could not be found by the upgrade.  But these are SMF issues rather than TP so will raise a query on their forums.

Thank you both tino and @rjen for your help with this.

Offline tino

  • Developer
  • *
  • Posts: 2596
Re: Updating TP on test site causes failure on live site
« Reply #13 on: January 22, 2022, 09:50:40 AM »
We’ll, the test run of uninstalling TP 1.5.1 and installing the current version on the Test site went very smoothly- no issues whatsoever on either the test site or the live site.  That was relief as I had been putting off the upgrade.  However despite the site looking OK on the surface and seeming to perform OK, switching the test site to PHP 7.4 created so many errors - approx 20 errors for each post on the forum, so I have dropped it back to 7.3. 

There are also issues with the live site in starting the migration to 2.0.18 - missing elements that could not be found by the upgrade.  But these are SMF issues rather than TP so will raise a query on their forums.

Thank you both tino and @rjen for your help with this.

SMF 2.0.19 fixed a lot of issues with SMF and PHP 7.4 so it might be worth updating to that first.

However TinyPortal 2.1.0 will run on SMF 2.0.17 without issue also if you wanted to get that updated on your live site. At the very least I would suggest jumping to TinyPortal 1.6.9 as there were some security bugs discovered in TinyPortal versions less than 1.6.6