All mods shown as uninstalled, but they are

Started by Sir Osis of Liver, June 08, 2019, 11:44:21 PM

Previous topic - Next topic

Sir Osis of Liver

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?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Kindred

Set the value in the database to installed
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Illori

Quote from: Kindred on June 09, 2019, 07:06:53 AM
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.

Sir Osis of Liver

Quote from: Kindred on June 09, 2019, 07:06:53 AM
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.

Quote from: Illori on June 09, 2019, 07:33:04 AM
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.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Kindred

So, use a clean set of files and reset all hooks
Then you don't have to worry about it
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Illori

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.

Sir Osis of Liver

Quote from: Kindred on June 09, 2019, 03:59:07 PM
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.

Quote from: Illori on June 09, 2019, 04:04:27 PM
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. :(
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Illori

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.

Sir Osis of Liver

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.


Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Illori

fix_packages.php only lists the mods found in the packages folder, nothing else.

landyvlad

Quote from: Sir Osis of Liver on June 08, 2019, 11:44:21 PM
  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?
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Sir Osis of Liver

If you install a mod that's already installed, bad things will happen.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

landyvlad

Quote from: landyvlad on June 11, 2019, 08:32:42 PM
Quote from: Sir Osis of Liver on June 08, 2019, 11:44:21 PM
  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  :)
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Advertisement: