• I have installed your plugin but when visiting my wbpage I get Warnings

    
    Warning: getimagesize(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/www/vang.nu/wp-content/plugins/amp-wp/public/partials/single-post/post-thumbnails.php on line 29
    
    Warning: getimagesize(https://vang.nu/wp-content/uploads/2018/11/lasse-holmsted-vang-22-11-18-2.jpg): failed to open stream: no suitable wrapper could be found in /home/www/vang.nu/wp-content/plugins/amp-wp/public/partials/single-post/post-thumbnails.php on line 29
    

    What can I do?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mohsin Rafique

    (@mohsinrafique)

    Hi @boldt,

    You can remove this warning by tweaking a file post-thumbnails.php at the following path.

    /home/www/vang.nu/wp-content/plugins/amp-wp/public/partials/single-post

    Step 1: Open post-thumbnails.php file.

    Step 2: Go to the line # 29.

    Step 3: replace the following condition

    if( isset( $img['src'] ) && getimagesize( $img['src'] ) !== false && $show_image_thumbnail && has_post_thumbnail() ) {

    with this one

    if( isset( $img['src'] ) && $show_image_thumbnail && has_post_thumbnail() ) {

    Step 4: Save the file

    You’re done.

    Let me know if you have any further questions/concerns.

    Thanks,

    • This reply was modified 5 years, 11 months ago by Mohsin Rafique. Reason: Formatting Issue
    Thread Starter Mikael Boldt

    (@boldt)

    Thank You very much.

    Plugin Author Mohsin Rafique

    (@mohsinrafique)

    You’re welcome.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warnings’ is closed to new replies.