Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revamp fix_packages #63

Merged
merged 2 commits into from
Sep 5, 2023
Merged

Conversation

jdarwood007
Copy link
Member

Fixes #57
Fixes #62

@jdarwood007 jdarwood007 requested a review from sbulen April 10, 2022 19:56
@jdarwood007
Copy link
Member Author

FYI I only tested this on 2.0 and 2.1. Didn't test 1.x

@sbulen
Copy link
Contributor

sbulen commented Sep 26, 2022

I don't recall seeing this request for review earlier. Sorry about that.

I'll take a look. I am not actually familiar with this tool or what it does... The one time I tried to figure it out it didn't work with php 8...

I thought this wasn't necessary for 2.1??? And, to be honest, I don't want to spend time on anything specific to 2.0, which is in security fix only mode. I'd like to focus all bandwidth on 2.1 going forward.

@DiegoAndresCortes
Copy link
Member

Some users were trying to use it on 2.1 since it’s valid, but reported it as faulty using php 8
Perhaps Sleepy forgot about this one too.

@sbulen
Copy link
Contributor

sbulen commented Sep 26, 2022

Can someone tell me what this is supposed to do? 😆

Is there a description anywhere? It's not in the code...

I think it's supposed to help you:

  • Flag packages as installed or uninstalled
  • Activate or inactivate integration hooks

Anything else?

I actually don't have any 2.0 environments to test anymore... I thought I was done with 2.0... I'm trying to build a 2.0.19 env to test this...

@jdarwood007
Copy link
Member Author

I believe that is what it was designed to do. Fix a broken package where your forum may not otherwise work.

@sbulen
Copy link
Contributor

sbulen commented Sep 27, 2022

OK, just pulled it up & I suspect a problem. I have 5 packages installed in my test environment. When I pull up the old version, it lists the 5 packages. When I pull up the new version, it lists 0 packages. No errors...

Screenshot 1 - old version (php 7.4):
old_version

Screenshot 2 - new version (php 8.0):
none_show

Screenshot 3 - 5 packages installed in pacman:
packages_installed

@sbulen
Copy link
Contributor

sbulen commented Sep 28, 2022

There is a definite issue with how it is calling the list builder. The param is not getting passed properly... isInstalled is false, so it's looking for packages with an installed value of 0.

In my simple test, they all have a value of 1, so no packages are returned.

Copy link
Contributor

@sbulen sbulen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs some tweakin'.

The list builder parameters aren't being passed properly, so packages aren't being displayed.

@jdarwood007
Copy link
Member Author

I will try to get around to it soon as I can.

@jdarwood007 jdarwood007 merged commit ff9ec1b into SimpleMachines:master Sep 5, 2023
@jdarwood007 jdarwood007 deleted the fixPackages branch September 5, 2023 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix_packages needs some tlc - deprecated create_function fix_packages.php doesn't work on PHP >= 8.0
4 participants