I reply to all queries on the forums and via email, once per day, Monday to Friday (not weekends).

If you are new here, please see some information on how to ask for support. Thank you!

Reply To: Plugin could not be activated because it triggered a fatal error.

dashed-slug.net Forums Transition from wallets 5.x to 6.0.0 Plugin could not be activated because it triggered a fatal error. Reply To: Plugin could not be activated because it triggered a fatal error.

#12199
alexg
Keymaster

Ah yes, thank you very much for reporting this.

It is partly my fault, and partly the fault of another plugin that you are using. Both plugins attempt to load the Parsedown library, and both plugins don’t check if the library is already loaded.

The issue is here: https://github.com/dashed-slug/wallets/blob/6.0.0-RC4/admin/documentation.php#L15-L16

I will correct this in the next release. In the meantime, you can delete these lines, then, further down in the file, where the library is being used, you can add the following:

if ( ! class_exists( 'Parsedown' ) ) {
    require_once DSWALLETS_PATH . '/third-party/Parsedown.php';
}

if ( ! class_exists( 'ParsedownExtra' ) ) {
    require_once DSWALLETS_PATH . '/third-party/ParsedownExtra.php';
}

right above the following code:

// render markdown
$pd = new \ParsedownExtra;
$html = $pd->text( $markdown );

Thank you for noticing and reporting this issue. I will apply the patch on the next version.

with regards