Certificate plugin broken/not updating after upgrade to 3.2

Certificate plugin broken/not updating after upgrade to 3.2

by Leticia Dark-rose -
Number of replies: 1

Hi,

We have just upgraded to 3.2 and since I have not been able to upgrade the Certificate plugin from 

2.9 (Build: 2015083101)  to the current version Release 3.1 (Build: 2016052300). The error on the plugin screen is saying that the files are not writable, please see errors below. I have been through an upgrade before and this did not occur. I have started getting the non-writable errors only after trying to upgrade this one, i have upgraded the JW player successfully.
I would be interested in any feedback. I would like to delete the installation and install the new version from scratch. Thoughts?
Thanks a lot.
Leticia
-------------------------------------------------------------------------

Debugging output enabled

Downloading mod_certificate ...

 <- https://moodle.org/plugins/download.php/11565/mod_certificate_moodle31_2016052300.zip

-> /web/dir/.data/moodledata/temp/core_plugin/code_manager/distfiles/fce879a4fbdf3992996d6130b12c9e6e.zip ... OK

Validating mod_certificate ... OK

 [OK] Name of the plugin to be installed [certificate]  

  [OK] Plugin version [2016052300]

  [OK] Required Moodle version [2016052300]

  [OK] Full component name [mod_certificate]

  [OK] Declared maturity level [MATURITY_STABLE]  

  [OK] Plugin release [3.1 (Build: 2016052300)]

  [Debug] Found language file [certificate]

  [OK] Write access check [/web/dir/moodle/mod]

  [Warning] Target location already exists and will be removed [/web/dir/moodle/mod/certificate]  

  [OK] Write access check [/web/dir/moodle/mod/certificate]

 

Validation successful, installation can continue

On clicking Continue the below error occurs

 

core_plugin/unexpected_archive_structure

More information about this error

Debug info: 
Error code: unexpected_archive_structure
$a contents:

Stack trace:

  • line 276 of /lib/classes/update/code_manager.php: moodle_exception thrown
  • line 2085 of /lib/classes/plugin_manager.php: call to core\update\code_manager->archive_plugin_version()
  • line 1957 of /lib/classes/plugin_manager.php: call to core_plugin_manager->archive_plugin_version()
  • line 1357 of /lib/classes/plugin_manager.php: call to core_plugin_manager->remove_plugin_folder()
  • line 2254 of /lib/upgradelib.php: call to core_plugin_manager->install_plugins()
  • line 199 of /admin/plugins.php: call to upgrade_install_plugins()

 


Average of ratings: -
In reply to Leticia Dark-rose

Re: Certificate plugin broken/not updating after upgrade to 3.2

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

This is simply a permissions issue. The web server does not have the necessary rights to write to the mod/ directory. 

How you fix this, depends on what operating system this is. 

You can always install plugins the old fashioned way - instructions for Certificate are here: https://docs.moodle.org/32/en/Certificate_module#Installing

Personally, I prefer not to make my Moodle code files writeable as it slightly increases the risk of being hacked.