Advertisement:

Author Topic: Wrong Path for the update!  (Read 2257 times)

Offline DarkTexas

  • Jr. Member
  • **
  • Posts: 171
  • Gender: Male
Wrong Path for the update!
« on: October 14, 2015, 06:38:15 AM »
Hi, I wanted to upgrade my test-forums.

I got this error when running upgrade.php



which means, SMF means  C:\Inetpub\vhosts\glj-ps2.de\forum.glj-ps2.de\avatars\rez\  is the path to the forums.. but it's not.

The Path is D:\inetpub\vhosts\gljclan.de\dev.gljclan.de\ where can I change that setting? C:\Inetpub\vhosts\glj-ps2.de\forum.glj-ps2.de\avatars\rez\  was the Path on the old server before the export of the working/main forums weeks ago.

Regards,

Chris

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: Wrong Path for the update!
« Reply #1 on: October 14, 2015, 06:59:36 AM »
The problem is that SMF stores the themes paths in the database and it uses them to upgrade. Long story short, this means that your "source" database must belong to a FULLY FUNCTIONAL forum before you can launch the upgrade.
So load 2.0.10 files in that folder (instead of the 2.1 files), load and run repair_settings and fix all paths, delete everything except Settings.php and then load the 2.1 files and the upgrade.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline DarkTexas

  • Jr. Member
  • **
  • Posts: 171
  • Gender: Male
Re: Wrong Path for the update!
« Reply #2 on: October 14, 2015, 07:18:10 AM »
The problem is that SMF stores the themes paths in the database and it uses them to upgrade. Long story short, this means that your "source" database must belong to a FULLY FUNCTIONAL forum before you can launch the upgrade.
So load 2.0.10 files in that folder (instead of the 2.1 files), load and run repair_settings and fix all paths, delete everything except Settings.php and then load the 2.1 files and the upgrade.


Ok, just did.
Removed everything, just the settings.php were there.
Loaded the Upgrade files in the folder, same error >.<


Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,026
Re: Wrong Path for the update!
« Reply #3 on: October 14, 2015, 07:33:36 AM »
did you run repair_settings.php?

Offline DarkTexas

  • Jr. Member
  • **
  • Posts: 171
  • Gender: Male
Re: Wrong Path for the update!
« Reply #4 on: October 14, 2015, 09:09:13 AM »
did you run repair_settings.php?

of course.

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,026
Re: Wrong Path for the update!
« Reply #5 on: October 14, 2015, 09:14:12 AM »
do you use a custom avatar's folder? if so that path does not get corrected with repair_settings.php. you would need to fix that manually in the database.