• Yesterday I installed the latest version of EM and when you click on the event details link it goes to the 404 page.

    I saw that there were problems with this previously, but I thought that was fixed in this version? It appears that the code mentioned in those posts is already present in this version.

    I installed the free version as a trial as I was planning on upgrading to the paid version if I could get this working easily.

Viewing 10 replies - 16 through 25 (of 25 total)
  • Hi Marcus,

    Yes it was just when I set the Events page as the Front Page.

    Permalinks are all sorted – thanks

    Same issue running IIS7 Windows 2K8, and the following worked for me.

    define(‘EM_DISABLE_PERMALINKS’,true);
    to my wp-config.php file.

    I’m not sure whether or not this is an acceptable solution, and would love to hear if anyone has permalinks working correctly on IIS for Event Manager.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    this will get solved eventually.

    Same problem here. The event link won’t work if the events page used as front page. Hope it will be fixed soon.

    videoandfun

    (@videoandfun)

    Hey Guys, I have the same problem!
    Here is my “hard-coded” solution:

    Edit the index.php of your WordPress-Theme and post for example in this file:

    <?php
    /**
     * The main template file.
     *
     * This is the most generic template file in a WordPress theme
     * and one of the two required files for a theme (the other being style.css).
     * It is used to display a page when nothing more specific matches a query.
     * E.g., it puts together the home page when no home.php file exists.
     * Learn more: https://codex.www.ads-software.com/Template_Hierarchy
     *
     * @package WordPress
     * @subpackage Twenty_Eleven
     */
    
    get_header(); ?>
    
    		<div id="primary">
    			<div id="content" role="main">
    <?
    $events = EM_Events::get( apply_filters('em_content_events_args', $args) );
    $args['limit'] = get_option('dbem_events_default_limit'); //since we are passing this info to an output function or template, we should get all the events first
    $args['page'] = (!empty($_REQUEST['page']) && is_numeric($_REQUEST['page']) )? $_REQUEST['page'] : 1;
    $events_count = count($events);
    
    if( get_option('dbem_events_page_search') ){
    	em_locate_template('templates/events-search.php',true);
    }
    if( $events_count > 0 ){
    	//If there's a search, let's change the pagination a little here
    	if(!empty($_REQUEST['_wpnonce']) && wp_verify_nonce($_REQUEST['_wpnonce'], 'search_events')){
    		$args['pagination'] = false;
    		echo EM_Events::output( $events, $args );
    		//do some custom pagination (if needed/requested)
    		if( !empty($args['limit']) && $events_count > $args['limit'] ){
    			//Show the pagination links (unless there's less than $limit events)
    			$search_args = EM_Events::get_post_search() + array('page'=>'%PAGE%','_wpnonce'=>$_REQUEST['_wpnonce']);
    			$page_link_template = preg_replace('/(&|\?)page=\d+/i','',$_SERVER['REQUEST_URI']);
    			$page_link_template = em_add_get_params($page_link_template, $search_args);
    			echo apply_filters('em_events_output_pagination', em_paginate( $page_link_template, $events_count, $args['limit'], $args['page']), $page_link_template, $events_count, $args['limit'], $args['page']);
    		}
    	}else{
    		echo EM_Events::output( $events, $args );
    	}
    }else{
    	echo get_option ( 'dbem_no_events_message' );
    }
    ?>
    			</div><!-- #content -->
    		</div><!-- #primary -->
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    The “event link” issue still exists for me (WP 3.3, StudioPress theme “Manhattan 1.0”; Event Manager 4.305). I’ve checked that the plugin is configured correctly, so I guess it’s a problem with the permalink structure. If set to the default /?p=xxx the link to the single event page works as it should, but if I use any of the other permalink settings the link doesn’t call the single event page but loads the event listing (i.e. itself).
    Due to the server setup the custom permalink setting requires to put in “/index.php/” so it looks like e.g. /index.php/%postname%/
    That doesn’t work for the Event Manager plugin (though no problems with that for the rest of the site!).
    Any ideas how to go about? Already spent 4 hours today on that trying to figure things out.
    Your help is highly appreciated.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Aside from:

    Same issue running IIS7 Windows 2K8, and the following worked for me.
    
    define('EM_DISABLE_PERMALINKS',true);
    to my wp-config.php file.

    You could try the beta, as this now should be fixed.

    define(‘EM_DISABLE_PERMALINKS’,true); – seems to work (as far as I can tell from a quick check).

    But there’s another (unrelated) problem: Now I get the warning:
    Warning: session_start() [function.session-start]: Cannot send session cookie – headers already sent by (output started at /{path}/wp-config.php:1) in /{path}/wp-content/plugins/events-manager/classes/em-notices.php on line 11

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /{path}/wp-config.php:1) in /{path}/wp-content/plugins/events-manager/classes/em-notices.php on line 11

    Any idea what might be causing this?

    Okay, I solved the “warning” issue: it was caused by the text editor (UltraEdit). Codepage was set to UTF-8. UE then puts some extra characters before the <?php tag but doesn’t show them.

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘[Events Manager Plugin] Event Detail Links Not Working – Fresh Install’ is closed to new replies.