Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Bug: Event Calendar Pro

UserPost

2:05 am
May 18, 2011


croemmich

New Member

posts 1

1

There is a bug casused when a non-default wordpress database prefix is used in coordination with Event Calendar Pro. Currently wp_posts is hardcoded in rather than $wpdb->posts.post_type.

I've changed it in my code and it works fine, but I like to keep my plugins as vinallia as possible as to avoid regression when I update. Could you please fix it in a future release?

Line 82-86 in hardway-admin_rvy.php should be as follows.

if ( strpos( $query, "eventStart.meta_value as EventStartDate" ) ) {
	$query = str_replace( 
	"( eventStart.meta_key = '_EventStartDate' AND eventEnd.meta_key = '_EventEndDate' )", 
	"( ( eventStart.meta_key = '_EventStartDate' AND eventEnd.meta_key = '_EventEndDate' ) OR $wpdb->posts.post_type = 'revision' )", $query );
}

Thanks!

5:26 am
May 18, 2011


Kevin

Admin

posts 2502

2

Thanks for letting me know. This is now fixed in the Revisionary development code (1.1.5-dev).

I also searched the code to confirm that this is the only place I had wp_posts hardcoded.

2:46 pm
July 6, 2011


sethstevenson

Member

posts 10

3

Not sure if this is related but whenever I save a revision of an event using Event Calendar Pro v1.3.2 and Revisionary v1.1.5 it removes the start date, end date, google maps link checkbox, google map checkbox, and organizer selection.

It does maintain the venue selection and event cost though.

I'm also running a multisite install if that matters.


8:11 am
July 8, 2011


Kevin

Admin

posts 2502

4

I'm in contact with the ECP team about this, as I need some code to troubleshoot.

3:36 pm
July 8, 2011


sethstevenson

Member

posts 10

5

Thanks for looking into it!

8:51 am
August 1, 2011


sethstevenson

Member

posts 10

6

Any update on this?

9:19 pm
August 4, 2011


Kevin

Admin

posts 2502

7

I've established a cooperative relationship with the ECP development team, but that hasn't translated into any code changes yet.


About the Agapetry forum

Currently Online:

9 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1244

Posts: 5649

Members:

There are 1254 members

There are 1 guests


Kevin has made 2502 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin