Okay
  Public Ticket #2122999
migrate not working after update to latest version
Closed

Comments

  •  1
    Daniel started the conversation

    After updating to the latest version from august 19 I'm not able to view any event nor edit anything in the backend front end the sentence pops up to migrate the database but when I do so I don't is much happening. 

    status: Migrating locations...

    Status: Migrating organizers...

    Status: Complete

    Redirect to dashboard page 

    and nothing happened 

    only see 4 menu items


  •   Daniel replied privately
  • pixelpartner replied

    Hi There .. Same problem here. 

    what can I do?

  •  894
    Zhivko replied

    I've fixed the migration problem. 

    However, your front-end have issues and I'll need ftp access to check the debug log.


    Stachethemes Developer

  •   Daniel replied privately
  •  894
    Zhivko replied

    One of the events (id 531) had bad booking product ids and this was crashing the plugin.


    Stachethemes Developer

  •  1
    Daniel replied

    Thanks for looking into it 

    An other bug popping up --> Cant update external links 

    Edit: you cant make them blank when their is no need for the link anymore

  • pixelpartner replied

    I've fixed the migration problem. 

    However, your front-end have issues and I'll need ftp access to check the debug log.

    Was this for me? 
    How can I send you the ftp account via private messages ?

  •   Daniel replied privately
  •  894
    Zhivko replied

    Daniel , I've fixed the issue with the external link. It's a bug indeed. The field does not accept empty/invalid url addresses. We've overdone ourselves with the security there...

    The edit event button was visible because the calendar back-end visibility was set to public. I've changed it to "Administrator".


    pixelpartner,

    Please open ticket and send your ftp credentials there. Make sure to check the ticket as private.


    Stachethemes Developer

  • patrikj replied

    Hi there, the I have the same problem. It went into endless loop "Stachethemes Event Calendar - Migrate"->Database update required -> update database -> everything seems to process OK, but whenever I try to access the calendar, I get the "Stachethemes Event Calendar requires database update. To update go to Dashboard -> Stachethemes Event Calendar -> Migrate". 

  •  894
    Zhivko replied

    Hello patrikj,

    Please open private ticket and provide me with ftp and wp-admin credentials and I'll check what's going on.


    Stachethemes Developer

  • patrikj replied

    Sorry, I'm not allowed to do that. Thank you.

  •  894
    Zhivko replied

    Open file \stachethemes_event_calendar\stachethemes_event_calendar.php

    at the top change version number to 2.6.

    Then go to Dashboard -> St. Event Calendar -> Updater and update the plugin to 2.6.5.

    After the update try the migration tool again.



    Stachethemes Developer

  • patrikj replied

    Thank you! It worked!

  •  1
    Daniel replied

    Hello, selection of date and ticket not working in Safari! Error pointing back to the calendar page or error page over and over again! We are losing ticket sales because of this 

  •   Daniel replied privately
  •  894
    Zhivko replied

    Is the error happening only on Safari browser?


    Stachethemes Developer

  •  1
    Daniel replied

    For what I can find yes! 

  •  894
    Zhivko replied

    I don't seem to have problems with safari on mac or ios.

    Try clearing your browser cache.


    Stachethemes Developer

  •  1
    Daniel replied

    The client came with the problem, I have tested it and I have the same problem. I tested from a private window in safari, I even tried to disable to caching plugins but still the same problem. Im surprised it worked for you. 

    Please look at the attached screenshot. Not able to select date and ticket

  •  1
    Daniel replied

    Also shortcodes are not working in the event description?  I have a smartslider but it is not working nor does content blocks

  •  894
    Zhivko replied

    Turn off autooptimizer plugin and check if the tickets section is working.


    Stachethemes Developer

  •  1
    Daniel replied

    I did turn of autooptimizer and wp rocket

  •  894
    Zhivko replied

    Autoptimize is still turned on.


    Stachethemes Developer

  •  1
    Daniel replied

    I have tested the plugin with and without autoptimize turned on and of the problems stays the same. 

  •  1
    Daniel replied

    Is it possible to display shortcodes? 

  •  894
    Zhivko replied

    Add this filter in your theme functions.php file:

    add_filter('stec_get_description', function($desc) {
       return do_shortcode($desc); 
    });



    Stachethemes Developer

  •  894
    Zhivko replied

    I think I've found the problem. Could you check the booking again?


    Stachethemes Developer

  •  1
    Daniel replied

    Looks like everything is working fine now! tnx for the function shortcodes are working perfectly now!

  •  1
    Daniel replied

    When using a shortcode the shortcode is unpacked and is causing problems with some content? isn't is possible to have the shortcode not unpacked? 

  •  1
    Daniel replied

    Safari is related to caching of WP Rocket

  •  894
    Zhivko replied

    Sorry could elaborate what do you mean by unpacked shortcode?


    Stachethemes Developer

  •  1
    Daniel replied

    After saving the shortcode is gone but all the content of that shortcode is added to the content of that page. So all HTML is extracted from the shortcode. 

  •  894
    Zhivko replied

    That makes perfect sense now.

    Remove the filter I've sent you earlier:

    add_filter('stec_get_description', function($desc) {
       return do_shortcode($desc); 
    });

    and replace it with this one:

    add_filter('stec_event_get_front_data', function($data){ 
        $data['description'] = do_shortcode($data['description']);
        return $data; });

    Stachethemes Developer

  •  1
    Daniel replied

    Tnx for the code

    Could you help me out hiding the Coupon field? its acting strange. Coupons not being added or even invalid messages when they are valid. I would like to hide the field so they just can add them in the shopping card. 

  •  894
    Zhivko replied

    Add this css to your styles:

    input[name="stec_book_coupon"] { display: none !important; }

    Stachethemes Developer