Hello everyone!!
I have been using your beautiful software on my original site and I am very happy with version 2.1.4
and there are absolutely no issues running it.
But, I recently inherited an old Forum which is running on version 2.0.19 and I want to upgrade it to v 2.14
I did everything required from the recommendations here, and even more, however, I keep receiving this message when I call 'upgrade.php' from the website root:
QuoteSettings.php was not found where it was expected: /home/user/mysite.com/forum/Settings.php! Make sure you have uploaded ALL files from the upgrade package to your forum's root directory. The upgrader cannot continue.
On any of the Upgrades Packages there is a file named 'settings.php'
'settings.php' is on the website root, not on the upgrade package.
And I have tried the large upgrade package as the upgrade patch...none worked
The Patch can be read from SMF site/Admin/Packages however, it does not allow to 'INSTALL'
And I have done everything required to run upgrade, as:
1-Uploaded all files from upgrade to root folder 'forum'
2-Changing the CHMOD of all Directory Folders to 775 and Files on 664
3-And I have done all needed backup on MySQL DB plus on FTP of root.
I have exhausted all possibilities, as to add 'settings.php' on the upgrade folder (so it can "find it")...and not worked.
I have tried with 'webinstall.php'...not worked.
I have uploaded upgrade files into a Folder named 'forum' directly above website root (directly on 'user', and not worked...as it did not worked under website root...
I have looked for a Package Upgrade that directly upgrades 2.0.19 to 2.14 and it does not exist.
So, please I need help here from your higher expertise on upgrades.
Thanks very much!!
Quote from: Ufopolitics on August 10, 2024, 11:20:55 AMI have looked for a Package Upgrade that directly upgrades 2.0.19 to 2.14 and it does not exist.
There won't be one, because it would literally be 'the entire platform'.
It sounds like you've put the upgrade files in a different folder to the existing install? You have to upload them *over the top* of the existing files and it upgrades in-place.
Quote from: Arantor on August 10, 2024, 11:33:25 AMIt sounds like you've put the upgrade files in a different folder to the existing install? You have to upload them *over the top* of the existing files and it upgrades in-place.
Hello Arantor!,
And thanks for your fast response!
Yes, I have set the upgrade files even on a folder named "above", (to be alphabetically above attachments, avatars and cache folders)...to be set right after the "mywebsitedotcom"
It stills gives me the same error message, literally saying it is missing the 'settings.php' file.
Thanks
EDIT 1: And when I call 'upgrade-helper.php' it responds:
QuoteNo direct access!
Quote from: Ufopolitics on August 10, 2024, 12:02:30 PMYes, I have set the upgrade files even on a folder named "above",
That's not correct, though.
You literally have to *replace the files*, they can't be in a different directory.
Like, the Sources folder in the upgrade zip has to *replace* the Sources folder you currently have, the Themes folder too, index.php too... the whole lot.
Quote from: Arantor on August 10, 2024, 12:10:45 PMQuote from: Ufopolitics on August 10, 2024, 12:02:30 PMYes, I have set the upgrade files even on a folder named "above",
That's not correct, though.
You literally have to *replace the files*, they can't be in a different directory.
Like, the Sources folder in the upgrade zip has to *replace* the Sources folder you currently have, the Themes folder too, index.php too... the whole lot.
Thanks Arantor,
So, what you are saying is that I should leave all Upgrade Files on the same Original directory Folder named: 'smf_2-1-4_upgrade'?
I already tried that, actually it was the first attempt, and because it is alphabetically set-start with "(s)mf" it will not be "over the top".
Still gives me same error:
QuoteSettings.php was not found where it was expected: /home/username/myforum/smf_2-1-4_upgrade/Settings.php! Make sure you have uploaded ALL files from the upgrade package to your forum's root directory. The upgrader cannot continue.
Thanks
No... extract all files from the upgrade package into your roit forum directory. OVERWRITE all existing files.
Sources, Themes, everything except settings.php gets overwritten
Have a look at the following link on how to perform a manual upgrade.
Upgrading SMF (https://wiki.simplemachines.org/smf/Upgrading)
Quote from: Doug Heffernan on August 10, 2024, 12:41:02 PMHave a look at the following link on how to perform a manual upgrade.
Upgrading SMF (https://wiki.simplemachines.org/smf/Upgrading)
Thanks Doug,
I have read that page many times...the only thing I have not tried is the CLI (Command Line Interface) approach, and honestly, I want to leave that option for the last one, when I exhaust all regular upgrading procedures.
Thanks
Quote from: Kindred on August 10, 2024, 12:40:17 PMNo... extract all files from the upgrade package into your roit forum directory. OVERWRITE all existing files.
Sources, Themes, everything except settings.php gets overwritten
Thanks Kindred!!
Wow!, that approach is quite "radical"...not to call it a "bazooka approach"... :)
This site has over 80,000 Members and over 130,000 Topics...it is quite large.
So, I do not want to overwrite some files which are hooked/dependent on the actual site, like attachments, that I have thousands.
Plus, I do not want to overwrite 'Sources' Folder which have all connections to MySQL DB plus all internal site spec's.
I want an Upgrade Process which "smoothly" run and upgrade of All data, file by file and leave it with all existing values.IMHO, doing an overwriting on all existing files on the root would be like a "from scratch" approach.
Anyways thanks for your help!
Edit 1: I do not have Mods...so I do not worry about upgrade doing some changes on that field.
Well that's exactly what the large upgrade does: it only contains source files, so no attachments are overwritten. Users and messages are all in the database.
But if you are uncertain, I would recommend you first test the entire process on a test copy of the site...
Quote from: Ufopolitics on August 10, 2024, 01:17:39 PMWow!, that approach is quite "radical"...not to call it a "bazooka approach"... :)
No, it's literally the only supported way SMF has ever had in its 20 year history to do major upgrades (1.0 -> 1.1, 1.1 -> 2.0, 2.0 -> 2.1) because they're too large to do in the package manager, and it's what I outlined the first two times I said it...
Quote from: Ufopolitics on August 10, 2024, 01:17:39 PMPlus, I do not want to overwrite 'Sources' Folder which have all connections to MySQL DB
I don't know where you got that information, but it's not correct. The only file that holds the database details needed for the forum to connect to the database is the Settings.php file.
Quote from: Ufopolitics on August 10, 2024, 01:17:39 PMIMHO, doing an overwriting on all existing files on the root would be like a "from scratch" approach.
That's not correct either. All files and fodlers, besides the Settings.php and Settings_bak.php files must get overwritten in order for the upgrade to work.
It looks like you have a lot of misconceptions and wrong ideas about the upgrade.
Quote from: Ufopolitics on August 10, 2024, 01:17:39 PMIMHO, doing an overwriting on all existing files on the root would be like a "from scratch" approach.
Yes, that's almost the point. The upgrade packages contains all the replacement files (since nearly every file changed) and the reason it doesn't include Settings.php (the error you're having) is explicitly because you should be using the one you already have, by way of putting the rest of the new files on top of the old ones.
I mean, I'm only one of the people who actually wrote thousands of lines of code for 2.1, I'm sure I have no idea what I'm talking about at this point...
if you are worried about something going wrong, you should do a backup of the files and database before you do anything so they can be restored if necessary.
Hello to all,
Well, my bad, I owe you all a big-time apology!!
Specially
@Kindred and
@Arantor and
@Doug HeffernanI completely missed the part "
overwrite existing files"
Tomorrow I will do that op and let you know how it went,
Many thanks to all for your very fast and wise responses!!
Hello All,
I have been trying to upgrade for about 145 minutes...and keeps getting stuck at same percentage (72%) with some MySQL DB issues at table 'calendar' with 'eventDate'...and so, I repair that table on the MySQL Server...it did not have any 'end Dates' as also no 'eventDate'...
fixed that part and passed all the way to COMPLETED at 100% (the meter was all green).
But now, when I try to login it just shows the message of maintenance, without any login window... :(
Thanks in advance
Settings.php -
$maintenance = 0;
That will take it out of maint mode.
Quote from: Sir Osis of Liver on August 11, 2024, 03:46:00 PMSettings.php -
$maintenance = 0;
That will take it out of maint mode.
Thanks very much, yes, I have found that out...by reading the settings and settings BAK php files...
I am now FTP whole site then I will transfer repaired files back
Thanks!
Well, thanks to all!!
Forum is updated to 2.1.4, and is running excellent.
All data preserved!
Now I will be redesigning it all...adding mods and themes that I have from other site...(piece of cake!)
It looks wonderful!
Regards to all and I will mark Topic Solved now