Title: php error
Last modified: February 19, 2019

---

# php error

 *  Resolved [bigalownz](https://wordpress.org/support/users/bigalownz/)
 * (@bigalownz)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-error-310/)
 * hi in installed this theme
 * and i get this error
    PHP Warning: getimagesize(): http:// 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([http://***.com/wp-content/themes/simple-days/assets/images/404.jpg](http://***.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 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/php-error-310/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/php-error-310/page/2/?output_format=md)

 *  Theme Author [YAHMAN](https://wordpress.org/support/users/back2nature/)
 * (@back2nature)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-error-310/#post-11222781)
 * Thank you for your report.
    Fixed 404 page. Please update to 0.9.84.
 *  Thread Starter [bigalownz](https://wordpress.org/support/users/bigalownz/)
 * (@bigalownz)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-error-310/#post-11226349)
 * thanks
    but i updated and now get this
 * Got error ‘PHP message: PHP Recoverable fatal error: Object of class WP_Error
   could not be converted to string in /var/www/wp-includes/formatting.php on line
   3796\n’
 *  Theme Author [YAHMAN](https://wordpress.org/support/users/back2nature/)
 * (@back2nature)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-error-310/#post-11227135)
 * Thank you for your report.
    Fixed again. Please update to 0.9.86.
 *  Thread Starter [bigalownz](https://wordpress.org/support/users/bigalownz/)
 * (@bigalownz)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-error-310/#post-11233999)
 * updated but still shows in logs
 * Got error ‘PHP message: PHP Recoverable fatal error: Object of class WP_Error
   could not be converted to string in /var/www/wp-includes/formatting.php on line
   3796\n’
 *  Thread Starter [bigalownz](https://wordpress.org/support/users/bigalownz/)
 * (@bigalownz)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-error-310/#post-11235063)
 * forgot to add i also get this
 * Got error ‘PHP message: PHP Recoverable fatal error: Object of class WP_Error
   could not be converted to string in /var/www/wp-includes/formatting.php on line
   4176\n’
 *  Theme Author [YAHMAN](https://wordpress.org/support/users/back2nature/)
 * (@back2nature)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-error-310/#post-11235122)
 * I can’t reproduce the error.
    I need more error log.
 * Please update to 0.9.87.
 * If you not be able to solve than send to me more information .
 *  Thread Starter [bigalownz](https://wordpress.org/support/users/bigalownz/)
 * (@bigalownz)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-error-310/#post-11235194)
 * im using wordpress 5.1
    php-fpm 7.1.26 apache 2.4.38
 * i updated to 0.9.87
    ill wait 24 hours and see if it give me any other errors
    -  This reply was modified 7 years, 3 months ago by [bigalownz](https://wordpress.org/support/users/bigalownz/).
 *  Thread Starter [bigalownz](https://wordpress.org/support/users/bigalownz/)
 * (@bigalownz)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-error-310/#post-11238877)
 * did some test myself
    it only happens on some blog post but if i change to another
   theme the errors don’t happen
 * AH01071: Got error ‘PHP message: PHP Recoverable fatal error: Object of class
   WP_Error could not be converted to string in /var/www/wp-includes/formatting.
   php on line 4176\n’
 *  Theme Author [YAHMAN](https://wordpress.org/support/users/back2nature/)
 * (@back2nature)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-error-310/#post-11239001)
 * Error messeage for WordPress.
    not for Simple Days. I know the cause of the error
   is Simple Days. but unfortunately, your error messeage cannot identify the cause.
 * Error messeage displayed in 404 page?
    or other page?
 * Please tell me the url for your error page.
 *  Thread Starter [bigalownz](https://wordpress.org/support/users/bigalownz/)
 * (@bigalownz)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-error-310/#post-11239162)
 * do you have a support email etc ?
    as i don’t want to post it on here
 *  Theme Author [YAHMAN](https://wordpress.org/support/users/back2nature/)
 * (@back2nature)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-error-310/#post-11240687)
 * Sorry, support is only here.
 * Error messeage displayed in 404 page?
    or other page?
 *  Thread Starter [bigalownz](https://wordpress.org/support/users/bigalownz/)
 * (@bigalownz)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-error-310/#post-11240866)
 * 404 page is fine and other pages no error message
 * it only happens on some post i get the error in the server logs
 * the post only loads the header then nothing loads after
    here is the url
 * [http://tinyurl.com/y2cmlj8d](http://tinyurl.com/y2cmlj8d)
 * the url loads fine on other themes
 *  Theme Author [YAHMAN](https://wordpress.org/support/users/back2nature/)
 * (@back2nature)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-error-310/#post-11240908)
 * I checked it.
 * Please edit to delete tinyurl.
 * Cause is a possibility of breadcrumbs.
 * Fix when next update.
 *  Theme Author [YAHMAN](https://wordpress.org/support/users/back2nature/)
 * (@back2nature)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-error-310/#post-11240943)
 * Part of the categories url is wrong.
    Like this *****.com/category//solo/ *****.
   com/category//girl-girl/ The double slash is not good. Please fix to single slash.
 * It will solve.
 *  Thread Starter [bigalownz](https://wordpress.org/support/users/bigalownz/)
 * (@bigalownz)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-error-310/#post-11249912)
 * thanks for your help
 * all fixed
 * it turned out to be a corrupt database table
    and the corrupt database table 
   was affecting some plugins too

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/php-error-310/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/php-error-310/page/2/?output_format=md)

The topic ‘php error’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/simple-days/0.9.191/screenshot.
   jpg)
 * Simple Days
 * [Support Threads](https://wordpress.org/support/theme/simple-days/)
 * [Active Topics](https://wordpress.org/support/theme/simple-days/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/simple-days/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/simple-days/reviews/)

 * 16 replies
 * 2 participants
 * Last reply from: [YAHMAN](https://wordpress.org/support/users/back2nature/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/php-error-310/page/2/#post-11250255)
 * Status: resolved