General developer forum

Backup in my plugin not working

 
Picture of Jan Emrich
Backup in my plugin not working
 

Hi everybody,

i implemented the api calls for the backup and restore api. The data in the database is correctly backed up and restored, but on clicking the link in a restored course to the plugin i get a ERR_CONNECTION_REFUSED. The link itself links to the correct place. I dont know whats wrong.

Here is my decode rules function:

static public function define_decode_rules() {

        $rules = array();

        $rules[] = new restore_decode_rule('ADAPTIVEQUIZVIEWBYID', '/mod/adaptivequiz/view.php?id=$1', 'course_module');
        $rules[] = new restore_decode_rule('ADAPTIVEQUIZINDEX', '/mod/adaptivequiz/index.php?id=$1', 'course');

        return $rules;

    }

Any idea?

Thanks,

Jan

 
Average of ratings: -
Picture of Jan Emrich
Re: Backup in my plugin not working
 

this is my error. What are possible reasons the site is crashing?


 
Average of ratings: -
Picture of Dorel Manolescu
Re: Backup in my plugin not working
 

Hi

a) First step would be to turn debugging on in config.php 

// @error_reporting(E_ALL | E_STRICT); // NOT FOR PRODUCTION SERVERS!
// @ini_set('display_errors', '1'); // NOT FOR PRODUCTION SERVERS!
// $CFG->debug = (E_ALL | E_STRICT); // === DEBUG_DEVELOPER - NOT FOR PRODUCTION SERVERS!
// $CFG->debugdisplay = 1; // NOT FOR PRODUCTION SERVERS!
or ../admin/settings.php?section=debugging

b) second step : check errors in page or apache error log.

Let us know!

Regards

 
Average of ratings: -