This extension is mainly supported in an external venue: BlueSpice Community Forum. If you need help, you should post there, and not on the talk page. |
Extension talk:Cognitive Process Designer/Flow
I am seeing this error in the console, for further, I enable the debug mode and visit the link it shows me this error, right now Cognitive Process Designer diagram isn't shows, the loading icon continuously appearing over the page.
[62c7061bdcc4a3cb3550d53d] /mediawiki-server/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector Error: Class 'MWStake\MediaWiki\Component\ManifestRegistry\ManifestAttributeBasedRegistry' not found
Backtrace:
from /var/www/html/mediawiki-server/extensions/CognitiveProcessDesigner/src/CpdInspectorPluginModules.php(13)
I have installed mediaWiki with version 1.39 LTS together with the extension "Page Forms" and the "Cognitive Process Designer".
The wiki of the Cognitive Process Designer says that you should enter this command in the terminal for the background service:
php extensions/CognitiveProcessDesigner/vendor/mwstake/mediawiki-component-processmanager/maintenance/processRunner.php maintenance/Maintenance.php --wait
Unfortunately, I get the following errors when I do this:
/usr/bin/php /var/www/html/mediawiki/extensions/CognitiveProcessDesigner/vendor/mwstake/mediawiki-component-processmanager/maintenance/processRunner.php maintenance/Maintenance.php --wait
[f84ac3ccf60395c0b4824c20] [no req] Error: Class "MWStake\MediaWiki\Component\ProcessManager\ProcessManager" not found
Backtrace:
from/var/www/html/mediawiki/extensions/CognitiveProcessDesigner/vendor/mwstake/mediawiki-component-processmanager/maintenance/processRunner.php(31)
/var/www/html/mediawiki/maintenance/includes/MaintenanceRunner.php(309): ProcessRunner->execute() /var/www/html/mediawiki/maintenance/doMaintenance.php(85): MediaWiki\Maintenance\MaintenanceRunner->run()
/var/www/html/mediawiki/extensions/CognitiveProcessDesigner/vendor/mwstake/mediawiki-component-processmanager/maintenance/processRunner.php(157): require_once(string)
{main}
I have called the given command. I expect the background service to start.
Thank you for this feedback! CPD is currently reworked and we hope to release a new version end of Q2. For your problem please use our forum, which provides a higher attention by the developers https://community.bluespice.com/ RH
Hello and thanks for your hint! We had a second look and found a bug related to this problem. We plan to release the bugfix end of april 2024.
Since then you could also fix it by yourself if you add these two lines to the extension.json file in the Cognitive Process Designer extension:
"load_composer_autoloader": true,
"callback": "mwsInitComponents",
and run maintenance/update.php.
We hope, we could help you with this.
Installed REL1_39 branch versions of PageForms and CognitiveProcessDesigner
$ docker-compose exec mediawiki php maintenance/update.php
Fatal error: Uncaught ExtensionDependencyError: CognitiveProcessDesigner is not compatible with the current installed version of PageForms (5.4), it requires: ~5.6.
Extension:PageForms has declared
Compatibility policy Master maintains backward compatibility.
Please do not use REL1_39
of that extension, but master
.
Hi, I installed 2.2-alpha on my private wiki running on MW1.39. Everything else seems working but when I'm trying to save a diagram I'm getting "Failed posting diagram elements to wiki" popup error so is there any bug or something and how to fix it? Please note that I'm not using composer or Semantic MW.
I can confirm that file upload is enabled with SVG format.
Thank you
Hi,
I'm using MW 1.35 and regularly installed the PageForms and CPD. I can successfully edit the graph, but I could not save the model. It keeps on showing "Saving process..." but could not save. How could I solve this ?
I found that it does save all the nodes after saving but I cannot load the graph. The frontend in 1.35 doesn't have the "Load" Option, it just prompts the ID's name and after I entered the ID (name) , it returns me a new page. But every time I add new nodes in the blank page, these nodes still get saved as pages.
I have exactly the same issue - have you found a solution to this issue?
Could you please open the browsers development tools (F12) and check if there are any errors reported to the "Console"?
Sure. When I enter the Special:Cognitive_Process_Designer_Edit page, there are 2 warnings :
This page is using the deprecated ResourceLoader module "jquery.ui". Please use OOUI instead.
JQMIGRATE: jQuery.fn.delegate() is deprecated
And after I enter the name "test" in the search bar , an error occured:
VM283:107 Uncaught TypeError: Cannot read property '0' of null
at Object.mapDiagramWikiToXml (<anonymous>:107:340)
at <anonymous>:125:97
at fire (load.php?lang=en&modules=ext.cognitiveProcessDesignerEdit.bpmn-js|jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=vector&version=10mw1:519)
at Object.fireWith [as resolveWith] (load.php?lang=en&modules=ext.cognitiveProcessDesignerEdit.bpmn-js|jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=vector&version=10mw1:520)
at Object.deferred.<computed> [as resolve] (load.php?lang=en&modules=ext.cognitiveProcessDesignerEdit.bpmn-js|jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=vector&version=10mw1:523)
at Object.<anonymous> (<anonymous>:141:391)
at fire (load.php?lang=en&modules=ext.cognitiveProcessDesignerEdit.bpmn-js|jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=vector&version=10mw1:519)
at Object.fireWith [as resolveWith] (load.php?lang=en&modules=ext.cognitiveProcessDesignerEdit.bpmn-js|jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=vector&version=10mw1:520)
at done (load.php?lang=en&modules=ext.cognitiveProcessDesignerEdit.bpmn-js|jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=vector&version=10mw1:602)
at XMLHttpRequest.<anonymous> (load.php?lang=en&modules=ext.cognitiveProcessDesignerEdit.bpmn-js|jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=vector&version=10mw1:605)
Can you also provide the server response that leads to this issue= It should be some call to api.php
Hi!
I am having the same problem (stuck at "saving process"). The development console says Uncaught TypeError: this.savingProgressDialog is null. When I press the edit button, I also get an "Uncaught TypeError: ext.cpd is undefined" error. Can someone help me out here, please?
Thank you in advance!
Attila
Hi Attila,
Such problem should not appear with the latest extension code, could you try to update it please?
Hi!
Thank you for trying to help me! I updated the extension, now I have:
CognitiveProcessDesigner | 2.1-alpha (2db6616)20:07, 2023 January 10 |
However, the problem persists, I am getting the following error messages:
[Log] JQMIGRATE: Migrate is installed with logging active, version 3.3.2 (load.php, line 658)
[Log] Exception in module-execute in module ext.cognitiveProcessDesigner.editor: (load.php, line 2)
[Warning] ReferenceError: Can't find variable: bs (load.php, line 2)
(anonymous function) — load.php:36:194
runScript — load.php:13:289
execute — load.php:14:888
doPropagation — load.php:7:400
(anonymous function) — load.php:24:368
[Error] TypeError: undefined is not an object (evaluating 'new ext.cpd.ProgressBarDialog')
init (load.php:23:923)
editBPMN (load.php:33:443)
(anonymous function) (load.php:36:110)
dispatch (load.php:583:266)
[Warning] LoadBPMNFromWiki failed:[object Object] (load.php, line 32)
[Error] TypeError: null is not an object (evaluating 'this.savingProgressDialog.open')
saveBPMN (load.php:33:751)
(anonymous function) (load.php:33:327)
dispatch (load.php:583:266)
I have the same problem, MediaWiki 1.39.1 and tried different versions of CognitiveProcessDesigner, right now I use:
Version 2.2-alpha, REL1_39, 2023-01-12T12:05:01, e41a11a
Hi,
I tried
CognitiveProcessDesigner | 2.1-alpha (13aa826)20:07, 2023 January 17 |
to no avail, the exact same symptoms arose :(
Hi!
Is there any update on this problem? I keep trying, installing every new version that appears on github :(
Hi Attila!
I'm very sorry for such a late answer, I lost that issue from my scope for a while. I thought that I'll receive a notification about any answer, but I had it turned off in my preferences... Now I fixed that.
Finally I found the issue you described and fixed it. Please update to extension version 2.0.8 and check if it works.
Update: if you have MediaWiki version 1.36 or above - then just use corresponding extension REL1_XX branch.
For example, if you use MediaWiki 1.39 - branch REL1_39 should be used.
Hi AKulbii!
Thank you, I tried 2.0.8. Now the extension starts saving (got a progress bar), then a message shows up that says:
Error occurred! Failed uploading SVG
The console drops this:
error: {code: "verification-error", info: "The XML in the uploaded file could not be parsed.", details: ["uploadinvalidxml"]
*: "See http://192.168.1.4/mediawiki/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list a…"
code: "verification-error"
details: ["uploadinvalidxml"] (1)
info: "The XML in the uploaded file could not be parsed."
The article that contains the bpmn xml is there though, and I can reopen the bpmn diagram for editing.
Hi Attila
Probably that's issue with UTF-16 symbols in BPMN diagram, which I'm aware of.
Finally fixed that yesterday, I'll give you an update when fix will be pushed to extension repository. It should happen soon.
Hi Attila
Finally that UTF-16 symbols issue is fixed. Could you please update your extension?
You can try 2.0.10 version.
Hi,
I have the error "Veröffentlichen der Diagrammelemente im Wiki fehlgeschlagen" on saving using mediawiki 1.39.1 and CognitiveProcessDesigner 2.2-alpha (8776fa2) 13:09, 1. Mär. 2023
svg Uploads are enabled
As soon as I add the line:
wfLoadExtension( 'CognitiveProcessDesigner' );
to LocalSettings.php after installation I get a white screen of death. I have Semantic MediaWiki setup and running.
debian 9 vm with 1GB RAM
MediaWiki 1.35.0
PHP 7.3.23-1+0~20201008.68+debian9~1.gbp30f6c3 (apache2handler)
MariaDB 10.1.45-MariaDB-0+deb9u1
ICU 65.1
Timeless theme.
Error message in /var/log/apache2/error.log:
[Sun Oct 11 11:21:22.333788 2020] [php7:error] [pid 1202] [client 192.168.1.2:56948] PHP Fatal error: Uncaught Error: Class 'WebRequest' not found in /var/www/html/wiki/includes/HeaderCallback.php:63\nStack trace:\n#0 [internal function]: MediaWiki\\HeaderCallback::callback()\n#1 {main}\n thrown in /var/www/html/wiki/includes/HeaderCallback.php on line 63
Anything very obviously wrong?
I know the question is 2 years old, but I had the same problem. The PHP Error Log answered it, the extension needs the PageForms extension installed too.
Hello. I followed the steps to install the extension and it appears correctly in the version special page (version 2.0.0 (be82d70) 07:20, 20 December 2021). However, I am not able to use any of the features of the extension as the special pages (as described in the usage section on the wiki) simply do not exist. Any help would be awesome! Thanks in advance. :-)
Extra info:
MW 1.35.4
SMW 3.2.3
PHP 7.3.31-1~deb10u1 (fpm-fcgi)
MariaDB 10.3.32 focal
OS Debian GNU/Linux 10 (buster) on Windows 10 x86_64
Sorry. Apparently an update do the extensions documentation page has been rolled back. Please check https://www.mediawiki.org/w/index.php?title=Extension:Cognitive_Process_Designer&oldid=4910916 on proper usage instructions.
Ah! Thank you so much! The plugin seems to be working now with the new tutorial. I am only having trouble with the SVG upload ("Failed to upload SVG"), but I think this is out of the control of the extension and more of a problem with my current MW setup. Have you heard of this problem before? Is there any hint you can give me? (I already have SVG as an allowed extension on the site).
If you do not know, don't worry about it! Thanks again.
did you modify the rights to the images folder (within the wiki root)? If this isn't writable, it's not working. That was the problem on my side.
Hi,
when browsing a wiki page with a bpmn model on it, there is no rendered image of the diagram shown.
Is it possible to show the diagram (not the xml representation) without going to the special pages section?
Best Regards
I have the same problem.
In the installation article, it is described how to add some code to MediaWiki:Common.js but the js and css mentioned there are non-existent.
Could please someone give advice how to use the diagrams?
Best regards.
Silke
Any news on that question? I have the same problem.
Kind Regards
Christoph
1) Github's composer require hallowelt/cognitiveprocessdesigner dev-REL1_31 can't find the release.
2) LocalSettings wfLoadExtension( 'CognitiveProcessDesigner' ); raises two issues
i) PageForms is required. But it is Page Forms 4.5.1 GPL-2.0-or-later
ii) BlueSpiceFoundation is required. But No install Instructions. Only Full BluSpice3 Free instructions.
Product Version
MediaWiki 1.31.1
PHP 7.1.33 (litespeed)
MariaDB 10.3.24-MariaDB-cll-lve