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

Could not find resource unsplash/js/user.js to load and other errors #146

Open
Siggi0904 opened this issue Sep 10, 2024 · 3 comments · May be fixed by #158
Open

Could not find resource unsplash/js/user.js to load and other errors #146

Siggi0904 opened this issue Sep 10, 2024 · 3 comments · May be fixed by #158

Comments

@Siggi0904
Copy link

Describe the bug:
Hi, I've installed splash 3.0.1 at NC 29.0.5.
Configured Wikimedia Commons as source and "car,anime" as search tags.

Error for search tags: Your searchterms likely did not yield results for: WikimediaCommons
Better to geht this info direkt in settings.

In logs I get the following error: Could not find resource unsplash/js/user.js to load
I cannot collapse these error, the tab crashes at Firefox 130.0.

If I let search tags empty, I get following error:
Trying to access array offset on value of type null at /var/www/clients/client11/web18/web/nc/apps/unsplash/lib/Provider/WikimediaCommons.php#68

Undefined array key "query" at /var/www/clients/client11/web18/web/nc/apps/unsplash/lib/Provider/WikimediaCommons.php#68

Server:

  • Nextcloud version: 29.0.5
  • Splash-App version: 3.0.1
@Siggi0904 Siggi0904 added the bug label Sep 10, 2024
@newhinton
Copy link
Contributor

This seems like there is a lot of unrelated issues going on.

Could not find resource unsplash/js/user.js to load

There is no such file in the sourcecode. What is trying to load this?

If I let search tags empty, I get following error:

That is expected. Though i probably should catch that and force some terms.

@newhinton newhinton added the Needs more Info This ticket requires more information to be worked on label Oct 6, 2024
@newhinton
Copy link
Contributor

The issue with wikimedia is that it's api is very "unreliable". "Car" does not work, but "Cat" does.

For valid searchterms you can try out this:

https://commons.wikimedia.org/w/api.php?action=query&generator=categorymembers&gcmtitle=Category:Cat&gcmlimit=100&gcmtype=file&prop=imageinfo&iiprop=url&format=json

Type this in your browser, and you get a list of images that will be choosen. Change Cat to your choosen searchterm. (Only one!)

For now, i would recommend using the wallhavencc provider.

@joshtrichards
Copy link
Member

In logs I get the following error: Could not find resource unsplash/js/user.js to load
There is no such file in the sourcecode. What is trying to load this?

script('unsplash', 'user');

PR #158 will fix this.

If I let search tags empty, I get following error:

Fixed in aba003e / released in v3.0.2.

Error for search tags: Your searchterms likely did not yield results for: WikimediaCommons
Better to geht this info direkt in settings.

Agreed. And we could probably do a better job dealing with other types of failures in the same spot.

@joshtrichards joshtrichards added 1. to develop and removed Needs more Info This ticket requires more information to be worked on labels Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants