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


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

May 12, 2021, 05:46:06 PM

Login with username, password and session length
  • Total Posts: 192243
  • Total Topics: 20970
  • Online Today: 88
  • Online Ever: 1035
  • (November 26, 2020, 04:45:12 AM)
Users Online
Users: 1
Guests: 65
Total: 66

Author Topic: Server Migration  (Read 1990 times)

0 Members and 1 Guest are viewing this topic.

Offline Anmer

  • Jr. Member
  • **
  • Posts: 8
Server Migration
« on: November 15, 2020, 03:01:09 AM »

I have changed my hosting provider.  In doing so I started with a fresh install of SMF and TP.  The existing one had been operating since 2012 but over time minor errors had developed with version upgrades and mods.  So a clean start was needed.

All of TP was created afresh.  No data or files were imported from the existing server.

The new hosting provider gave me a temp url while I setup the forum.  Everything was setup perfectly and we tested everything before we re pointed the domain at the new server.

However, I now have a problem with TP Downloads.  I can see the files on the server and they're available for download within the forum.  But the downloads complete with empty files and errors in the Admin Log.  And if I try to upload new files they don't reach the server.

It's as if TP now doesn't recognise the new server since the url change?  But I can't find a setting to nominate the server location.

One thing I noted was that the forum directory was originally named "Forum" and then changed to "forum" (lowercase letter f).  This may be relevant but can't see where to update this for TP?

I've run SMF repair settings.

Link to my site: www.radarspotting dot com
SMF version: 2.0.17
TP version: 2.0.0
Default Forum Language: English
Theme name and version: SMF Default Theme - Curve
Browser Name and Version: Chrome Version 86.0.4240.198 (Official Build) (64-bit)
Mods installed: TP, Contact Page, NChat, Country Flags
Related Error messages:

2: opendir(/home/ccfcbasi/public_html/Forum/tp-images/thumbs): failed to open dir: No such file or directory
File: /home/ccfcbasi/public_html/forum/Sources/TPSubs.php
Line: 892

2: file_get_contents(/home/ccfcbasi/public_html/Forum/tp-downloads/1605430238Merging_SQB_Files_Final.pdf): failed to open stream: No such file or directory
File: /home/ccfcbasi/public_html/forum/Sources/TPdlmanager.php
Line: 2038

Offline tino

  • Developer
  • *
  • Posts: 2355
Re: Server Migration
« Reply #1 on: November 15, 2020, 03:47:21 AM »
If you go to the database and look for the following in tp_settings “ download_upload_path” that will probably be where the error is. There is also an image_upload_path and blockcode_upload_path in the same table which might need changing.

Offline Anmer

  • Jr. Member
  • **
  • Posts: 8
Re: Server Migration
« Reply #2 on: November 15, 2020, 06:14:00 AM »
Thank you.  Editing the paths in the DB as you suggested resolved the issue.

I'm very grateful for your help.