I've looked at that enough times I should have known that by now.
Originally Posted by hillman
As for the problem itself-
Beginning where it loads ca_sfu_icat_motd: First thing I notice is all 5 GET requests have a code of 200, so nothing obvious there. "isup" is the first request, that responds "ok".
The second GET I see is for global.js. That responds correctly with all the correct information I've got put in on the Settings page. It does see paPollingInterval and does send a value of 900000. The JSON tab also correctly shows paPollingInterval set at 900000. I've got more to say about this one below.
The third GET looks like an attempt to see what my current pa message should be.
That gets a response of "". I'm not sure if that's a problem or not.
The last two look alright. Those are looking for my lastseen and showtips. The responses are the correct file name, and a value of "true", respectively.
Now, back to the second GET from above. Here's what the request is.
That got me looking around for a file on the Apache side named global.js. I didn't find one (I'm sure you knew that already), but I did run across the file "rest.php" inside the "_util" directory. Here are three of the variables defined in that file:
Now, I had a problem when first setting this up, I could get to the settings page just fine, and then I could get to either one of the two message pages. But, just one time. After that, the links were broken. In the index.html files in both the "pa" and "tips" directories, there were a few links pointing to your home directory, which of course I don't have. After adjusting those links the pages worked properly. Do you think something similar could be happening in the rest.php file?
$restUrl = "https://cgi.sfu.ca/~hillman/zimbrarest.cgi/motd/$type/".$id.".js?art=$token";
$settingsUrl = "https://cgi.sfu.ca/~hillman/zimbrarest.cgi/datastore/motd/global.js?art=$token";
$setSettingsUrl = "https://cgi.sfu.ca/~hillman/zimbrarest.cgi/datastore/motd/global/$var";