Title: Warnings
Last modified: December 8, 2018

---

# Warnings

 *  Resolved [Mikael Boldt](https://wordpress.org/support/users/boldt/)
 * (@boldt)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/warnings-44/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwarnings-44%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Mohsin Rafique](https://wordpress.org/support/users/mohsinrafique/)
 * (@mohsinrafique)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/warnings-44/#post-10965045)
 * Hi [@boldt](https://wordpress.org/support/users/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 7 years, 5 months ago by [Mohsin Rafique](https://wordpress.org/support/users/mohsinrafique/).
      Reason: Formatting Issue
 *  Thread Starter [Mikael Boldt](https://wordpress.org/support/users/boldt/)
 * (@boldt)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/warnings-44/#post-10978124)
 * Thank You very much.
 *  Plugin Author [Mohsin Rafique](https://wordpress.org/support/users/mohsinrafique/)
 * (@mohsinrafique)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/warnings-44/#post-11013813)
 * You’re welcome.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Warnings’ is closed to new replies.

 * ![](https://ps.w.org/amp-wp/assets/icon-256x256.png?rev=2552940)
 * [AMP WP – Google AMP For WordPress](https://wordpress.org/plugins/amp-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp-wp/reviews/)

## Tags

 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 3 replies
 * 2 participants
 * Last reply from: [Mohsin Rafique](https://wordpress.org/support/users/mohsinrafique/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/warnings-44/#post-11013813)
 * Status: resolved