Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderator: amosbatto

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.
#824905
Hello,

I have created a plugin and configured it as described in the "Configuration of the REST plugin" section:
https://wiki.processmaker.com/3.0/Creat ... _Endpoints

I have executed the ./gulliver pack-plugin command.
The tar file has been created successfully but it does not contain the src directory .
The other directories and flles are included.

Please help.
#824908
Does your /src/ directory has file permissions that prevent it from being seen by the gulliver script?
Change the owner and file permissions to be the same as the rest of your plugin files.

By the way, you can manually pack the tar file from the command line like this:
cd /opt/plugins/pluginName
tar -cvf pluginName-X.tar pluginName.php pluginName


Where pluginName is the name of your plugin and X is the version number of your plugin.

For example:
su
cd /opt/plugins/extraRest
tar -cvf extraRest-1.13.tar extraRest.php extraRest
#824941
Hello,

I have rechecked all the permissions starting from the /opt/plugins/pluginName directory.
cd /opt/plugins
chown -R apache pluginName
chgrp -R apache pluginName
chmod -R 777 pluginName
finally I have checked the Sample.php file permissions and changed it
( chmod 777 /opt/plugins/pluginName/pluginName/src/Services/Api/PluginName/Sample.php)
After all the operations the ./gulliver pack-plugin command is working properly.
Thank you very much.

Hi Amo, Just wondering if there is any update on […]

Hi All, I make a trigger to input from dynaform t[…]

Disable grid using JavaScript

You need to disable the upload button in a Modal[…]

SOAP-ERROR: Parsing WSDL

Hello there, We are using PM Enterprise version 3[…]