• Summary: The PHP Fatal error occurs within the ‘academy-certificates’ plugin during the activation process. The error specifically points to a TypeError within the ‘example-certificate.php’ file on line 39, where the unlink() function expects a string argument representing a filename but instead receives an object of type WP_Error.

    Steps to Reproduce:

    1. Install the ‘academy-certificates’ plugin.
    2. Activate the ‘academy-certificates’ plugin.

    Expected Behavior: The ‘academy-certificates’ plugin activates successfully without encountering any fatal errors or exceptions.

    Actual Behavior: Upon activation, a PHP Fatal error occurs, leading to the failure of the activation process. The error originates in the ‘example-certificate.php’ file at line 39, triggered by a TypeError in the unlink() function due to an incompatible argument type (WP_Error instead of a string).

    Error Message:

    [26-Dec-2023 06:05:07 UTC] PHP Fatal error: Uncaught TypeError: unlink(): Argument #1 ($filename) must be of type string, WP_Error given in C:\laragon\www\eventin\wp-content\plugins\academy-certificates\includes\admin\example-certificate.php:39

Viewing 1 replies (of 1 total)
  • Hi @immasud,

    We apologize for any inconvenience you’re experiencing. Upon rechecking, the plugin is functioning well on our end. To better understand the issue on your side, could you confirm if the plugin is up-to-date or if there might be a conflicting issue?

    For further assistance, we kindly request details about your site’s updated information. Your cooperation is greatly appreciated.

    Thank you.

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin could not be activated because it triggered a fatal error.’ is closed to new replies.