WordPress.org

Ready to get started?Download WordPress

Forums

Special Recent Posts
Occasional PHP fatal error (10 posts)

  1. Delete Me
    Member
    Posted 2 years ago #

    Hi there,

    Occasionally I'm getting this error:

    PHP Fatal error: Call to a member function adaptiveResize() on a non-object in /home/xxx/public_html/wp-content/plugins/special-recent-posts/lib/phpimage.php on line 52

    It doesn't seem to happen often but thought I'd report it anyway.

    http://wordpress.org/extend/plugins/special-recent-posts/

  2. Luca Grandicelli
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks Lincoln,
    this bug usually comes out when an invalid image url is passed to the thumbnail-generator engine.
    I've noticed that some users has been occasionally experiencing this problem too, so the best that i can do is to have a look at the image url that is being passed.

    To do so, next time this issue occurs, i'll be grateful if you take note of the image url that is affected by this error.
    It's quite simple: it will be the one which is not showing at all :)

  3. Delete Me
    Member
    Posted 2 years ago #

    Thanks, that's the odd thing though, all my images show up fine, or rather, I think they do the next time another query is made for the images. I think what might be happening is that it's timing out before it can find and show the image and thus results in an error, and maybe that's why it only pops up every now and then.

    I'll keep an eye on it though, hopefully I'll be able to catch it in time to see what the image url looks like.

  4. Delete Me
    Member
    Posted 2 years ago #

    After a while I finally managed to capture this problem while the image wasn't showing, although it seems to be happening a LOT now for some reason.

    The PHP error is: File is not a valid image: /home/xxx/public_html/wp-content/uploads/ Fatal error</b>: Call to a member function adaptiveResize() on a non-object in /home/xxx/public_html/wp-content/plugins/special-recent-posts/lib/phpimage.php on line 42

    Here's the broken image link: http://www.habitationofjustice.com/wp-content/plugins/special-recent-posts/lib/phpimage.php?width=65&height=65&rotation=no&file=L2hvbWUvaGFiaWFkYTEvcHVibGljX2h0bWwvd3AtY29udGVudC91cGxvYWRzLw==

    I've compared this to the other image links and the only obvious difference I can tell is that the broken one is much shorter. Any help appreciated!

  5. Luca Grandicelli
    Member
    Plugin Author

    Posted 2 years ago #

    Lincon, this issue should be fixed in v2.0
    At the moment, no patch is expected for version 1.9 because the release of v2.0 is quite imminent.

  6. Delete Me
    Member
    Posted 2 years ago #

    Hope it's coming soon!

  7. Sylwia
    Member
    Posted 2 years ago #

    I have the same problem. First it was fine, and now I'm getting this error every time:

    Image file not found: //files/2011/09/plakat-analizujac-islamofobie-718x1024.jpg
    Fatal error: Call to a member function adaptiveResize() on a non-object in /wp-content/plugins/special-recent-posts/lib/phpimage.php on line 44

    And here's the image link:

    http://isni.pl/wp-content/plugins/special-recent-posts/lib/phpimage.php?width=100&height=100&rotation=no&file=/files/2011/09/plakat-analizujac-islamofobie-718x1024.jpg

    Is there some code we could insert that would fix that? I'll turn thumbs off for now, but I'll need them soon.

  8. Cyborg Feelings
    Member
    Posted 2 years ago #

    I have disabled special-recent-posts Plugin but I still get this error in my apache "error.log": PHP Fatal error: Call to a member function adaptiveResize

    [Thu Dec 01 05:38:29 2011] [error] [client xx.xxx.xx.117] PHP Fatal error: Call to a member function adaptiveResize() on a non-object in /wp-content/plugins/special-recent-posts/lib/phpimage.php on line 42

    I donĀ“t use this plugin anymore why do I still get this error? Should I delete this plugin, or will it cause more problems by deleting?

    I use Thumbnail function from Plugin: custom-image-sizes
    I don't understand how to find who is creating this error.. the Thumbnails?

    Thank you for all advices

  9. Luca Grandicelli
    Member
    Plugin Author

    Posted 2 years ago #

    Uninstall the plugin, via WordPress.

  10. Cyborg Feelings
    Member
    Posted 2 years ago #

    I had deactivated this plugin via WordPress but it was still spitting out errors in error.log - Now I have deleted this plugin via WordPress and the error is gone :-)
    But now I wonder about other 70 Plugins which I have installed but they all are deactivated cause I don't use them right now but soon I will need to combine/edit/improve and make some useful plugins to suite my site and don't want to search/download again.
    I thought it was safe to "deactivate" plugins but now I should delete everything that I don't use.
    Do WordPress VERIFY plugins that they offer on WordPress Plugin Download section or can anyone upload anything there which can cause errors even when its deactivated?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic