General developer forum

How to replace zip file uploaded in moodle plugin directory ?

 
Picture of Amrata Ramchandani
How to replace zip file uploaded in moodle plugin directory ?
Group Plugin developers

Hi,

Is it possible to replace already uploaded zip file in Plugins directory after correcting PHP Code Validation Errors shown in Plugins Directory.If yes,how ?

And, code validation done by plugin bots is on the code submitted on github or the zip file submitted ?


 
Average of ratings: -
Picture of Rahul Rai
Re: How to replace zip file uploaded in moodle plugin directory ?
 

Hi Amrata


Yes, it is possible, You need to update the plugin code and if your plugin is on Moodle Plugin store and your site is register with Moodle you will get upgrade notification.  
And if you proceed your code will be upgraded 

 
Average of ratings: -
Picture of Amrata Ramchandani
Re: How to replace zip file uploaded in moodle plugin directory ?
Group Plugin developers

No,I am actually asking how to change the code which was uploaded by me in the plugins directory,It has some errors which I have solved and would like to re upload it.

 
Average of ratings: -
Picture of David Mudrák
Re: How to replace zip file uploaded in moodle plugin directory ?
Group Core developersGroup Documentation writersGroup Moodle HQGroup Particularly helpful MoodlersGroup Plugin developersGroup Plugins guardiansGroup TestersGroup Translators

Submitted ZIPs can't be replaced - they have been released as a plugin version.

The correct procedure is to release a new version of your plugin that contains the fixes.

All the processing is done against the code submitted via the ZIP files. Your Github (or any other SCM system) is supposed to be used for development. The Plugins directory is where you submit and distribute the plugins.

See https://docs.moodle.org/dev/Plugin_contribution#Sharing_code_in_the_Plugins_directory for more details.

 
Average of ratings: Useful (1)
Picture of Amrata Ramchandani
Re: How to replace zip file uploaded in moodle plugin directory ?
Group Plugin developers

Thanks !

 
Average of ratings: -