cconard96 / glpi-screenshot-plugin

Take a screenshot or screen recording directly from GLPI and attach it to a ticket, change or problem
GNU General Public License v2.0
5 stars 0 forks source link

Can't install plugin #14

Closed Cr2zyy closed 2 years ago

Cr2zyy commented 3 years ago

Hi, im trying to install this plugin, but when i click in the install button, nothing happens, the loading icon appears than i go back to "install". Why is that? I'm using GLPI 9.5, lastet.

cconard96 commented 3 years ago

Can you verify that your GLPI server is using HTTPS? Are there any entries in files/_logs/php-errors.log or the sql-errors.log file from around the time you tried installing.

Cr2zyy commented 3 years ago

Hello,

Yes, i get an error and i'm using HTTPS:

[2021-01-10 14:48:47] glpiphplog.ERROR: Plugin::getInfo() in /var/www/html/site.com.br/web/inc/plugin.class.php line 1473 plugin_version_screenshot method must be defined! {"user":"37@b:u:user:1"}

cconard96 commented 3 years ago

Looks like GLPI cannot read the setup.php file in the plugin folder. Can you check it exists and verify the permissions on it (and the rest of the plugin folder).

Cr2zyy commented 3 years ago

This plugin is the only one im having trouble, the others installed just fine even with no setup.php file in the plugin folder. But there is a setup.php file inside screenshot folder.

cconard96 commented 3 years ago

All plugins need a setup.php file in their folders (like screenshot/setup.php) or GLPI will complain with errors similar to what you saw. When I was talking about checking permissions, I meant specifically on the "plugin/screenshot" or "marketplace/screenshot" folder and the files within it.

Cr2zyy commented 3 years ago

There is a setup.php file in folder, and permissions are the same than the others plugins. This is the only one i'm having trouble to install, don't know why.

Cr2zyy commented 3 years ago

I'm having this error now in sql error log, when i click to install

*** MySQL query error: SQL: INSERT INTO glpi_profilerights (id, profiles_id, name, rights) VALUES (NULL, '1', 'plugin_screenshot_recording', '0') Error: Column 'id' cannot be null

akhlaaqbadulla commented 3 years ago

i am having the same trouble on glpi 9.5.2 it works fine but it wont install in 9.5.3. i am in http and having the same errors. i tried even even tried to give it superuser right it still won't install.

cconard96 commented 3 years ago

Using the MySQL command line or your preferred DB tool, please run DESCRIBE glpi_profilerights and verify it says auto_increment in the Extra column for the ID field. This shouldn't have anything to do with the plugin, bit maybe something else broke the auto increment on the table.

If the auto increment is missing, please list the other plugins and versions used. If you know of any differences in plugin versions from the working instance to the broken one, that will also be helpful.

akhlaaqbadulla commented 3 years ago

Everything seem fine with the database and i even ran php bin/console db:check just to be sure and there is no issue. Also my instance is a clean install on a new virtual machine. As i mentioned earlier my production instance is version 9.5.2 and there is no issue with the screenshot plugins.On the 9.5.3 instance i have installed several plugins and only screenshot is not installing.

akhlaaqbadulla commented 3 years ago

Well it’s my lucky day.

i was able to install it with these commands.

./bin/console glpi:plugin:install Screenshot
./bin/console glpi:plugin:activate Screenshot

Found it here: Glpi doc

Not what i expected but Atleast it’s installed now i need to find out how and why.

paccojp commented 3 years ago

Estava com problema na instalação utilizando o Mozila Firefox, mais se você utilizar o Chorme (adicionando o https:// antes, você consegue instalar e utilizar. Se você for para o Mozila ele vai aparecer como instalado, mas quando clicar em screenshort não vai funcionar, somente no chrome.

DamBn commented 3 years ago

Quel est le format d'enregistrement des captures vidéos ?

cconard96 commented 3 years ago

Quel est le format d'enregistrement des captures vidéos ?

Webm