Okay
  Public Ticket #2745383
Events not loading
Closed

Comments

  • Alex started the conversation

    Events are not loading unless I am logged in.

    The attached screenshot shows what is displayed if I am logged in (as an admin if that matters)

  • [deleted] replied

    Hi, Alex!

    Thank you for choosing Amelia.

    Issues like this are usually linked to some Security plugins, blocking access to non-logged-in users, or non-admin users. You would need to take a look if there's a security plugin or any access limitation settings that are applied on the page. 

    Looking forward to hearing from you. 

  • Alex replied

    Hi,

    we do not have any security plugins currently enabled and the page will still not load.

    It was loading for un-logged users, indeed we booked and created a user, but then it stopped.

    The only significant things I think we did in-between times were:

     - Remove some services after realising we did not need them (my client only runs fixed classes, i.e. events).

     - Unset 'Automatically create Amelia Customer user' as we decided we did not want to create users

     - Customise the booking form with some additional custom fields


    We are running WordPress 5.7 but I'm not sure if we updated that in-between times as well.

    It's important we sort this ASAP as the booking system was due to go live on Monday.

    Thanks,
    Alex



  • Alex replied

    Hi,

    I just tried deactivating Amelia and then reactivating it but no change.

    I then tried deactivating ALL of the other plugins, but the page still won't load.

    Testing incognito mode as well so caching won't be an issue.

    Thanks,
    Alex

  • Alex replied

    It also won't load the customer panel page - https://bluejayyoga.co.uk/yogis-member-page/ 

    If I inspect the page via Google Chrome there is an error:


    amelia-booking-cabinet-c4d7fb65afd294abee95.js:1 

    Uncaught (in promise) TypeError: Cannot read property 'data' of undefined
        at o.parseError (amelia-booking-cabinet-c4d7fb65afd294abee95.js:1)
        at o.<anonymous> (amelia-booking-cabinet-c4d7fb65afd294abee95.js:1)
        at k (amelia-booking-cabinet-c4d7fb65afd294abee95.js:1)
        at Generator._invoke (amelia-booking-cabinet-c4d7fb65afd294abee95.js:1)
        at Generator.e.<computed> [as next] (amelia-booking-cabinet-c4d7fb65afd294abee95.js:1)
        at n (amelia-booking-cabinet-c4d7fb65afd294abee95.js:1)
        at amelia-booking-cabinet-c4d7fb65afd294abee95.js:1

  • [deleted] replied

    Hi, Alex!

    Thank you for the investigation.

    1. Please check what's the PHP version of your WP (it should not be older than 7.0, if it is, please update it).

    2. Basically, this Error is referencing old JS files. These old files from ../wp-content/plugins/ameliabooking/public/js/chunks/ folder are being cached on the server. So, please, clear the site's cache, and if it doesn't help, reach out to your hosting provider, and ask them if the file is cached elsewhere on your server, and if they can delete that old file.

    If this doesn't work (but it should), please provide us with temporary Admin access, so our developers will look into the issue from the inside. You can post the credentials as a reply to this ticket, just make sure you use private mode.  We don't interfere with any data except for the plugin and, of course, we don't provide login details to a third party.

    Looking forward to hearing from you. 

  • Alex replied

    We were using PHP v7.2 but I have updated it to 7.4 anyway.

    I was browsing in incognito mode, so browser cache would not be an issue, I'm not sure what you mean by caching on the server>

    I spoke with Namecheap who host bluejayyoga.co.uk and they tell me there is no caching on our server (shared hosting)

    My concern is that it was working then stopped!


  •   Alex replied privately
  • Alex replied

    Is there an update on this, as we were supposed to be going live with the booking system today?

  • [deleted] replied

    Hi, Alex!

    Actually, we don't work on weekends (it was just me processing some urgent tickets in order to make Monday less stressful for me and for our customers as well). So sorry for the delay.

    I forwarded your case to our developers and will get back to you at the earliest possible time.

    Best Regards. 

  • Alex replied

    Hi Gregory,

    had your page been working?

    If so, do you know what you changed in between it working and not?

    I'm just wondering if there are 'similarities' that might help us determine the fault.

    Cheers,
    Alex

  • Gregory replied

    No it doesn't work.

    Unless I'm logged in ... 

    I haven't changed anything. I deactivated absolutely all the plugins, I emptied the cache on the server side and it did not change anything.

  • [deleted] replied

    Alex, 

    Our developer inspected your site and found out that Ajax response is returning additional info, besides JSON data. But he can't figure out where it comes from.

    Please send us a duplicated site or ZIP of the WP root folder for further investigation.

    Looking forward to hearing from you. 

  • [deleted] replied

    Hi, Gregory!

    As far as I know, it's not possible to send a private reply if you answer under a ticket that wasn't opened by you.

    Therefore, could you please open a ticket and provide us temporary WP Admin access? So, our developers will be able to log in to see what exactly is going on there. 

    Best Regards.

  • Gregory replied

    Thank you Liza for your answer,
    What is your e-mail address?

  • [deleted] replied

    Gregory,

    [email protected]

    You can open a ticket so we will be able to keep a track of our investigation. Just mention that it's addressed to me, and I will find it or my colleagues will forward it to me.


  •   Alex replied privately
  •   [deleted] replied privately
  • Alex replied

    Hi Liza,

    what's frustrating is that I only added that code whilst trying to improve the look and feel of the back end if WP Amelia customers were made WordPress Users (I did not like the dashboard showing and for some reasons both special media feed plugins showed up as well, albeit info only, so that code hid those elements).

    Adding the snippet did not remove the problem, but since I no longer need the code I'd added, I simply stripped it back and it now works,

    Thanks,
    Alex


  • [deleted] replied

    Alex,

    Thank you for the explanation, we might use this info for prospective cases.

    I'm glad the issue was resolved.

    Please feel free to contact us if you have any other questions.

    Best Regards.