• Hi,

    I put together a quick screenr grab so you can better see what I mean.
    https://www.screenr.com/5eY7

    I’m developing on my local host development, but I’ve also tested this on a live server with a fresh install of wordpress 3.5.1 and the newest Constant Contact version. Same results…

    It doesn’t appear to show the newest events even though they are active.. I’m using the shortcode [eventspot limit=3]
    It does however show the event if you direct link to it…

    Also, in the backend when you go to the “events” tab, it produces the following error:
    Warning: Invalid argument supplied for foreach() in \wp-content\plugins\constant-contact-api\admin\events.php on line 523

    If you click the “refresh events” tab then it will bring up the list of current events, be it active, completed or all.

    Any ideas why its doing this?

    https://www.ads-software.com/extend/plugins/constant-contact-api/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter e2tango

    (@e2tango)

    Any update regarding this? Surely I can’t be the only one who is experiencing this problem? I tested multiple times from multiple different servers and installs.. Only common link was using the same account number. But even then, I can’t see why it would have anything to do with the particular account….

    It essentially renders the plugin use-able at this point? I’ve tried digging into the code to see if I could address a fix but I wasn’t able to get it working.

    Thread Starter e2tango

    (@e2tango)

    For what it’s worth, I’ve narrowed the problem down to something to do with event caching or something..

    If you add “?refresh=events” to the page url on the frontend it displays the events just fine. Again, this isn’t really a fix, as it seems to be something to do with caching the API results from CC.

    Is there a fix coming for this? I’ve sent a couple emails, contacted Constant Contact and they say all issues like this have to go through the developer. Hoping to hear something back…..

    Thread Starter e2tango

    (@e2tango)

    I was also able to temporarily navigate the admin area without having to refresh the events tabs. TO do this you need to remove a bit of code from a few different lines.

    in events.php in the plugin/admin folder go to the following lines

    line: 461 change to:
    echo '<li>| <a href="'.add_query_arg('event_status', 'active').'"'.$class.'>Active <span class="count">('.count($Active).')</span></a></li>';

    Line: 465 change to:
    echo '<li>| <a href="'.add_query_arg('event_status', 'draft').'"'.$class.'>Draft <span class="count">('.count($Draft).')</span></a></li>';

    Line 469 change to:
    echo '<li>| <a href="'.add_query_arg('event_status', 'complete').'"'.$class.'>Complete <span class="count">('.count($Complete).')</span></a></li>';

    Line 473 change to:
    echo '<li>| <a href="'.add_query_arg('event_status', 'cancelled').'"'.$class.'>Cancelled <span class="count">('.count($Cancelled).')</span></a></li>';

    Line 458 change to:

    echo '<li><a href="'.remove_query_arg(array('event_status')).'"'.$class.'>All <span class="count">('.count($events).')</span></a></li>';

    Thread Starter e2tango

    (@e2tango)

    Well, I must say this is extremely weird. Real case of whack-a-mole here.
    I think this issues stems from one of the main api calls to the eventspot or something along those lines. It seems to be displaying 3 of the 4 events, but the 4th event now throws an error:

    Warning: extract() expects parameter 1 to be array, string given in \wp-content\plugins\constant-contact-api\functions.php on line 1167

    I can’t see anything unique about this event that would cause this error.

    If I try to view this events details through the wordpress admin it throws all kinds of weird issues. After I refresh it’s details it then works just fine….

    Thread Starter e2tango

    (@e2tango)

    Well, solved the last error.
    It stemmed from a problem in the “description field” entered in constant contact. It has to do with ‘. It looks like it was pasted from a Rich Text Document where it was registering as ? . This was causing it to throw a weird error.

    This likely has to do with the way the plugin and the API charsets are?

    Same problem.

    So your solution was to remove the ‘ from the event description?

    I’m surprised the developer hasen’t chimed in on this one, at least to acknowledge it’s an issue.

    Thread Starter e2tango

    (@e2tango)

    Yes, check your quotes or other special characters in the events description as it can cause issues with particular events it seems.

    Again, this seems to be a major flaw in the plugin and as you have said I am surprised the developer hasn’t responded to this thread. It’s really more than 1 issue I suppose, but these issues leave the plugins “event spot” features almost useless out of the box.

    I sent emails to the developer personally a month ago and still haven’t heard back :/ Maybe it’s not being developed anymore?

    Having the same problem. In /admin/events.php on line 523, the plugin is expecting an array for a foreach loop but it’s getting a string. Probably some un-escaped characters in the event description…

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Events not showing & backend bug (related?)’ is closed to new replies.