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

Cannot create fields in block #215

Closed
Vozzd opened this issue Nov 17, 2017 · 2 comments
Closed

Cannot create fields in block #215

Vozzd opened this issue Nov 17, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@Vozzd
Copy link

Vozzd commented Nov 17, 2017

  1. When I try to create field in a block, after applying field name and type, nothing happens - only blank page opens. In an apache log files I see php error in field.inc.php file:
    PHP Fatal error: Class 'PluginFieldsComputertest' not found in /var/www/html/plugins/fields/inc/field.class.php on line 117, referer: http://glpi-test/plugins/fields/front/container.form.php?id=1
  2. When I try to remove plugin from GLPI, this procedure stops on page with "Mysql tables removing". In this case I see in apache log:
    PHP Fatal error: Call to a member function query() on null in /var/www/html/plugins/fields/inc/container.class.php on line 474, referer: http://glpi-test/front/plugin.php

In my case I use 1.70 version with GLPI 9.2.

cedric-anne added a commit to cedric-anne/glpi-plugin-fields that referenced this issue May 7, 2018
@cedric-anne
Copy link
Contributor

I take a look at the code and it seems that the plugin is not able to create some files. Can you check if apache user is able to create files inside /var/www/html/files/_plugins/fields/front/ and /var/www/html/files/_plugins/fields/inc/ ?

For the second problem, I made a fix on PR #246

@cedric-anne cedric-anne added the bug label May 7, 2018
@cedric-anne cedric-anne self-assigned this May 7, 2018
@cedric-anne cedric-anne added this to the 1.8.0 milestone May 14, 2018
@cedric-anne cedric-anne modified the milestones: 1.8.0, 1.7.1, 1.7.2 May 24, 2018
@cedric-anne
Copy link
Contributor

Hi,

Some fixes has been made to recreate missing files, so the first issue should be solved.

A fix has been made in PR #246 for the second issue.

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants