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.
User avatar
By Intellibs
#815894
Hello!
I 've created a test plugin, using this instructions:
https://wiki.processmaker.com/3.0/Plugin_Development
There are no any problems during this process. I've configurated plugin to add links in menus (top-level and side)
But new menus in the ProcessMaker interface hasn't appeared.
And second problem: when I click on configure in plugin menu - I get error (in screen below)
Attachments
Screenshot_4.png
Screenshot_4.png (7.68 KiB) Viewed 3339 times
Screenshot_3.png
Screenshot_3.png (139.13 KiB) Viewed 3339 times
User avatar
By amosbatto
#815896
Intellibs wrote:I 've created a test plugin, using this instructions:
https://wiki.processmaker.com/3.0/Plugin_Development
There are no any problems during this process. I've configurated plugin to add links in menus (top-level and side)
But new menus in the ProcessMaker interface hasn't appeared.
In your env.ini file, set:
Code: Select all
debug = 1
Do you see any error messages? If not, then export your plugin and post it here and I will test it. By the way what version of PM and what operating system are you using?
Intellibs wrote:And second problem: when I click on configure in plugin menu - I get error (in screen below)
Unfortunately, we don't have any examples how to create the files to process the setup.xml file, so the best thing to do is to disable it. In the yourPlugin.php file, you need to change from:
Code: Select all
    $this->sSetupPage    = "setup"; 
To:
Code: Select all
    $this->sSetupPage    = "";

Now it shouldn't display a setup page and there will be no error message.
User avatar
By amosbatto
#815946
Your workflow/engine/plugins/connect1C/class.connect1C.php file should have content like this:
Code: Select all
/**
 * class.connect1C.php
 *  
 */

  class connect1CClass extends PMPlugin {
    function __construct() {
      set_include_path(
        PATH_PLUGINS . 'connect1C' . PATH_SEPARATOR .
        get_include_path()
      );
    }

    function setup()
    {
    }

    function getFieldsForPageSetup()
    {
    }

    function updateFieldsForPageSetup()
    {
    }

  }
?>
If you can't figure it out, then make a tar or zip file of your workflow/engine/plugins/connect1C.php and workflow/engine/plugins/connect1C folder and post it here and I will look at it.
Want to create your own meme coin?

In the world of cryptocurrencies, a unique and exc[…]

The market for cryptocurrencies is demonstrating a[…]

What's SAP FICO?

Embarking on a dissertation can be one of the most[…]

Hello. For rental housing, there are software solu[…]