Sanitize file name causes site to crash
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘Sanitize file name causes site to crash’ is closed to new replies.