Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • I have the exact same problem. Recently upgraded WP and the WPSuperCache plugins. No settings changes. And am getting the same symptoms. The only difference is that my site is much smaller (~ 150 posts/pages).

    If I delete the cache from the WPSuperCache -> Contents tab and then attempt a PreLoad, it doesn’t appear to cache anything. Even after an hour, the only pages that are cached (in the Cache Stats) are the ones that are manually visited since the clearing of the cache.

    I have enabled debugging. Don’t see anything significant for the PreLoad, but, every time a page/post is accessed, there are a bunch of entries indicating that a cache does not exist an new one needs to be created for that page/post. But, once this is done, that page/post is added to the cache and can be verified using the list of cached files in the Contents tab.

    Any idea why PreLoad has stopped working?

    Found the issue and fixed it. For anybody else that encounters a similar issue and does not want to (or cannot afford to) take the site offline and disable all the plugins to test, here’s what I did:

    1. After a fair amount of research, figured out that the attribute that determines whether the “Revisions” Meta Box shows in Screen Options is WP_POST_REVISIONS. This is set to “True” by default but, can be overridden in wp_config.php. More info here.

    2. Downloaded via FTP a copy of my entire web site. Using a text editor that can do a full-text search of *all* files (I used UltraEdit), I searched for WP_POST_REVISIONS.

    3. Found that it was being set to FALSE by a plugin – “postie” – on line 3 of postie-functions.php.

    4. Edited that file and commented out the line. Made a backup on my local system where I backup the few plugin files that I have had to override/hack so I can reapply my hacks after updating the plugin if needed. The first few lines of the file should look like this:

    <?php
    $revisions= WP_POST_REVISIONS;
    //define('WP_POST_REVISIONS', false);     <<-- Commented this line
    //define('POSTIE_DEBUG', true);
    if (!ini_get('safe_mode')) {

    And voila… The Revisions meta box is visible again for posts and pages.

    Thread Starter mediocrefred

    (@mediocrefred)

    Found the issue and fixed it. For anybody else that encounters a similar issue and does not want to (or cannot afford to) take the site offline and disable all the plugins to test, here’s what I did:

    1. After a fair amount of research, figured out that the attribute that determines whether the “Revisions” Meta Box shows in Screen Options is WP_POST_REVISIONS. This is set to “True” by default but, can be overridden in wp_config.php. More info here.

    2. Downloaded via FTP a copy of my entire web site. Using a text editor that can do a full-text search of *all* files (I used UltraEdit), I searched for WP_POST_REVISIONS.

    3. Found that it was being set to FALSE by a plugin – “postie” – on line 3 of postie-functions.php.

    4. Edited that file and commented out the line. Made a backup on my local system where I backup the few plugin files that I have had to override/hack so I can reapply my hacks after updating the plugin if needed. The first few lines of the file should look like this:

    <?php
    $revisions= WP_POST_REVISIONS;
    //define('WP_POST_REVISIONS', false);     <<-- Commented this line
    //define('POSTIE_DEBUG', true);
    if (!ini_get('safe_mode')) {

    And voila… The Revisions meta box is visible again for posts and pages.

    I have the same issue now. Did you resolve yours and if so, how?

    Thanks.

    Just installed this plugin. Same error while activating. WordPress 3.3.1.

    Thread Starter mediocrefred

    (@mediocrefred)

    No, I haven’t tried any of those steps. The site is live and so, I’d rather not do anything that would cause loss of functionality.

    Is there any way to look for this specific setting/option and enable it via the backed (phymyadmin)?

    Thread Starter mediocrefred

    (@mediocrefred)

    One suggestion – if you can find a way to either have separate tabs for the various sections (General, Events, Locations, Categories, Bookings, etc.) on the Settings page or have an accordion design (expanding/collapsing sections), it would make the Settings page much easier to use.

    Thanks,
    MediocreFred.

    Thread Starter mediocrefred

    (@mediocrefred)

    Duh… it was hiding in plain sight! Thanks Marcus.

    By the way, I have been getting more and more comfortable with the Events Manager Plugin. I have about 10 custom attributes and use place holders and filters to format the events list and single event pages as needed.

    I must say that I am very impressed with the amount of functionality that is included in this plugin. There are also ample hooks to allow for a ton of customization. Very well thought out!

    I’ve been reading bits about the next major version of Events Manager. Hope it doesn’t break any of my customizations (made exclusively using the Settings page and my own custom plugin that uses EM’s filters for formatting).

    Thanks,
    MediocreFred.

    mediocrefred

    (@mediocrefred)

    Just curious… how is this different than adding a column to the Events html (header and body) sections in the Settings page? I have used this to add a thumbnail image as well as tweak the Date and Time fields in the Events list table.

    Thanks,
    MediocreFred.

    Thread Starter mediocrefred

    (@mediocrefred)

    Figured it out…

    First mistake – Had forgotten to activate my plugin ??

    Final function:

    add_filter('em_event_output_placeholder','my_em_approxdate_placeholder',1,3);
    function my_em_approxdate_placeholder($replace, $EM_Event, $result){
    	global $wp_query, $wp_rewrite;
    
    	$findme = 'ApproxDate';
    	$pos = strpos($result, $findme);
    
    	if ($pos === false) { }
    	else {
    		$replace = 'none';
    		if( $EM_Event->attributes[$result] == '' ){
    			$sd = new DateTime($EM_Event->start_date .T. $EM_Event->start_time);
    			$replace = $sd->Format("F j, Y") ." <strong>at</strong> ". $sd->Format("g:i a");
    
    		}
    	}
    	return $replace;
    }

    Please let me know if there are any glaring errors in this approach.

    Thanks,
    MediocreFred.

    Thread Starter mediocrefred

    (@mediocrefred)

    Tearing my hear out on this one…

    In Event Settings, I have this custom attribute: #_ATT{ApproxDate}

    In Event Settings -> Default Single Event Format, I have replaced the date and time bits with <p> When #_ATT{ApproxDate} </p>

    I created a plugin with a single file and this function (followed tutorial and WP Codex instructions):

    add_filter('em_event_output_placeholder','my_em_approxdate_placeholder',1,3);
    function my_em_approxdate_placeholder($replace, $EM_Event, $result){
    	global $wp_query, $wp_rewrite;
    
    //	switch( $result ){
    //		case '#_ATT{ApproxDate}'
    	$findme = 'ApproxDate';
    	$pos = strpos($result, $findme);
    
    	if ($pos === false) { }
    	else {
    		$replace = 'none';
    		if( $EM_Event->attributes[$result] == '' ){
    		     // $replace = #j #M #Y #@_{ \u\n\t\i\l j M Y} at <i>#_12HSTARTTIME - #_12HENDTIME</i>;
    			$replace = $EM_Event->event_start_date;
    		}
    		break;
    	}
    	return $replace;
    }

    My goal is to replace the #_ATT{ApproxDate} placeholder in the Single Event Format with the event date and time at runtime if ApproxDate has been left blank. If not, I want to display whatever is in ApproxDate (typically, March 2012 or Spring 2012).

    I have 2 events one that has a blank ApproxDate and another that doesn’t. They both show up with no substitution. What am I doing wrong?

    Thanks,
    MediocreFred.

    Thread Starter mediocrefred

    (@mediocrefred)

    OK. I’ve answered both of my questions in the previous post.

    Read through the custom placeholders and conditional placeholders tutorials a couple of times. I have now created a WP plugin and am trying to come up with a function that can check the value of my custom attribute “ApproxDate” (#_ATT{ApproxDate}) and display the default date/time if this is blank/null or display the value of the custom attribute if not null.

    I am a little lost on how to write this function. I would really appreciate a code snippet that will do this for me.

    I have a couple of other similar custom attributes where I can then use this similar functionality.

    Thanks,
    MediocreFred.

    Thread Starter mediocrefred

    (@mediocrefred)

    Hi Marcus,

    Thanks for the replies. I really appreciate your help – unlike most other plugins that only support those that pay for the pro versions.

    I’ve been playing around with EM’s settings and the ability to customize the events list and event pages. A couple of follow up questions.

    1. What gets overwritten when I upgrade EM (minor/major upgrades)? Specifically, the page layout customizations made on the Settings page as well as new attributes added on the Settings page – do these get overeritten?

    2. We have events in the future that don’t have firm dates yet. For instance, we have some in “Spring 2012” or “Fall 2012” and others in “May 2012”. To be able to add these, I added a custom attribute called “ApproxDate”. I can set this value and have it show up just fine. However, I need to conditionally hide the Date and Time fields (since I cannot leave them blank while creating an event and need to dynamically decide to show either my ApproxDate attribute or the standard Date/Time fields). I am thinking of writing a function similar to HasBilling – that would check if the ApproxDate is not empty. If yes, it’ll display the ApproxDate, else, display the default Date/Time fields. Now, my questions is is this the best (well, good) way of implementing this and if so, where would I write this function? If your suggestions is to use one of EM’s php files, do I need to make sure I merge my changes in after every update?

    Thanks,
    MediocreFred.

    Thread Starter mediocrefred

    (@mediocrefred)

    Hi Marcus, can you please be a little more specific? I realize that I rambled, but, here are the basic questions…

    1. Events Manager has a shortcode called “event” (it’s not documented, but, I found it in the shortcodes.php and it appears to work fine). How do I customize what info gets displayed? For instance, I might want an image, a description and the venue and date/time in 3 separate columns. Will the options in the Events Manager settings page that let me customize a single event page apply to this too?

    2. If I use the Events_List shortcode or the out-of-the-box Events page to list the events, can I (if so, how) change the target of the event link to point to my WP page (that has the event shortcode in it)?

    3. How do I build a page that has a list of past events? Can I use the events_list shortcode and pass in date arguments/parameters (before today) to it? If yes, can this list be formatted differently than the list on the events page?

    4. How can I display the Google map only on the Location page and not on the event detail page or the one that is displayed using the “event” shortcode?

    5. The integration with wp e-commerce (as described in my previous post) seems straightforward – using EM’s “event” shortcode and wpec’s shortcode for a shopping cart that takes in “category” as a parameter. Do you see any gotchas?

    Can you please tell me which of these requires an experienced developer and for the other questions, can you please suggest solutions. I am a Java/c#/asp.net developer and work with css, javascript and html everyday. Have never done any php (except during my struggles with Drupal a few years back… <shudder>).

    Thanks,
    MediocreFred

Viewing 14 replies - 1 through 14 (of 14 total)