Posts made 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 a bit of code I use to creat the copy commands for all contrib plugins on my site. I use it when I'm doing major upgrades. As Leon says, contrib plugins are ones that are NOT standard plugins - and that's just a hard code list.

Use at your own risk...

<?php
require_once(dirname(__FILE__) . '/config.php');
$rootfrom = required_param('basefrom', PARAM_CLEAN);
$rootto = required_param('baseto', PARAM_CLEAN);
$manager = core_plugin_manager::instance();
$allplugins = $manager->get_plugins();
echo "<ul>";
foreach ($allplugins as $type => $typeplugins) {
    $standard = core_plugin_manager::standard_plugins_list($type);
    foreach ($typeplugins as $plugin => $info) {
    if (!$standard || !in_array($plugin, $standard)) {
       if ($info->rootdir) {
           $from = $rootfrom . $info->rootdir;
           $to = $rootto . $info->typerootdir;      
   echo "<li>cp -R $from $to</li>\n";
       }
       }
    }
}
Average of ratings: Useful (2)
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Does it work *at all*. I can't tell if you're saying that this is intermittent.

Load the mariadb client on the web server VM. Can you access the database using the same credentials as in config.php?