WordPress.org

Ready to get started?Download WordPress

Forums

Cache Images
Errors (10 posts)

  1. David Radovanovic
    Member
    Posted 3 years ago #

    Warning: Invalid argument supplied for foreach() in /home/####/#####/######/wp-content/plugins/cache-images/cache-images.php on line 516

    which is:
    foreach ($domains as $domain => $num) :

    Warning: Cannot modify header information - headers already sent by (output started at /home/davidrad/public_html/chefs/wp-content/plugins/cache-images/cache-images.php:516) in /home/####/#####/######/wp-includes/classes.php on line 1601

    I tried the obvious which was removing any blank lines at the beginning or end of file... though no luck.

    Thanks for any help you could offer

    http://wordpress.org/extend/plugins/cache-images/

  2. Milan Dinić
    Member
    Plugin Author

    Posted 3 years ago #

    Sorry to hear this. This is something related to either your server, WordPress setup, or specific conditions on your site since I just tested latest version and it works as intended.

    Can you please tell me when and where you get this error and have you used plugin successfully before (either this or previous version)?

  3. David Radovanovic
    Member
    Posted 3 years ago #

    When updating old posts. No.

  4. Milan Dinić
    Member
    Plugin Author

    Posted 3 years ago #

    Please try development version, it tries to prevent displaying of this error though it won't cache images when error is present since I don't know why it is happening (very little information from you).

  5. Gigaa
    Member
    Posted 3 years ago #

    Im having this problem too and I´ve tried the plugin in 2 different hosts and still the same.

    Any progress ?

  6. David Radovanovic
    Member
    Posted 3 years ago #

    dimadin, are willing to make fixes for a fee? Thanks.

  7. David Radovanovic
    Member
    Posted 3 years ago #

    BTW the development version seems to have fixed the errors issue.

  8. Michelle
    Member
    Posted 3 years ago #

    I'm having this issue too, getting multiple errors:

    Warning: Invalid argument supplied for foreach() in /home/####/#####/######/wp-content/plugins/cache-images/cache-images.php on line 516

    This occurred when I added pages to a new WP menu in Appearance > Menus and tried to save it. When I surfed away, then back to the menus page, the error was gone. I am running a multisite installation of WordPress 3.0.2 on HostGator (LAMP setup).

    I'll continue running the current (non-dev) version for now and will continue watching to see when this happens so I can report back. Thanks!

  9. Michelle
    Member
    Posted 3 years ago #

    I also got the error when I add a new post. The error goes away after I save a draft and doesn't reappear.

  10. Milan Dinić
    Member
    Plugin Author

    Posted 3 years ago #

    After mmcginnis' more detailed replies, I'm quite sure that development version should fix this issue. I didn't consider that my hook would run on every saving/publishing of post so that I need to check if there are results with check for images.

    Later today I'll release a new version of a plugin that fixes this issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic