• Hello

    Since last version, when installing/activating the plugin on my local site on XAMPP, I got this error message, and the plugin failed to activate. No problem online. Using WP 5.7.1. Any ideas how to resolve this?

    Fatal error: Uncaught ValueError: Path cannot be empty in C:\xampp\htdocs\mysite\wp-content\plugins\http-headers\http-headers.php:2749 Stack trace: #0 C:\xampp\htdocs\mysite\wp-content\plugins\http-headers\http-headers.php(2749): file_put_contents('', NULL) #1 C:\xampp\htdocs\mysite\wp-content\plugins\http-headers\http-headers.php(3251): update_auth_credentials() #2 C:\xampp\htdocs\mysite\wp-includes\class-wp-hook.php(292): http_headers_activate('') #3 C:\xampp\htdocs\mysite\wp-includes\class-wp-hook.php(316): WP_Hook->apply_filters('', Array) #4 C:\xampp\htdocs\mysite\wp-includes\plugin.php(484): WP_Hook->do_action(Array) #5 C:\xampp\htdocs\mysite\wp-admin\plugins.php(193): do_action('activate_http-h...') #6 {main} thrown in C:\xampp\htdocs\mysite\wp-content\plugins\http-headers\http-headers.php on line 2749

    Thanks

    ADS

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dimitar Ivanov

    (@zinoui)

    Hi @ads97129

    I’ve commit a fix that attempt to address above issue. Can you please try to update.

    Thread Starter ads97129

    (@ads97129)

    Hi @zinoui
    I have the following error when activate plugin :

    Fatal error: Cannot redeclare build_csp_value() (previously declared in C:\xampp\htdocs\mysite\wp-content\plugins\http-headers\http-headers.php:81) in C:\xampp\htdocs\mysite\wp-content\plugins\http-headers\http-headers.php on line 81

    However, plugin is activated now.

    Thanks

    ADS

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Failed to activate plugin on local XAMPP’ is closed to new replies.