Error message

Hi,

I got these error messages on top of the dashboard page.

Warning: Invalid argument supplied for foreach() in /home/content/30/11045530/html/beta/wp-content/plugins/affiliates-pro/lib/ext/wordpress/class-affiliates-graph-renderer-wordpress.php on line 2

Warning: Invalid argument supplied for foreach() in /home/content/30/11045530/html/beta/wp-content/plugins/affiliates-pro/lib/ext/wp-init.php on line 2

can you please help!

thanks,


Comments

16 responses to “Error message”

  1. Hi Kento,

    Thank you for the help. I activated Business Calendar and it’s working now. BTW, is Luca reading this message as well? I see you @Luca here.

    thanks,

    1. Yes, I’ve pointed him to the conversation here.

  2. Thank you, Kento.

    After changing that one line, I was able to activate Business Calendar without any error. Are you saying there is another place where I need to update the code?

    thanks,

    1. You’re welcome, I’m glad I could help out with that. For the moment I don’t think you need to modify anything else, I’d wait for the updated release of the plugin.

  3. Hi,

    There is a small bug in Business Calendar’s event_pages.php, a filter function returns false when it should return an empty array. The fix is to return $posts instead of false as shown here.

    @Luca There is another possible execution flow where the filter function would also not return anything at all (after it adds a filter on the_posts in the last line of the function) where it eventually should also return an array.

    @uk You can change that line yourself while @Luca adds the fix and releases an update.

    Cheers

  4. Hi Kento,

    Sorry for the follow up. Any update on this please?

    Thanks,

    1. Not yet, I’ll post a follow-up here …

  5. Hi Kento,

    Did you hear anything back from the BC author?

    thanks,

    1. Hi, yes but we still need to find out what exactly happens. I’ll let you know as soon as we know.

  6. Thank you so much. Really appreciate if this could be fixed. I need both of the plugins to work together flawlessly for my project. Both are great plugins.

    I have disabled Business Calendar in the meantime.

    Thanks again.

    1. Ok thanks, once we find the reason for the conflict you should be able to use them together. I’ll update you on this here.

  7. I tried to update a member’s profile but got this after clicking the Update.

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/30/11045530/html/beta/wp-content/plugins/affiliates-pro/lib/ext/wordpress/class-affiliates-graph-renderer-wordpress.php:2) in /home/content/30/11045530/html/beta/wp-includes/pluggable.php on line 875

    1. Thanks, this is probably related. I would recommend to disable that plugin meanwhile. I’ve contacted the author and pointed him to this thread, I will get back when he responds.

  8. Yes, it was after I installed Business Calendar (http://codecanyon.net/item/business-calendar-wordpress-internal-calendar/2578840).

    Really appreciate if you could help me fix this. Thank you.

    1. I’ll check with the author.

  9. Hi,

    This might be due to a conflicting plugin. Can you please check with other plugins deactivated and gradually activating them until the errors appear? Also using one of the ‘standard’ themes (Twenty Twelve for example)?

    Also what versions are you using please?

Share