Appointments+ Not Working

I just installed the Appoinments+ plugin and plugged a shortcode into a page and it is simply not working. Additionally, some pages that were setup by the plugin are also not working. Here are the pages:

https://jannus.org/make-an-appointment
https://jannus.org/make-an-appointment-2
https://jannus.org/sessions

As you can see I cannot select another day and populate the available hours for that day on the right hand side.

If I click on any of the days on the monthly calendar they do not change the day on the right whereby hours can be selected.

Also, if I click on an available time on the day that does display on the right I am not prompted to sign up for that hour or book it.

  • helena
    • WPMU DEV Initiate

    As per another post I disabled all plugins except WPMU dashboard and Appointments+ to make sure there was no conflict.

    The pages still are not working. This is disappointing considering this is put on a nearly fresh wordpress install. I installed it per the directions and it just does not work.

    Please, some assistance would be appreciated.

  • Mike
    • New Recruit

    Hi @helena

    Thanks for the post and welcome to WPMU DEV!

    I've had a look at your site and I can confirm that I'm getting the same problem too.

    Can you send details so that I can log in to your website and have a look?

    To send the login details you can send them through our secure contact form
    1) In the subject field add "Attn: Mike"
    2) Include a link to this thread in the email
    3) Include Wordpress Super Admin/network access
    4) Include FTP & cPanel details
    5) Include any relevant URLS for your site
    6) Be sure to select "I have a different question"

    If you do the above it will come through and be assigned to me.

    If you are having problems with the contact form you can send them to contact(at)wpmudev.org please make sure the subject line is Attn: Mike and all details are included :slight_smile:

    Cheers,
    Mike

  • Mike
    • New Recruit

    Hi @helena

    Thanks for sending the details.

    I had a bit of a poke around. It looks as though something has been removed from the TwentyTwelve theme, I'm not sure what but Appointments+ works fine with TwentyEleven, I've enabled that so go and check it out please.

    My guess is that some jQuery wasn't loading for the plugin, maybe it was being suppressed somewhere, whatever the reason, it works with TwentyEleven and should work with other themes.

    Cheers,
    Mike

  • helena
    • WPMU DEV Initiate

    Hi Mike,

    Thank you very much for your assistance! I uninstalled and re-installed twenty-twelve and it is now working with that theme. Some of my adjustments must have effected the appointments plugin.

    I'm going to mark this thread as resolved. Thank you.

  • helena
    • WPMU DEV Initiate

    Hi Mike,

    I actually want to followup on this. The error appears to have been in my page.php file. The only alteration I made was to remove the <?php get_footer(); ?> because I did not want a footer.

    Is there some information that appointments puts in the footer that requires me to have the file on the page?

    Regards,
    Helena

  • Mike
    • New Recruit

    Hi @helena

    Ah ok that explains it. get_footer() does not contain just the physical footer that you can see. It calls footer.php and executes all of the code there. There are closing tags for the <body> and <html> tags in there which are needed, but it also contains <?php wp_footer(); ?> which calls any final JavaScript and code, Appointments+ does have some code to be run here which is where the problem was.

    My advice would be to add the following to your footer.php replacing what is already there:

    <?php
    /**
     * The template for displaying the footer.
     *
     * Contains footer content and the closing of the
     * #main and #page div elements.
     *
     * @package WordPress
     * @subpackage Twenty_Twelve
     * @since Twenty Twelve 1.0
     */
    ?>
    	</div><!-- #main .wrapper -->
    	<!-- footer id="colophon" role="contentinfo">
    		<div class="site-info">
    			<?php do_action( 'twentytwelve_credits' ); ?>
    			<a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentytwelve' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentytwelve' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentytwelve' ), 'WordPress' ); ?></a>
    		</div --><!-- .site-info -->
    	<!-- /footer --><!-- #colophon -->
    </div><!-- #page -->
    <?php wp_footer(); ?>
    </body>
    </html>

    That should safely remove what you want to remove, but leave the website working. If you wanted to you could remove everything inside <footer> and </footer> which would leave you with this:

    <?php
    /**
     * The template for displaying the footer.
     *
     * Contains footer content and the closing of the
     * #main and #page div elements.
     *
     * @package WordPress
     * @subpackage Twenty_Twelve
     * @since Twenty Twelve 1.0
     */
    ?>
    	</div><!-- #main .wrapper -->
    </div><!-- #page -->
    
    <?php wp_footer(); ?>
    </body>
    </html>

    I hope that helps!

    Cheers,
    Mike

  • helena
    • WPMU DEV Initiate

    I reduced the footer.php to what is below before I saw your note and it appears to work:

    <?php
    /**
     * The template for displaying the footer.
     *
     * Contains footer content and the closing of the
     * #main and #page div elements.
     *
     * @package WordPress
     * @subpackage Twenty_Twelve
     * @since Twenty Twelve 1.0
     */
    ?>
    	</div><!-- #main .wrapper -->
    	<footer id="colophon" role="contentinfo">
    	</footer><!-- #colophon -->
    </div><!-- #page -->
    
    <?php wp_footer(); ?>
    </body>
    </html>

    Will that suffice?

    Thanks again,
    Helena

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.