Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datatables and EventCalendar Stuck with Loading Dots #648

Closed
acminor opened this issue Mar 25, 2021 · 14 comments
Closed

Datatables and EventCalendar Stuck with Loading Dots #648

acminor opened this issue Mar 25, 2021 · 14 comments
Labels
Milestone

Comments

@acminor
Copy link

acminor commented Mar 25, 2021

Setup

  • MW version: 1.35.1
  • DB (MySQL etc.): SQLite 3.27.2
  • PHP version: 7.3.27 (apache2handler)
  • SMW version: 3.2.2
  • SRF version: 3.2.0
  • Browsers and versions (if applicable): Tested with current Firefox 86.0.1 and Safari (iPad)

Issue

I tried to use the eventcalendar format for displaying a calendar in my personal wiki. The loading-dots never disappeared. I have tried to diagnose the issue; however, I have not been able to determine why the loading-dots never disappear. It appears that maybe the javascript for the eventcalendar is never loaded.

The same issue persists for datatables format as well.

Steps to reproduce

I cannot read French so using the sandbox is a little difficult.
Below are the steps.

  1. Create a test event on page Test calendar event
[[Has event::Test Event]]
[[Has event start::2021-03-25]]

[[Category:Calendar test]]
  1. Create empty Category:Calendar test
  2. Create a calendar wiki page Calendar test
{{#ask:
 [[Category:Calendar test]]
 |?Has event=title
 |?Has event start
 |?Has event end
 |?Has event description=description
 |?Has event icon=icon
 |?Has event color=color
 |?Has event location=location
 |legend=top
 |format=eventcalendar
 |defaultview=month
}}

Expected result:

Calendar will pull up.

Observed result:

Stuck with the loading "..." GIF.

Stacktrace

No stack trace.

@kghbln
Copy link
Member

kghbln commented Mar 26, 2021

Thanks for reporting. This can also be observed on sandbox / eventcalendar and sandbox / datatables. The cause is probably Error: Unknown module: jquery.ui.core as:

Browser console gives this error:

Error: Unknown module: jquery.ui.core
    sortDependencies https://sandbox.semantic-mediawiki.org/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=medik:8
    sortDependencies https://sandbox.semantic-mediawiki.org/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=medik:8
    sortDependencies https://sandbox.semantic-mediawiki.org/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=medik:8
    resolveStubbornly https://sandbox.semantic-mediawiki.org/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=medik:9
    load https://sandbox.semantic-mediawiki.org/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=medik:20
    <anonymous> https://sandbox.semantic-mediawiki.org/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=medik:61
    <anonymous> https://sandbox.semantic-mediawiki.org/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=medik:61
load.php:2:567

@kghbln kghbln added the bug label Mar 26, 2021
@gesinn-it-gea
Copy link
Member

TODO: Verify, if https://phabricator.wikimedia.org/T219604 is related

@gesinn-it-gea
Copy link
Member

See #621

@kghbln
Copy link
Member

kghbln commented Apr 6, 2021

See #621

So we need to break compat with 1.31 or is there another way?

@gesinn-it-gea
Copy link
Member

@kghbln I did not have time to look into it in detail if it could be fixed without breaking compat with 1.31. I think it is important to make JS testing a part of the CI workflow. A part of this journey is #652 .

@gesinn-it-gea
Copy link
Member

@kghbln I would definitely not break compat with 1.31 until both, SMW and SRF are fully ready for MW 1.35. If technically required, we should branch 4.x.

@danielriedmueller
Copy link

Hello! I have the same issue. Just wanted to ask if there is an solution already? Thank you!

@gesinn-it-gea
Copy link
Member

@danielriedmueller you can try to patch your installation with fixes provided by #621 and share with us, if this worked for you.

@danielriedmueller
Copy link

danielriedmueller commented Apr 19, 2021

I replaced Resources.php with the the modified one from the patch, and now the error is gone and datatables is loading.

@acminor
Copy link
Author

acminor commented Apr 20, 2021

I can also confirm that I can get datatables loading with the corrected Resources.php.

@kghbln
Copy link
Member

kghbln commented May 5, 2021

In SimpleBatchUpload this code was added to help the cause: https://github.com/ProfessionalWiki/SimpleBatchUpload/blob/master/src/SimpleBatchUpload.php#L99

@Megajoul
Copy link

Sorry but #653 is still not solved with #621

@gesinn-it-gea
Copy link
Member

gesinn-it-gea commented Nov 11, 2021

... we are at the moment fixing QUnit tests. There is definitely something in the water. Stay tuned. Ping @gesinn-it-wam .

@kghbln
Copy link
Member

kghbln commented Feb 10, 2022

I guess in the meantime it is pointless to try adding some shim to support both MW 1.31 an 1.35. On 1.31 you need to use SRF 3.2.x and on MW 1.35 SRF 4.0.x.

For SRF 4.0.x on MW 1.35.x the eventcalendar works gain. Thus closing.

@kghbln kghbln closed this as completed Feb 10, 2022
@kghbln kghbln added this to the SRF 4.0.0 milestone Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants