• Hey there – when I set a default image my site crashes. Here is the debug log:

    plugins/wordpress-popular-posts/src/Helper.php(337): sanitize_file_name('Lake-House-esa-...')
    #3 /home/hobpaisd/public_html/wp-content/plugins/wordpress-popular-posts/src/Image.php(67): WordPressPopularPosts\Helper::is_image_url('https://www.hou...')
    #4 /home/hobpaisd/public_html/wp-content/plugins/wordpress-popular-posts/src/Container/WordPressPopularPostsConfiguration.php(33): WordPressPopularPosts\Image->__construct(Array)
    #5 /home/hobpaisd/public_html/wp-content/plugins/wordpress-popular-posts/src/Container/Container.php(104): WordPressPopularPosts\Container\WordPressPopularPostsConfiguration->WordPressPopularPosts\Container\{closure}(Object( in /home/hobpaisd/public_html/wp-includes/capabilities.php on line 693

    I have removed this line:
    $file_name = sanitize_file_name($file_name);

Viewing 1 replies (of 1 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @gubbigubbi,

    Just tried setting a default image on a test site using the latest version of the plugin and wasn’t able to reproduce the problem. It worked without issues, no errors.

    Do I need to follow specific steps to trigger the issue?

    Edit: also, could you please share the entire error message? You only provided part of it which is not enough to know what’s going on.

Viewing 1 replies (of 1 total)
  • The topic ‘Sanitize file name causes site to crash’ is closed to new replies.