Recovering a disaster forum, we have a fairly recent database backup, and files backup of unknown provenance. Forum is up and running, at least some of the mods are installed, but package manager and fix_packages.php show no mods installed. All mods are listed with [ Install Mod ] link displayed. Any way to fix this other than upload clean files and reinstall everything?
Set the value in the database to installed
Lainaus käyttäjältä: Kindred - kesäkuu 09, 2019, 07:06:53 AP
Set the value in the database to installed
fix_packages.php can do that as well this way you dont need to play in the database.
Lainaus käyttäjältä: Kindred - kesäkuu 09, 2019, 07:06:53 AP
Set the value in the database to installed
That's part of the problem, don't know which of the 40 or so mods are actually installed.
Lainaus käyttäjältä: Illori - kesäkuu 09, 2019, 07:33:04 AP
fix_packages.php can do that as well this way you dont need to play in the database.
fix_packages is showing me nothing, no mods installed. It lets you mark installed mods uninstalled, but doesn't show installed mods to mark installed. It's a busted forum, the db and file backups apparently came from different installs. Everything else seems to be working, except for a problem with http/https links, but we're fixing that.
So, use a clean set of files and reset all hooks
Then you don't have to worry about it
fix_packages.php has no way to know what is already installed when it is not already marked as installed, it is made to let you mark it installed or uninstalled on your own.
Lainaus käyttäjältä: Kindred - kesäkuu 09, 2019, 03:59:07 IP
So, use a clean set of files and reset all hooks
Yeah, that's what I told him, but he's trying to avoid reinstalling all the mods, and afraid of losing some mod content.
Lainaus käyttäjältä: Illori - kesäkuu 09, 2019, 04:04:27 IP
fix_packages.php has no way to know what is already installed when it is not already marked as installed, it is made to let you mark it installed or uninstalled on your own.
It doesn't display mods that are installed but marked uninstalled. It has the same problem I do, it can't determine which of the "uninstalled" mods are actually installed. Would have to be a log table for mods in the database to track mod installs/uninstalls, but there isn't. :(
yes there is such a table, but what you say is happening is because the table is not set correctly for what is installed or not. this is why fix_packages.php was created.
Missed that, it's in _log_packages, but fix_packages does not display mods that are install_state=0, so only way to fix it is to manually change it to install_state=1, and it's back to the original problem of not knowing which mods are actually installed. There are 373 rows in the forum's _log_packages, all are set to install_state=0. At least some of those mods are installed. Forum is working, I suppose he could leave it as is, long as he doesn't have to uninstall any mods in future, but that seems like a really bad idea. Only option would seem to be clean install, reinstall mods.
fix_packages.php only lists the mods found in the packages folder, nothing else.
Lainaus käyttäjältä: Sir Osis of Liver - kesäkuu 08, 2019, 11:44:21 IP
All mods are listed with [ Install Mod ] link displayed. Any way to fix this other than upload clean files and reinstall everything?
Don't take this as advice but ...what if you were to click 'install mod' on all of them - that should (in theory) set the flags correctly?
If you install a mod that's already installed, bad things will happen.
Lainaus käyttäjältä: landyvlad - kesäkuu 11, 2019, 08:32:42 IP
Lainaus käyttäjältä: Sir Osis of Liver - kesäkuu 08, 2019, 11:44:21 IP
All mods are listed with [ Install Mod ] link displayed. Any way to fix this other than upload clean files and reinstall everything?
Don't take this as advice but ... what if you were to click 'install mod' on all of them - that should (in theory) set the flags correctly?
Don't do this for reason stated above :)