Yeah, I understand there's not much you can do if you can't replicate the problem.

For anyone else reading this, I have already tried absolute URLs and just now I tried
"includes/gallery/simpson1.xml?nocache=" + new Date().getTime();," with no change.
Thank you for the suggestions, none the less.


It's still bugging me a little because the demo folder works when accessed directly.
Also for your info, I tried doing away with the directory structure of my site by moving all the php files into the same level and rewriting the links between them.
I genuinely thought that would solve the problem but it didn't either.

At one point I actually had the demo html file and my own pics.php side by side in the same folder.
The html accessed directly worked but the same code called within my pics page didn't.

Ah well, on the extreme off chance that I get any more info on this, I'll be sure to report it here.
Thanks.

If it's something you want to pursue (for personal interest) this person seems to have had the same issue in 2012.
http://juicebox.net/forum/viewtopic.php?id=337

Many thanks.

Thanks Steven.
I'm going to leave you alone now because I did a small survey on another forum and found plenty of iOS7/8 iphone 4/4s users on safari who have no problem with my galleries.

That combined with today's troubleshooting does prove it to these two devices, as much as I don't understand it.
Either way, the issue clearly isn't with Juicebox and I thank you once again for your time.

I can't think of any common ground between the two phones.
The other chap would be on a mobile network and I am on my home network (also tried with 3G).

The fact that your test galleries don't work for me is very strange indeed, however, as is the fact that directly accessing a gallery's html (rather than embedding) works fine.
As I said earlier if I can be confident that it isn't affecting anyone else, and I now am, I'm happy enough.

All the best, Steven.

I've tried no end of things today.
I figured getting the gallery to work by direct access (i.e. not in the context of my website) was a good way to go and I'd work from there, but I couldn't even get that done.
The code works fine in an isolated index.html but fails to work once embedded in my pics.php, everything else being equal.

Thanks.

Thanks for this Steven.
Unfortunately the demo galleries on that guide page fail in the same way.

I'll spend some time at this tomorrow and report back.
If uploading the untouched example (in the JB download folder) worked for me then there has to be some way around this.

Hi again Steven.
Thanks so much for going to that trouble. It's certainly appreciated.

I'm almost pleased to say I get the same problem with your gallery.
The only time I got any gallery to work perfectly was when I uploaded a vanilla demo folder and went directly to the stock index.html, but manual embedding of any kind results in the perfect splash page and the "xml not found" upon opening the gallery, on the devices mentioned.


Non-working
My iPhone 4s - iOS 8.1.3 (and on 8.1.2)
My friend's iPhone 4 - iOS 7.0.4

Working perfectly
iPhone 5s - iOS 8.1.3
iPhone 3GS - iOS 7.? latest.

Just to follow up, I've completely ruled out caching as I set up 6 or 7 brand new galleries on another website today with the same results.


I also uploaded the entire 'web' folder from the JB template and accessed it 100% vanilla to test.
The demo gallery worked immediately on my phone.
So, clearly there's something wrong with my file edits or structure but I have no idea what, or why it would be specific to two devices.

The only big difference I can see between that and my setup is that my embed code page is up one level, but I've specified all the paths with config url etc.

Brain = fried.

Thank you Steven.
Such a simple idea; I can't believe I didn't think of that.

I went ahead and changed the filenames and paths and, unfortunately, it did not make a difference.
I'm not even sure what to do now, apart from fixing page errors. Can't do any harm, I guess.

Hi Steven,
Thank for you for taking the time to reply.
I understand about the splash screen. Thanks.


I have now added doctype to my header.php. I presume this is enough?
As you say, it's not likely to cause the issue but I'd rather sort it.


Your suggestions.
1: I can't see a temporary glitch causing it but only because the results have been consistent across devices.
I sat with a 3gs (working) and a 4s (not working) and refreshed the two in tandem.
The 3gs consistently worked and the 4s consistently showed xml not found.

2: I do wonder if there's a deeper clean I can do. I really don't want to reset my iPhone just to find out, but I'd like to be able to 100% rule out browser cache.

3: Thank you for this information. I actually became aware of this yesterday and embedded the required code.
Since then (just before I posted here), mobile and wifi have worked just fine.

The problematic devices still show xml not found whether on 3g or wifi.
The working devices work via either connection.

I will contact my web host, but I have a feeling this thing is too specific to be a hosting issue.

Do you (or any other members here) have other ios/safari devices you could test on? If you wouldn't mind, of course.
So far the only failing devices are my iPhone and the site owner's iPhone.
If no one else can replicate the problem I'm happy to assume there isn't one and move on.

Many thanks once again.
Paul.

Hi all.

I'm using JB lite at http://petegardiner.co.uk/?p=pics and have run into a problem, but only on some mobile devices.


First, my instance of JB always opens with the splash screen on mobile devices. Perhaps that's normal? I don't mind.
The splash screen always loads without issue on any device, and shows an image from the gallery in question, so obviously the xml file is being found OK at that stage.

Tapping to open gallery on my iPhone 4s or my friends iPhone 4, though, takes me to the /jbcore/full.html address and says xml file not found.

However, the gallery works perfectly on another iPhone 4 to which I have access. (and a 3gs and a 5s - all safari)
Between all these devices I can say the fault isn't specific to one model or iOS version.

Interestingly my 4s has no problem opening the gallery if I use chrome, so the problem seems to be exclusive to, but not consistent on, safari mobile.

Additionally, the two phones which are having issues would have visited this site and gallery in the past.
I did clear browsing history and caches on my 4s but this made no difference.




This issue came to my attention because I recently created a second gallery and used onclick/script to populate the container with whichever gallery the user wants to see, so there's only ever one active gallery at any time.
Switching between galleries (splash screens, at least) works fine on any device.
I have tried reverting to a single gallery setup, though, and this hasn't helped.

Also, I'm using custom gallery names like gigs.xml, for example, and am pointing to them using configURL.

If I can provide any more info I'd be happy to, and if anyone can help I'd much appreciate it.



My embed code is below.
The buttons are actually elsewhere in my page code but I've included them at the bottom anyway.

<div class="grid_10 main">
        <h1>Galleries</h1>

    <!--START JUICEBOX EMBED-->
    <script src="includes/gallery/jbcore/juicebox.js"></script>


        <!--Auto Gallery here-->
        <script>
          new juicebox({
          containerId: "juicebox-container",
          configUrl: "includes/gallery/simpson.xml",
          galleryWidth: "100%",
          galleryHeight: "70%",
          backgroundColor: "#222222",
          });

        </script>



          <!--Gallery choice scripts here-->
          <script>
          function simpson (){
          new juicebox({
          containerId: "juicebox-container",
          configUrl: "includes/gallery/simpson.xml",
          galleryWidth: "100%",
          galleryHeight: "70%",
          backgroundColor: "#222222",
          });
          }
          </script>

          <script>
          function misc (){
          new juicebox({
          containerId: "juicebox-container",
          configUrl: "includes/gallery/misc.xml",
          galleryWidth: "100%",
          galleryHeight: "70%",
          backgroundColor: "#222222" 
          });
          }
          </script>
          <div id="juicebox-container"></div>
</div>      
      
      <button onclick="simpson()">Gallery one title</button><br><br>
      <button onclick="misc()">Gallery two title</button>