Advertisement:

Author Topic: [SOLVED] My first plugin  (Read 628 times)

adirenato

  • Newbie
  • *
  • Posts: 2
[SOLVED] My first plugin
« on: March 24, 2016, 04:35:34 pm »
Hello everyone,


I'm trying to develop a plugin and need help.

I created the structure of the plugin according to my need  then I created zip plugin file and upload to my server (admin > install plugins )
I get the following message ( "There was a problem adding the plug-in " ) .

I need something special to create this zip and send to the server ?

I did some tests with ready plugins . I took the zip and then put in the zip and it did not work when I upload to will serve .

Sorry my bad English
Thank you all
« Last Edit: March 24, 2016, 06:16:09 pm by adirenato »

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: My first plugin PagSeguro (Brasil)
« Reply #1 on: March 24, 2016, 05:03:40 pm »
Hi,

Just upload the plugin folder (non-zipped) via FTP, then Install on Admin Dashboard.

Regards

adirenato

  • Newbie
  • *
  • Posts: 2
Re: My first plugin PagSeguro (Brasil)
« Reply #2 on: March 24, 2016, 05:48:12 pm »
Hi Teseo ,

I am using a trial version of Jelastic Cloud which does not allow connection via FTP.

I managed to make the Branch of the project with the plugin.
 

More could tell me why this occurs with the installation ?

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: My first plugin PagSeguro (Brasil)
« Reply #3 on: March 24, 2016, 06:12:43 pm »
Quote
More could tell me why this occurs with the installation ?

No idea, I always do that via FTP.

Glad you solved it, regards

Liath

  • issues
  • Hero Member
  • *
  • Posts: 1346
  • </html> the end is always near
Re: [SOLVED] My first plugin
« Reply #4 on: March 25, 2016, 02:56:51 am »
this error occurs, if one ore more of your functions fails, that are used while the installation.

e.g.

you want to install your plugin and use a function for the installation process
Code: [Select]
osc_register_plugin(osc_plugin_path(__FILE__), 'shoppingmall_install');
now, if there an error in
Code: [Select]
function shoppingmall_install {
...
}

this could throw the error while install the process...

to find out, where your error happen, you could turn on the debug mode

https://doc.osclass.org/Debug_PHP_errors