Extension talk:Cognitive Process Designer

About this board

Refused to execute script from 'http:/.....1080/mediawiki-server/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

1
Subhanaliweb (talkcontribs)

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)

Reply to "Refused to execute script from 'http:/.....1080/mediawiki-server/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled."

Get mediaWiki Error: Class "MWStake\MediaWiki\Component\ProcessManager\ProcessManager" not found

3
149.220.16.9 (talkcontribs)

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.

2003:E9:AF48:F101:E192:EA8B:CE81:8693 (talkcontribs)

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

Driedmueller (talkcontribs)

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.

Reply to "Get mediaWiki Error: Class "MWStake\MediaWiki\Component\ProcessManager\ProcessManager" not found"

PageForms incompatible version for MW 1.39

2
Dimka665 (talkcontribs)

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.

Osnard (talkcontribs)
Reply to "PageForms incompatible version for MW 1.39"

Diagram saving error

1
123.136.150.227 (talkcontribs)

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

Reply to "Diagram saving error"

Showing "Saving process..." but could not save

18
Asd135441 (talkcontribs)

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 ?

Asd135441 (talkcontribs)

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.

138.40.68.56 (talkcontribs)

I have exactly the same issue - have you found a solution to this issue?

Osnard (talkcontribs)

Could you please open the browsers development tools (F12) and check if there are any errors reported to the "Console"?

Asd135441 (talkcontribs)

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)
Osnard (talkcontribs)

Can you also provide the server response that leads to this issue= It should be some call to api.php

178.164.202.22 (talkcontribs)

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

AKulbii (talkcontribs)

Hi Attila,

Such problem should not appear with the latest extension code, could you try to update it please?

Attila.horvath (talkcontribs)

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)

Martin schilliger (talkcontribs)

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

Attila.horvath (talkcontribs)

Hi,


I tried

CognitiveProcessDesigner 2.1-alpha (13aa826)20:07, 2023 January 17

to no avail, the exact same symptoms arose :(

Attila.horvath (talkcontribs)

Hi!

Is there any update on this problem? I keep trying, installing every new version that appears on github :(

AKulbii (talkcontribs)

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.

AKulbii (talkcontribs)

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.

Attila.horvath (talkcontribs)

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.

AKulbii (talkcontribs)

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.

AKulbii (talkcontribs)

Hi Attila


Finally that UTF-16 symbols issue is fixed. Could you please update your extension?

You can try 2.0.10 version.

Dueni.f (talkcontribs)

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

Reply to "Showing "Saving process..." but could not save"

White screen of death

2
Polymath uk (talkcontribs)

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?

Martin schilliger (talkcontribs)

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.

Reply to "White screen of death"

Special Pages not appearing - not able to use extension

4
Notjohannes (talkcontribs)

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

Osnard (talkcontribs)
Notjohannes (talkcontribs)

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.

Mira342 (talkcontribs)

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.

Reply to "Special Pages not appearing - not able to use extension"
212.88.157.138 (talkcontribs)

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

87.79.93.111 (talkcontribs)

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

84.167.27.48 (talkcontribs)

Any news on that question? I have the same problem.


Kind Regards

Christoph

Reply to "BPMN-Viewer"

Installing Cognitive Process Designer

1
DuetSS (talkcontribs)

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

Reply to "Installing Cognitive Process Designer"

Where are bugs and feature requests being tracked?

1
Revansx (talkcontribs)

Are you guys using anything like phabricator or git to track bugs and/or feature requests? I've got a few minor things i'd like to get captured and can't find any place other than here to capture them. Where are bugs and tasks being tracked for this extension? Thanks!

Reply to "Where are bugs and feature requests being tracked?"
Return to "Cognitive Process Designer" page.