Error message

Posted in

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,

16 Responses to Error message

  1. uk September 3, 2013 at 4:23 am #

    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,

    • kento September 3, 2013 at 4:14 pm #

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

  2. uk September 3, 2013 at 4:14 am #

    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,

    • kento September 3, 2013 at 4:13 pm #

      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. kento September 2, 2013 at 8:34 pm #

    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. uk August 22, 2013 at 7:24 am #

    Hi Kento,

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

    Thanks,

    • kento August 29, 2013 at 8:51 am #

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

  5. uk August 16, 2013 at 4:11 am #

    Hi Kento,

    Did you hear anything back from the BC author?

    thanks,

    • kento August 22, 2013 at 8:07 am #

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

  6. uk August 15, 2013 at 4:32 pm #

    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.

    • kento August 15, 2013 at 4:35 pm #

      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. uk August 15, 2013 at 4:20 pm #

    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

    • kento August 15, 2013 at 4:30 pm #

      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. uk August 15, 2013 at 4:04 pm #

    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.

    • kento August 15, 2013 at 4:26 pm #

      I’ll check with the author.

  9. kento August 15, 2013 at 1:22 pm #

    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?

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share