1 (edited by VC63 19-05-2017 13:18:29)

Topic: Warehouse web front end not completing queries

Apologies, I can't find a reference to anyone else having this problem, so I expect it is a local issue.  Just in case, though, I'll give it a try...


I'm having trouble with the web interface to the warehouse.  When I click on _any_  page that returns data - eg lookup lists / people, the first page loads without issue.

If I perform any other action - eg sorting the list, clicking on the second page etc, I get the 'waiting' symbol, presumably from a jquery script or something similar.  The page never returns.  See the attached screenshot.

I first saw this after upgrading to version 1.27 but I've just updated to 1.32.1 and it is still happening.  I haven't really had any need to use the web interface for a while but I could do with using it to edit some people data as it is quicker than just using database queries.

Any ideas?

PS I've tried it in Firefox and Opera

Post's attachments

Screenshot.jpg 113.02 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

2

Re: Warehouse web front end not completing queries

Hi
I would activate the debug tools in your browser and monitor the network traffic. Look for the request that is sent to the server when you perform an action, e.g. sorting, and examine the response. That might give us a clue.
I'm not observing any problem with our warehouse which is on 1.33.1.
Jim Bacon

3 (edited by VC63 10-06-2017 12:41:07)

Re: Warehouse web front end not completing queries

Thanks - I've had bit of time to try and sort it today.

I checked the return from the GET request when you run a query (or go to the next page).

The response is a JSON package containing the expected data, as you would expect with jquery, but it just didn't display.

Checking the javascript console showed a number of 404 errors relating to the media folder on the web server.  This included some jquery files:
eg /media/js/fancybox/source/jquery.fancybox.pack.js

This file in my installation is not in media/js/fancybox/source/ but instead is in media/js/fancybox/

To check where it is in the current version, I downloaded version 1.34.3 from github.

The media folder in the zip file is empty, as is client_helpers.  I assume this is to save space as these files don't change often.


I'm guessing my media files are from a much earlier version of the warehouse, and didn't get updated each time I downloaded an update.

There is no mention of updating the media files separately in this upgrade instructions but perhaps I started from a very low base!


Anyway, I've now downloaded v1.34.3, media, and client_helpers, and everything works.

Perhaps updating it directly via git works best?

4

Re: Warehouse web front end not completing queries

Well done for getting that fixed. It sounds like the warehouse code and media code had become inconsistent.

By way of explanation, an operational warehouse contains code from 3 repositories on Github
- Warehouse, https://github.com/Indicia-Team/warehouse
- Client Helpers, https://github.com/Indicia-Team/client_helpers
- Media, https://github.com/Indicia-Team/media

Client Helpers and Media are submodules of the Warehouse code. All 3 need to be kept up to date to ensure they work together correctly. This is not to do with saving space due to them not changing often: it is because they are used in the Drupal module as well and we do not want to maintain two copies of the same code.

Even if you use a Git client, you still have to pull changes from all 3 components but it is quicker and more reliable so I still recommend it over downloading the entire repositories to get updates.

Periodically, a download of the full package is made available but this does not happen for every release. These are available via http://www.indicia.org.uk/downloads and the documentation refers to upgrades from these.

Jim Bacon.