• Resolved bigalownz

    (@bigalownz)


    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): 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)
  • Theme Author YAHMAN

    (@back2nature)

    Thank you for your report.
    Fixed 404 page.
    Please update to 0.9.84.

    Thread Starter bigalownz

    (@bigalownz)

    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

    (@back2nature)

    Thank you for your report.
    Fixed again.
    Please update to 0.9.86.

    Thread Starter bigalownz

    (@bigalownz)

    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

    (@bigalownz)

    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

    (@back2nature)

    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

    (@bigalownz)

    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.
    Thread Starter bigalownz

    (@bigalownz)

    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

    (@back2nature)

    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

    (@bigalownz)

    do you have a support email etc ?
    as i don’t want to post it on here

    Theme Author YAHMAN

    (@back2nature)

    Sorry, support is only here.

    Error messeage displayed in 404 page?
    or other page?

    Thread Starter bigalownz

    (@bigalownz)

    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

    the url loads fine on other themes

    Theme Author YAHMAN

    (@back2nature)

    I checked it.

    Please edit to delete tinyurl.

    Cause is a possibility of breadcrumbs.

    Fix when next update.

    Theme Author YAHMAN

    (@back2nature)

    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

    (@bigalownz)

    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)

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