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

GLPI 11 - unable to list plugins (without marketplace) #18695

Open
2 tasks done
TheRoby opened this issue Jan 9, 2025 · 9 comments
Open
2 tasks done

GLPI 11 - unable to list plugins (without marketplace) #18695

TheRoby opened this issue Jan 9, 2025 · 9 comments
Assignees
Milestone

Comments

@TheRoby
Copy link

TheRoby commented Jan 9, 2025

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Version

11.0.0-dev (nightly)

Bug description

I cloned my test server to migrate it to GLPI 11, so I can start testing.
The migration seems to have gone well, but when I want to reactivate the plugins, I have an error :

Compile Error: Declaration of PluginPdfConfig::canCreate() must be compatible with CommonGLPI::canCreate(): bool
In /var/www/glpi/plugins/pdf/inc/config.class.php(39)
#0 {main}

My server does not have internet access. So I do not use the marketplace.

if I click on marketplace I have the list of plugins (and a message to say that I don't have internet) and it is indicated that the majority of plugins are not compatible with GLPI 11 ;)

Image

Relevant log output

Page URL

/front/plugin.php

Steps To reproduce

  1. have v10 plugins in the plugins directory
  2. go to configuration / plugins

Your GLPI setup information

No response

Anything else?

thank you :)

@trasher
Copy link
Contributor

trasher commented Jan 9, 2025

GLPI 11 is currently in alpha, most of plugins are not compatible; this is not a GLPI issue.

@trasher trasher closed this as not planned Won't fix, can't repro, duplicate, stale Jan 9, 2025
@trasher
Copy link
Contributor

trasher commented Jan 9, 2025

Maybe I misunderstood the issue... Compatible or not; plugins are correctly listed from marketplace view, but not legacy one.
So I reopen.

But anyway, you can use marketplace directory/view without an internet access, a warning is indeed displayed but you should be able to manage your plugins this way.

In the future, the legacy UI will certainly be removed.

@trasher trasher reopened this Jan 9, 2025
@trasher trasher added this to the 11.0.0 milestone Jan 9, 2025
@cconard96
Copy link
Contributor

In the future, the legacy UI will certainly be removed.

I thought the original UI was staying. GLPI 11 adds the ability to block the marketplace. If the current UI gets removed, I think the marketplace UI will need to be able to work in an offline mode where it only shows the present plugins without fetching anything from an external server.

@trasher
Copy link
Contributor

trasher commented Jan 9, 2025

Since the legacy UI use specific code, this is more leagacy code to maintain, and we try to avoid that. That's currently not deprecated.
Anyway, that should continue working, and it's currently indeed broken on v11.

@TheRoby
Copy link
Author

TheRoby commented Jan 10, 2025

Maybe I misunderstood the issue... Compatible or not; plugins are correctly listed from marketplace view, but not legacy one. So I reopen.

But anyway, you can use marketplace directory/view without an internet access, a warning is indeed displayed but you should be able to manage your plugins this way.

In the future, the legacy UI will certainly be removed.

Hi,
Are you interested in bug reports on GLPI v11 or is it too early? (menu not working when minimized, printer page counters not displaying anything)
Thanks again :)

@trasher
Copy link
Contributor

trasher commented Jan 10, 2025

Yes, you can report issues on GLPI 11, just ensure you're using a recent nightly build (the latest one if possible).

Thanks!

@SebSept
Copy link
Contributor

SebSept commented Jan 15, 2025

The problem can also be reproduced this way :

  • download the pdf plugin in plugins directory
  • install the plugin in terminal ./bin/console plugin:install pdf
  • change the requirements in plugin code
  • mark the plugin activated in database (state = 1)

I'm working to prevent this.

@SebSept
Copy link
Contributor

SebSept commented Jan 15, 2025

@TheRoby have you made changes in your plugin code ? can you tell us what is the current state of the plugin in database (glpi_plugins table) ?

@TheRoby
Copy link
Author

TheRoby commented Jan 15, 2025

No, I didn't touch the code
Now, I have all the plugins that I use with my GLPI 10 :

Image

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

No branches or pull requests

4 participants