• Resolved bigalownz

    (@bigalownz)


    hi in installed this theme

    and i get this error
    PHP Warning: getimagesize(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /var/www/wp-content/themes/simple-days/404.php on line 13\nPHP message: PHP Warning: getimagesize(https://***.com/wp-content/themes/simple-days/assets/images/404.jpg): failed to open stream: no suitable wrapper could be found in /var/www/wp-content/themes/simple-days/404.php on line 13\n’

    I know it’s a PHP configuration issue. However, I can’t see any reason why the code is calling getimagesize on the URL, when you can use wp_get_attachment_image_src, which will get the data via the filesystem instead.

    Setting allow_url_fopen=1 is seen as a potential security risk. That’s why my hosting provider has set this variable to zero.

    So please change your theme to use wp_get_attachment_image_src in stead of getimagesize

    thanks

Viewing 16 replies (of 16 total)
Viewing 16 replies (of 16 total)
  • The topic ‘php error’ is closed to new replies.