• Resolved mariusandersen

    (@mariusandersen)


    What is this that suddenly appeared?

    WARNING: wp-content/plugins/wordpress-seo/inc/class-wpseo-image-utils.php:173 – filesize(): stat failed for /homepages/34/d715953478/htdocs/wordpress/wp-content/uploads//homepages/34/d715953478/htdocs/wordpress/wp-content/uploads/2018/02/kultur.jpg
    require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/aktueltspania/kulturarr.php’), get_header, locate_template, load_template, require_once(‘/themes/aktueltspania/header-kulturarr.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, WPSEO_Frontend->head, do_action(‘wpseo_head’), WP_Hook->do_action, WP_Hook->apply_filters, WPSEO_OpenGraph->opengraph, do_action(‘wpseo_opengraph’), WP_Hook->do_action, WP_Hook->apply_filters, WPSEO_OpenGraph->image, WPSEO_OpenGraph_Image->__construct, WPSEO_OpenGraph_Image->set_images, WPSEO_OpenGraph_Image->set_singular_image, WPSEO_OpenGraph_Image->set_featured_image, WPSEO_OpenGraph_Image->add_image_by_id, WPSEO_Image_Utils::filter_usable_file_size, WPSEO_Image_Utils::has_usable_file_size, WPSEO_Image_Utils::get_file_size, filesize

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    • Can you please confirm whether the issue persists while using the WordPress v4.9.5?
    • Can you please confirm whether the issue persists while using the Yoast SEO v7.4.2?
    • Can you please confirm whether the issue persists while using the default 2017 theme?
    • Can you please confirm whether the issue persists while all the non-Yoast plugins are deactivated?

    I have the same problem. My warning is Warning: Division by zero in /home/wahmaddi/public_html/wp-content/plugins/wordpress-seo/inc/class-wpseo-image-utils.php on line 223

    When I deactivate the Yoast Plugin, it goes away, but when reactivated, it reappears.
    I have 1. WordPress version – 4.9.5 2. PHP version – 7.0.29.
    This started when I updated 2 pages on my website: https://www.wahmaddicts.com/

    It happens regardless if signed in as admin or not.

    Please advise. Thank you!

    M3

    (@musadiqmarhaban)

    Hi,

    I have the same issue, please view this link is visible.

    Thanks

    I have the same issue. Error message in the Header: Division by zero in Warning: Division by zero in /home/telechargercours/public_html/wp-content/plugins/wordpress-seo/inc/class-wpseo-image-utils.php on line 223

    I have the latest WordPress version
    i have the latest WordPress SEO
    This started when I change wordpress seo by yoast on my website:
    https://telechargercours.com/
    It happens only on pages and postes, the home page and the categories page are ok.
    thanks

    I have the same issue. I am getting so many errors. https://prntscr.com/jdp8bb

    I have the same error.

    WARNING: C:\MAMP\htdocs\wp\wp-content\plugins\wordpress-seo\inc\class-wpseo-image-utils.php:173 - filesize(): stat failed for <strong>C:\MAMP\htdocs\wp/wp-content/uploads/</strong>C:\MAMP\htdocs\wp/wp-content/uploads/2018/04/pennant-1.jpg
    require('C:\MAMP\htdocs\wp\wp-blog-header.php'), require_once('C:\MAMP\htdocs\wp\wp-includes\template-loader.php'), include('C:\MAMP\htdocs\wp\wp-content\plugins\woocommerce\templates\single-product.php'), get_header, locate_template, load_template, require_once('C:\MAMP\htdocs\wp\wp-content\themes\xyz\header.php'), wp_head, do_action('wp_head'), WP_Hook->do_action, WP_Hook->apply_filters, WPSEO_Frontend->head, do_action('wpseo_head'), WP_Hook->do_action, WP_Hook->apply_filters, WPSEO_OpenGraph->opengraph, do_action('wpseo_opengraph'), WP_Hook->do_action, WP_Hook->apply_filters, WPSEO_OpenGraph->image, WPSEO_OpenGraph_Image->__construct, WPSEO_OpenGraph_Image->set_images, WPSEO_OpenGraph_Image->set_singular_image, WPSEO_OpenGraph_Image->set_featured_image, WPSEO_OpenGraph_Image->add_image_by_id, WPSEO_Image_Utils::filter_usable_file_size, WPSEO_Image_Utils::has_usable_file_size, WPSEO_Image_Utils::get_file_size, filesize

    Debugging info:

    PHP: 7.1.7
    MySQL: 5.6.34
    WordPress: 4.9.5
    Yoast SEO: 7.4.2

    The problem is inside class-wpseo-image-utils.php -> get_absolute_path( $path ), on line 124. The $path is following (in my case)

    $log = array (
      'path' => 'C:\\MAMP\\htdocs\\wp/wp-content/uploads/2018/05',
      'url' => 'https://localhost/wp/wp-content/uploads/2018/05',
      'subdir' => '/2018/05',
      'basedir' => 'C:\\MAMP\\htdocs\\wp/wp-content/uploads',
      'baseurl' => 'https://localhost/wp/wp-content/uploads',
      'error' => false,
    );
    

    And you return $uploads[‘basedir’] . “/$path”;.

    Hope I helped you understand the issue and looking forward to see the fix.

    Update:
    If you change the code between lines 131 – 133 with the following code, the warning is gone:

    if ( empty( $uploads['error'] ) ) {
    	return $path;
    }

    Alex Spataru

    • This reply was modified 6 years, 6 months ago by Alex Spataru. Reason: Added a possible solution
    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    We apologize for any inconvenience. A bug report is currently open for this issue. We recommend you please submit as much information as you can directly to the opened bug report here https://github.com/Yoast/wordpress-seo/issues/9651 so that our developers can fix the issue asap.

    Plugin Support Jerlyn

    (@jerparx)

    Fixed is included in Yoast SEO 7.5 scheduled to be released next week.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘WARNING: wp-content/plugins/wordpress-seo/inc/class-wpseo-image-utils.php:173’ is closed to new replies.