Support

Akeeba Backup for WordPress

#40936 Plugin could not be activated because it triggered a fatal error.

Posted in ‘Akeeba Backup for WordPress’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

WordPress version
6.6
PHP version
8.2
Akeeba Backup version
8.2.3

Latest post by nicholas on Wednesday, 17 July 2024 02:40 CDT

bizguy

EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 10MiB, please upload it on your server and post a link to it.

--

The issue first became apparent, when I attempted to do a WordPress update to 6.6 which did not complete, stating Akeeba backup had caused a fatal error. I Deactivated, then deleted Akeeba backup, and was able to reinstall the WP update. When I attempted to install Akeeba backup, I got the following error:

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

Please advise.

Ed

nicholas
Akeeba Staff
Manager

Unfortunately, WordPress is hiding the actual error message and gives us no way to see it. Without it, we can't possibly know what is going on. So, before we do anything else, we have to convince it to show us this message.

Create the file wp-content/mu-plugins/debug.php with the following contents:

<?php

add_filter(
    'wp_php_error_message', function ($message, $error) {
  $theMessage = $error['message'] ?? '(no message)';
    $file       = $error['file'] ?? '(no file)';
    $line       = $error['line'] ?? '(no line)';
    $context    = <<< HTML

<div style="border: thick solid red; border-radius: 1em; padding: 1em; margin: 1em 0;">
    <h4 style="margin: 0 0 0.75em">$theMessage</h4>
    <p style="margin: 0">$file:$line</p>
</div>

HTML;

    return $context . $message;
}, 10, 2
);

Edit your wp-config.php file and find the WP_DEBUG line. Replace it with:

define('WP_DEBUG', true);
define('WP_DEBUG_DISPLAY', true);
define('WP_DEBUG_LOG', true);

Now retry what you did before. You will get a more detailed error message. Copy it here so I can help you.

Afterwards, you can remove the the file wp-content/mu-plugins/debug.php and comment out the three lines in the wp-config.php file by placing // in front of each line.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!