Okay
  Public Ticket #2335455
Calendars disappear!
Closed

Comments

  •  8
    Bischbert started the conversation

    Hi support team, if have the problem, that the calendars on my webseite https://freie-sinfonie-tuebingen.de/ https://freie-sinfonie-tuebingen.de/kartenvorverkauf/ and https://freie-sinfonie-tuebingen.de/termine/ sometimes disappear. Sometimes on desktop, than on ipad, than on mobile. But I don't can say why. Then I purge the cache and on mobile safari I see the calendar, but not on mobile Chrome. Than I purge the cache and the calendar disappears on mobile safari but on mobile chrome it is there. 

    With cache I mean Website cache. 


    Sometimes this is on desktop, but more often on mobile. 


  •  771
    Zhivko replied

    If that's caching issue I suspect it's caused by invalid nonce.

    Try following: 

    Open file stachethemes_event_calendar\assets\php\inc\inc.admin-ajax-public-task-handler.php

    and delete lines 12 to 18:

    if (false === check_ajax_referer('stecApiVerifyNonce', 'security', false)) {
        echo wp_json_encode(array(
            'error'     => 1,
            'error_msg' => esc_html__('Invalid nonce', 'stec')
        ));
        exit;
    }

    Stachethemes Developer

  •  8
    Bischbert replied

    Hi Zhivko, This workaround works not everytime. After every update I change this file as mentioned. 

    Tomorrow I checked my site with mobile Chromebrowser on iPhone and with the first load, the events are gone. After second loading of the site, the events are there. 

    Please, can you improve this problem? 

    the problem was on the bottom of the site: https://freie-sinfonie-tuebingen.de 

  •  771
    Zhivko replied

    Hi,

    As of version 3.0.6 and above you no longer need to edit the core file. So you can restore it to its original state.

    We've added filter that allows you to disable the nonce verification.

    In your theme functions.php file add following code:

    add_filter('stec_admin_ajax_public_verify_nonce', function(){
       return 'false'; 
    });

    In the upcoming update we've added versioning of the js and css files which should prevent old cached files being loaded.


    Stachethemes Developer