WordPress.org

Ready to get started?Download WordPress

Forums

All-in-One Event Calendar
[resolved] Ajax in choosing dates/excludes doesn't work (39 posts)

  1. irolla
    Member
    Posted 1 year ago #

    Just installed this calendar (the latest premium version) to the latest WP.
    I'm trying to create an event, but I see nothing when click on date/time, exclude, etc. Looks like ajax doesn't work.
    I see no errors in Chrome dev console btw.

    All-day event?
    Start date / time:	   (GMT-7:00)
    End date / time:	   (GMT-7:00)
     Repeat...
     Exclude...

    http://wordpress.org/extend/plugins/all-in-one-event-calendar/

  2. irolla
    Member
    Posted 1 year ago #

    Also I'm not able to change view on calendar page from month to something else. It's available in option list but nothing happens after click on one of them.
    I see the following errors in dev console:

    Uncaught TypeError: Cannot read property 'length' of undefined jquery.js:2
    Uncaught TypeError: Cannot read property '1' of null load_views.js:59
    initialize_view load_views.js:59
    current_hash load_views.js:324
    f.Callbacks.o jquery.js:2
    f.Callbacks.p.fireWith jquery.js:2
    w jquery.js:4
    f.support.ajax.f.ajaxTransport.send.d jquery.js:4

    Do you guys have any working version? Maybe I should try 1.7?

  3. irolla
    Member
    Posted 1 year ago #

    Another error:

    Unsafe JavaScript attempt to access frame with URL http://mysite.com/calendar/?doing_wp_cron=1344280549.7780399322509765625000#action=ai1ec_posterboard&ai1ec_post_ids= from frame with URL https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=4343+Spencer+Str,++Torrance,+CA+90503&aq=&sll=51.495094,45.941571&sspn=0.009124,0.021522&t=m&ie=UTF8&hq=&hnear=4343+Spencer+St,+Torrance,+Los+Angeles,+California+90503&ll=33.846289,-118.360562&spn=0.00499,0.00854&z=15&output=embed. Domains, protocols and ports must match.
     %7Bmain,mod_util,mod_act,mod_act_s,mod_actbr,mod_adf,mod_appiw,mod_mg,mod_mssvt,mod_pphover,mod_rst,mod_strr%7D.js:785
  4. Yani Iliev
    Member
    Plugin Contributor

    Posted 1 year ago #

    @ irolla
    All versions of the plugin are working.
    Can you check your theme footer.php file and see if you have a call to wp_footer() in there?
    If not, you will need to add it.
    Does that solve the problem?

  5. irolla
    Member
    Posted 1 year ago #

    I have this call in my theme:

    # grep -C5 wp_footer ./wp-content/themes/u-design/footer.php
    		</div>
    	</div>
    
    	<div class="clear"></div>
    
    	<?php wp_footer(); ?>
        </div><!-- end wrapper-1 -->
    <?php
        if( $udesign_options['enable_cufon'] ) : ?>
    	<script type="text/javascript"> Cufon.now(); </script>
    <?php
  6. irolla
    Member
    Posted 1 year ago #

    And I've already tried to completely reinstall calendar. It doesn't help.

  7. Yani Iliev
    Member
    Plugin Contributor

    Posted 1 year ago #

    Can you give me a link to your website?

  8. irolla
    Member
    Posted 1 year ago #

    It's under construction. I can give you a link with pass&login in private

  9. irolla
    Member
    Posted 1 year ago #

    I've added some debug:

    ./wp-content/plugins/all-in-one-event-calendar/app/view/admin/js/scripts/calendar/load_views.js:
    50         var initialize_view = function() {
     51                 // Make current view actively selected in view dropdown button.
     52                 var classes = $('body').attr( 'class' ).split( ' ' );
     53                 console.log("[debug] classes = " + classes); // DEBUG
     54                 for ( i in classes ) {
     55                         // Extract current view from the body class.
     56                         var matches = /ai1ec-action-([\w]+)/.exec( classes[i] );
     57                         console.log("[debug] matches = " + matches); // DEBUG
     58                         if ( matches != null ) break;
     59                 }
     60                 // Get the dropdown menu link of the active view.
     61                 var $selected_view = $( '#ai1ec-view-' + matches[1] );

    Results:

    [debug] classes = page,page-id-125,page-template,page-template-page-FullWidth-php,logged-in,admin-bar,customize-support,undefined load_views.js:53
    [debug] matches = null load_views.js:57
    [debug] matches = null load_views.js:57
    [debug] matches = null load_views.js:57
    [debug] matches = null load_views.js:57
    [debug] matches = null load_views.js:57
    [debug] matches = null load_views.js:57
    [debug] matches = null load_views.js:57
    [debug] matches = null load_views.js:57
    Uncaught TypeError: Cannot read property '1' of null : load_views.js:61

    Looks like there is no 'ai1ec-action-' classes

  10. Yani Iliev
    Member
    Plugin Contributor

    Posted 1 year ago #

    You can use this form for pass/login info: http://help.time.ly/customer/portal/emails/new

  11. irolla
    Member
    Posted 1 year ago #

    sent

  12. irolla
    Member
    Posted 1 year ago #

    I've replied to help@then.ly with wp-admin credentials. Did you get it?

  13. irolla
    Member
    Posted 1 year ago #

    Just did the following things:
    1. Installed new wordpress
    2. Installed my wp theme
    3. Installed all-in-one calendar plugin 1.8.2 from WP repo
    4. Added event - ajax works OK when adding dates for event
    5. Upgraded to 1.8.3 premium version
    6. Ajax stopped working in 'Add event'

    I've already sent an address of the new installation to your email, please check it.

  14. irolla
    Member
    Posted 1 year ago #

    Hey guys,
    Any progress on this issue? You still have an access to my installation.

  15. Yani Iliev
    Member
    Plugin Contributor

    Posted 1 year ago #

    @ irolla
    I am looking at the problem right now, will update you shortly

  16. irolla
    Member
    Posted 1 year ago #

    It's still doesn't work :(
    Nothing in developer console(chrome), nothing in php-logs.

  17. irolla
    Member
    Posted 1 year ago #

    I've already tried to activate one of standart WP themes and ajax still doesn't work in wp-admin -> events -> add event -> choose date

  18. irolla
    Member
    Posted 1 year ago #

    I found it:
    ./wp-content/plugins/all-in-one-event-calendar/app/controller/class-ai1ec-app-controller.php:
    // Load the js needed when you edit an event / add a new event
    if( $this->check_if_creating_new_event() === TRUE || $this->check_if_editing_event() === TRUE ) {
    // Load script for adding / modifying events
    $script_to_load = 'add_new_event.js';
    }
    If I comment out the condition then it loads "add_new_event.js" and I'm able to pick up a date and time in "add event" admin page.

    @yani.iliev could you please check it?

  19. TekhneCO
    Member
    Posted 1 year ago #

    @irolla, how did you comment out the if statement? Tried that and it didn't work for me.

  20. irolla
    Member
    Posted 1 year ago #

    // Load the js needed when you edit an event / add a new event
    //if( $this->check_if_creating_new_event() === TRUE || $this->check_if_editing_event() === TRUE ) {
    // Load script for adding / modifying events
    $script_to_load = 'add_new_event.js';
    //}
  21. TekhneCO
    Member
    Posted 1 year ago #

    Thanks for sharing the code. Still not working for me.

    @yani.iliev -- I'm having the same problem here plus I can't clear Core Calendar update error message after manually FTPing theme folder to wp-content/.

    Clean install of WP 3.4.1
    Both errors (no date/core calendar) occur on ai1ec 1.8.2 and premium 1.8.3
    Uninstalled and re-installed both versions of 1.8.2 and 1.8.3 via FTP to no avail
    All plugins disabled
    Errors persist in FF 14.0.1 and Safari 5.1.7
    Errors persist in custom theme and WP default Twenty Eleven

    To add insult to injury, neither the intro video or privacy policy notations will clear either.

    Help?

  22. irolla
    Member
    Posted 1 year ago #

    @TekneCO try to go wp-admin -> events -> add new event and open source code of this page. Try searching "add_new_event.js".
    I had no such js before commented out the 'if' in class-ai1ec-app-controller.php, that's why nothing worked for me.

  23. TekhneCO
    Member
    Posted 1 year ago #

    @irolla, where did you insert the "add_new_event.js"?

  24. irolla
    Member
    Posted 1 year ago #

    @TekhneCO:
    If give me your IM, I'll try to help

  25. TekhneCO
    Member
    Posted 1 year ago #

    Very generous of you. I'm ----- on Google chat.

  26. TekhneCO
    Member
    Posted 1 year ago #

    @yani.iliev

    The wonderful @irolla and I were not able to solve the date/time popup problem I am having.

    Also, I do have the proper WP footer call, if that helps narrow down the issue.

  27. Yani Iliev
    Member
    Plugin Contributor

    Posted 1 year ago #

    @TekhneCO
    Can you fill a support request here: http://help.time.ly/customer/portal/emails/new
    I can only support a limited number of users, the rest will be taken by our support team.

    @ irolla
    The fix you applied is quite strange one. It makes me think that the problem has to do with your server configuration. I posted an update on your support ticket, let's move the conversation over there.

  28. irolla
    Member
    Posted 1 year ago #

    @yani.iliev
    Do you always get my replies via email? It's a bit confusing since there is no ticket number in "Subject field". Can I reply somewhere but not in email?

  29. thepathtohome
    Member
    Posted 1 year ago #

    Any resolution to this? I just completed a fresh install of WP 3.4.1 and the date picker was working great until I upgraded to the Free premium.

  30. thepathtohome
    Member
    Posted 1 year ago #

    Also nothing happens when I try to click the connect to facebook button.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags