Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By Processnico
#814951
I tried to create a plugin but when I execute the php file it tells me :
Code: Select all
PHP Fatal error:  Class 'G' not found in /opt/bitnami/apps/processmaker/plugins/prova2/prova2.php on line 2
Code: Select all
//line 2 on prova2.php
             G::LoadClass("plugin");
Can you help me?
Sorry if I ask a lot of questions.
User avatar
By amosbatto
#814968
I wonder if you are inside a PHP namespace.
Try it this way:
Code: Select all
$g = new \G();
$g->loadClass("plugin");
If that doesn't work, then do it this way:
Code: Select all
require_once "/opt/bitnami/apps/processmaker/workflow/engine/classes/class.plugin.php";
I have never tried to create a plugin in a Bitnami installation. Let me know how it goes.

🚀 Tauchen Sie mit Immediate Alora AI in die Welt d[…]

Do you want a quick way to delete passwords from P[…]

Try the CloudMigration PST Converter to convert […]

In the rapidly evolving world of online sports be[…]