ericferon / glpi-archimap

GLPI plugin for drawing architecture maps (based on draw.io)
GNU General Public License v2.0
19 stars 10 forks source link

Blank screen while loading/edit diagram #63

Closed psad73 closed 2 years ago

psad73 commented 2 years ago

GLPI 10.0.0, PHP7.4.29, Firefox 100 blank screen if trying ti load/edit a diagram. the dev/debug browser console provides the following output optimus-screenshot-023 optimus-screenshot-024 optimus-screenshot-025 Setting up the "key" field in plugin API config (for example "app_token", or any other value) results in optimus-screenshot-026

tototey commented 2 years ago

image

Same issue, debug mode show this warning before it all goes blank GLPI 10.0.1, php 7.4.28, firefox esr 91.9.1

cmoreno038 commented 2 years ago

*** PHP Warning (2): Declaration of PluginArchimapDiagram::showForm(CommonGLPI $item, $options = Array) should be compatible with CommonDBTM::showForm($ID, array $options = Array) in /var/www/html/glpi/marketplace/archimap/inc/diagram.class.php at line 77 Backtrace : inc/autoload.function.php:348 include_once() : glpi_autoload() : spl_autoload_call() src/DbUtils.php:406 is_subclass_of() inc/db.function.php:149 DbUtils->getItemForItemtype() src/CommonGLPI.php:362 getItemForItemtype() marketplace/archimap/inc/graph.class.php:281 CommonGLPI->addStandardTab() src/CommonGLPI.php:314 PluginArchimapGraph->defineTabs() src/Toolbox.php:3387 CommonGLPI->defineAllTabs() ajax/common.tabs.php:95 Toolbox::getAvailablesTabs()

imagen

Luiginoo007 commented 2 years ago

I have also blank - GLPI 9.5.6

I tried to reinstall plugin (version 3.2.7.) , and I am getting missing php file

sudo -u wwwrun php ../glpi/bin/console glpi:plugin:install Processing plugin "archimap"... PHP Warning: include(/usr1/glpi/plugins/archimap/ajax/copystylestodb.php): failed to open stream: No such file or directory in /usr1/glpi/plugins/archimap/hook.php on line 78 PHP Stack trace: PHP 1. {main}() /usr1/glpi/bin/console:0 PHP 2. Glpi\Console\Application->run() /usr1/glpi/bin/console:102 PHP 3. Glpi\Console\Application->doRun() /usr1/glpi/vendor/symfony/console/Application.php:147 PHP 4. Glpi\Console\Application->doRunCommand() /usr1/glpi/vendor/symfony/console/Application.php:271 PHP 5. Glpi\Console\Application->doRunCommand() /usr1/glpi/inc/console/application.class.php:249 PHP 6. Glpi\Console\Plugin\InstallCommand->run() /usr1/glpi/vendor/symfony/console/Application.php:1000 PHP 7. Glpi\Console\Plugin\InstallCommand->execute() /usr1/glpi/vendor/symfony/console/Command/Command.php:255 PHP 8. Plugin->install() /usr1/glpi/inc/console/plugin/installcommand.class.php:134 PHP 9. plugin_archimap_install() /usr1/glpi/inc/plugin.class.php:741 PHP Warning: include(): Failed opening '/usr1/glpi/plugins/archimap/ajax/copystylestodb.php' for inclusion (include_path='/usr1/glpi/plugins/barcode/vendor/pear/archive_tar:/usr1/glpi/plugins/barcode/vendor/pear/console_getopt:/usr1/glpi/plugins/barcode/vendor/pear/image_barcode:/usr1/glpi/plugins/barcode/vendor/pear/pear:/usr1/glpi/plugins/barcode/vendor/pear/structures_graph:/usr1/glpi/plugins/barcode/vendor/pear/xml_util:.:/usr/share/php7:/usr/share/php7/PEAR') in /usr1/glpi/plugins/archimap/hook.php on line 78 PHP Stack trace: PHP 1. {main}() /usr1/glpi/bin/console:0 PHP 2. Glpi\Console\Application->run() /usr1/glpi/bin/console:102 PHP 3. Glpi\Console\Application->doRun() /usr1/glpi/vendor/symfony/console/Application.php:147 PHP 4. Glpi\Console\Application->doRunCommand() /usr1/glpi/vendor/symfony/console/Application.php:271 PHP 5. Glpi\Console\Application->doRunCommand() /usr1/glpi/inc/console/application.class.php:249 PHP 6. Glpi\Console\Plugin\InstallCommand->run() /usr1/glpi/vendor/symfony/console/Application.php:1000 PHP 7. Glpi\Console\Plugin\InstallCommand->execute() /usr1/glpi/vendor/symfony/console/Command/Command.php:255 PHP 8. Plugin->install() /usr1/glpi/inc/console/plugin/installcommand.class.php:134 PHP 9. plugin_archimap_install() /usr1/glpi/inc/plugin.class.php:741 Plugin "archimap" has been installed and can be activated.

I found out that file copystylestodb.php is available in previous version, but in folder scripts when I try to create missing file or try to install previous version I have another error with missing variable

Processing plugin "archimap"... PHP Notice: Undefined variable: datas in /usr1/glpi/plugins/archimap/ajax/copystylestodb.php on line 44

at the end plugin is installed but blank page as all above

zakharov69 commented 2 years ago

Same error. Where are the charts themselves stored?

jdahim commented 2 years ago

I have also blank page with GLPI 10.0.2 PHP 7.4 when I click on Drawing Pane and also in Diagram menu. Error before showing blank page: image

image

zakharov69 commented 2 years ago

Does anyone know how to get schemas out of this plugin? It is necessary to refuse the plugin, since such problems.

user9931 commented 2 years ago

any hope to get it working? same problem after moving to glpi 10. Tried to do clean install of latest glpi 10 and not working also... (windows + xampp)

ericferon commented 2 years ago

Sorry, guys, for the long delay : I was not receiving issue notifications for months. I hope that this is now solved (the GLPI 10 incompatibility with plugin's version 3.2.8 and my notification problem :-). K.r,

jdahim commented 2 years ago

Still having same issue "Blank page" with GLPI 10.0.2 PHP 7.4.30 plugin version 3.2.9 when clicking on Drawing Pane. image