• Resolved squidg

    (@squidg)


    My WordPress blog is installed in a sub directory and when I try to install this plugin I get.

    Fatal error
    : Uncaught TypeError: WebpConverter\Service\PathsGenerator::get_document_root(): Return value must be of type string, null returned in /home/usr/public_html/blog/wp-content/plugins/webp-converter-for-media/src/Service/PathsGenerator.php:59
    Stack trace: 0 /home/usr/public_html/blog/wp-content/plugins/webp-converter-for-media/src/Service/PathsGenerator.php(26): WebpConverter\Service\PathsGenerator::get_document_root() 1 /home/usr/public_html/blog/wp-content/plugins/webp-converter-for-media/src/Loader/HtaccessLoader.php(258): WebpConverter\Service\PathsGenerator::get_rewrite_root() 2 /home/usr/public_html/blog/wp-content/plugins/webp-converter-for-media/src/Loader/HtaccessLoader.php(187): WebpConverter\Loader\HtaccessLoader->get_mod_rewrite_rules(Array) 3 /home/usr/public_html/blog/wp-content/plugins/webp-converter-for-media/src/Loader/HtaccessLoader.php(174): WebpConverter\Loader\HtaccessLoader->get_rules_to_wp_content(Array) 4 /home/usr/public_html/blog/wp-content/plugins/webp-converter-for-media/src/Loader/HtaccessLoader.php(58): WebpConverter\Loader\HtaccessLoader->add_rewrite_rules_to_wp_content(true, Array) 5 /home/usr/public_html/blog/wp-content/plugins/webp-converter-for-media/src/Loader/LoaderIntegrator.php(42): WebpConverter\Loader\HtaccessLoader->activate_loader(false) 6 /home/usr/public_html/blog/wp-includes/class-wp-hook.php(324): WebpConverter\Loader\LoaderIntegrator->refresh_active_loader(true) 7 /home/usr/public_html/blog/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 8 /home/usr/public_html/blog/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 9 /home/usr/public_html/blog/wp-content/plugins/webp-converter-for-media/src/Plugin/ActivationHandler.php(64): do_action('webpc_refresh_l…', true) 10 /home/usr/public_html/blog/wp-includes/class-wp-hook.php(324): WebpConverter\Plugin\ActivationHandler->load_activation_actions('') 11 /home/usr/public_html/blog/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) 12 /home/usr/public_html/blog/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 13 /home/usr/public_html/blog/wp-admin/plugins.php(194): do_action('activate_webp-c…') 14 {main}
    
    thrown in
Viewing 1 replies (of 1 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hi @squidg,

    Thank you for your message.

    Please create a file in the root directory of your WordPress with a random name and .php extension, e.g. a1b2c3.php and the following content:

    <?php
    
    echo '<pre>';
        print_r( $_SERVER );
    echo '</pre>';
    exit;

    Then please send me the URL of this file to my email address: hello(at)mattplugins.com. Please do not post this here as this PHP file may reveal confidential information. They are necessary for me to help you, but they cannot be public.

    Best,
    Mateusz

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal Error’ is closed to new replies.