The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
Update path from 4.3.10 to 4.3.26 - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23) +--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26) +--- Thread: Update path from 4.3.10 to 4.3.26 (/showthread.php?tid=1306) |
Update path from 4.3.10 to 4.3.26 - gerald - 01-17-2019 I didn't update my local UserSpice installation for some time and I'm still running 4.3.10 on a localhost here. Is there a direct upgrade path to 4.3.26 or do I have to apply all 11 patches you published since that on updates page? Thanks RE: Update path from 4.3.10 to 4.3.26 - mudmin - 01-17-2019 (01-17-2019, 09:55 AM)gerald Wrote: I didn't update my local UserSpice installation for some time and I'm still running 4.3.10 on a localhost here. Have you edited any of the files in the users or usersc folder? RE: Update path from 4.3.10 to 4.3.26 - gerald - 01-17-2019 Yes, I have edited join.php, join2.php, admin_user.php and admin_users.php. RE: Update path from 4.3.10 to 4.3.26 - mudmin - 01-17-2019 Oh. Fantastic. You know which files. So copy those 4 files to usersc/ with the same filename. download https://github.com/mudmin/UserSpice4/archive/master.zip Unzip it. Delete the install folder, the root indext.php and users/init.php and copy everything into the users and usersc folder. Run update.php Now, since the files you modified are older versions, there may be a few of the includes (especially on join) that you will have to update the path. If you look at the new versions of those files, you'll see that they have a more dynamic path that will work regardless of where the file is placed. I hope I'm making sense with that. The one thing you'll definitely have to change on those 4 is the init file will have to be changed from 'init.php' to '../users/init.php' If any of that doesn't make sense PLEASE let me know. The other good thing is you won't have to worry about those files for future upgrades. RE: Update path from 4.3.10 to 4.3.26 - gerald - 02-05-2019 Thanks for your help mudmin. After applying the suggested steps, the update looks quite ok. The only strange thing is this message in the admin dashboard which doesn't go away: Quote:Warning! Your database is out of date. Please click here to get the latest update. Failure to do so, could cause system instability. Any hints on what to do about that? ps: As now the 4.4 branch is out, would the update to latest version work the same way? RE: Update path from 4.3.10 to 4.3.26 - Brandin - 02-08-2019 There is potentially an update that is not applied in your database. Check users/includes/migrations.php to see which ones are not in the database. The 4.4 version clears the update.php file. RE: Update path from 4.3.10 to 4.3.26 - gerald - 02-11-2019 (02-08-2019, 11:04 PM)Brandin Wrote: There is potentially an update that is not applied in your database. Check users/includes/migrations.php to see which ones are not in the database. Thanks for the hint, I want to fix that before uprading to 4.4 Migrations array shows this: PHP Code: $migrations = array( How can I find out which updates are missing, and how do I apply them? RE: Update path from 4.3.10 to 4.3.26 - mudmin - 02-11-2019 There's nothing really to fix. All the updates are cumulative and the migrations are in the database more as a convenience than a necessity. If you run the update.php that comes with 4.3.26, you'll get all the 4.3.x updates. Then when you go to 4.4, run the runme.php AND the update.php and you'll be good to go. |