rliverman
Forum Replies Created
-
Forum: Plugins
In reply to: [Private groups] Visibility Not working after 3.0.4 updateLooks good to me. Thanks for the patch!
Forum: Plugins
In reply to: [Private groups] Visibility Not working after 3.0.4 updateIf its not affecting others it could be something specific to our install, but for us it was treating all forums as though they had no restrictions so all priveledges could view forums, topics, freshness of forums they shouldn’t be able to see.
When switched back to 3.0.3 the proper forums disappeared from the forums list.
Ryan
Until this issue is resolved I’m temporarily pulling the info from the database using post_meta, i.e.
get_post_meta($post->ID, '_event_start_date', true );But I’d like to find a solution that will allow us to use the events manager placeholders and have them work properly.
Thanks!
RyanEdit: it appears that for some, the content or EVENTNOTES are also getting pulled from the wrong post / area.
The proper date here is 3/3/2014 but the date is getting pulled from the last updated time (i.e. now) and the EVENTNOTES are being pulled from another post.
http://shenandoahcountyva.us/planning-committee/events/planning-commission-meeting-3/
Appears to happen every time post_id’s are the same.
Here is an example from another site on the multisite:
http://shenandoahcountyva.us/conservation/minutes/
The top two (only ones i checked) are having the same issue. Click through and you’ll see the dates change but oddly the title and content are connected to the right event.
I’d have to check the database to see which sites they are crossing with.
Thanks for looking into this, definitely appearing all across the multisite as more and more events are added and conflicts increase.
Ryan
Here it is, but clearer (the dump of the $EM_event) and with comments:
Notes from the Database:
The event in question is actually EVENT_ID #529 (from the global _em_events table) on POST_ID #88 (from the site’s particular _posts table)EM_EVENT OBJECT(
[EVENT_ID] => 104 (WRONG: this ID belongs to the event with POST_ID #88 on ANOTHER site on the multisite)
[POST_ID] => 88 (RIGHT, although this post ID is obviously used on other sites on the multisite)
[EVENT_SLUG] => IDA-MEETING (RIGHT)
[EVENT_OWNER] => 16
[EVENT_NAME] => IDA MEETING (RIGHT)
[EVENT_START_TIME] => 19:00:00 (WRONG, but correct for event #104 from that other site)
[EVENT_END_TIME] => 19:00:00 (WRONG, but correct for event #104 from that other site)So looks like some info is coming over correctly but it would be better (i think?) if all data was coming from the proper event id rather than the post id since post ids can be repeated across a multisite but the global event ID is unique?
Ryan
I should have mentioned this is a multisite install.
Okay I’ve found part of the issue, here is a very partial dump of the $EM_event variable:
EM_EVENT OBJECT ( [EVENT_ID] => 104 [POST_ID] => 88 [EVENT_SLUG] => IDA-MEETING [EVENT_OWNER] => 16 [EVENT_NAME] => IDA MEETING [EVENT_START_TIME] => 19:00:00 [EVENT_END_TIME] => 19:00:00
You can see that the slug and name are being pulled correctly but when looking in the database it seems that the “Event ID” in the global events table for this particular event is actually 529 not 104.
Another blog on the multisite also has a post 88 and THAT is where this incorrect event data (104) is coming from.
So the dates and times need to be pulled like the event slug and event name are being pulled, otherwise they will get data from the POST_ID rather than the correct EVENT_ID in the database which is a problem on multi-site installs.
I assume this is a bug, happy to help with more info.
Cool, can you mark the issue as resolved? Thanks!
Try going into “settings > pages” and then under the “events list / archives” tab turn off “show events search”
Ryan
You can change this under “settings > formatting > search form” and then change “Enable advanced fields?”.
Also the date (wrong) that is displaying isn’t tied to the publish date as this site was built in 2013 and this particular event was first published on 1/30.
Thanks for your speedy help, I love the plugin, just need to figure out this odd bug!
The file is already single-event.php as I created it to format the way these events were displaying.
The meta is coming from the event but is pulling the wrong date, that is the issue see:
<header class="entry-header"> <h1 class="entry-title"><?php echo $EM_Event->output('#_EVENTNAME'); ?></h1> <div class="entry-meta"> <?php echo $EM_Event->output('#_EVENTDATES').' - '.$EM_Event->output('#_EVENTTIMES'); ?> </div> </header> <div class="entry-content"> <?php echo $EM_Event->output('#_EVENTNOTES'); ?> </div>In that code, the #_EVENTNAME and #_EVENTNOTES functions are working perfectly, but the #_EVENTDATES and #_EVENTTIMES are not.
And when I dump the $EM_Event variable it has the incorrect start / end dates and time information even though all information in the database entry for the event is correct.
Ryan
Forum: Plugins
In reply to: [Exclude Pages] Plugin Stopped Working?I’m having this same issue and ran into the ‘reset’ happening when I have upwards of 125-150 pages marked as “Exclude”.
There is a note in the code that reads:
// SWFIXME: Is reindexing the array going to create a memory optimisation problem for large arrays of WP post/page objects?
Where the array of pages is being reindexed for neatness. I’m wondering if this ‘times out’ or causes some other issue and then the array of $pages is returned as blank and effectively resets.
Again, I’m no PHP expert but it seems Simon might be onto something with his own note.
Either way, until this addressed we have to stop using the plugin. I believe we are going to have to assign a meta_value to each page and then run a query before calling wp_list_pages and excluding those pages. Not ideal but until this ‘reset’ on large sites is fixed it will have to suffice.
Forum: Plugins
In reply to: [Exclude Pages] Plugin resets on larger websitesI’m also seeing this issue on a site with 475 published pages, about 30% of which are supposed to be hidden from the navigation via this plugin. Every so often the pages start appearing again and the “include this page in the navigation” checkbox is automatically ‘checked’ where it wasn’t checked before.
This is a huge issue / flaw in the plugin.
Forum: Plugins
In reply to: [Advanced Custom Fields (ACF®)] problem with WP 3.5.1Yes the package coming from WordPress is not delivering the full latest version of ACF. Until they fix it, go to:
https://github.com/elliotcondon/acf/archive/master.zip
To get the latest version.