Firefox Mac gets different html

I'm not sure how this is possible. One Album returns a completely empty list in Firefox on Mac. This happens on two different Macs with different internet connections. The same page works perfect in all other browsers that I've checked (Safari, Chrome, IE, Firefox PC). The same script works fine with other albums. It also works in FirefoxMac when called from MAMP locally.

Does anyone have an idea on how this is happening?

This is the code from the php file:

`
<?php setOption('images_per_page', 9, false); ?>

`
Regards,
Peter

Comments

  • acrylian Administrator, Developer
    What theme is that? All standard themes do work the same in all browsers and surely not differently on Firefox Mac (as I am using that as well).
  • phoehsl Member
    I'm building my own theme.

    Update: I just noticed that this only occurs when viewing the page as admin.

    Is this related to security? I am using class-textobject to call html pages which use a java script that loads an xml with a list of images to build a 360 panorama display. The xml and the images are in a subfolder of the album which is unpublished.

    As long as it only happens to admin in Firefox it's not a problem for me. Admin in Chrome and Safari work fine though.
  • acrylian Administrator, Developer
    The only difference with being logged in or not is that the logged in users will see unpublished and protected items as well (if he has the rights to naturally).

    Did you try with a standard theme to make sure it is not an issue with yours? There is no security that should only work with one browser involved. WE use textobjects for Youtube etc videos on our screencast section as well.
  • phoehsl Member
    Works fine with Zenpage. So, yes it has to with my theme, which is why I posted the code above.

    I am using textobjects in another album with the same script for Vimeo videos and that's working fine.

    I will reinstall the gallery with a fresh database soon. Lets see if the problem persists after that.
  • acrylian Administrator, Developer
    Do you call those html page direclty? Then I see no reason it would not work. But maybe you get any JS conflict or an validation issue maybe? Browser can be specific with those.
  • phoehsl Member
    The html files and the js (I'm using Pano2vr) for the panorama are only called in the image.php and this works. It's the album.php where the problem lies.

    I have excluded each of the other js that are used at this stage one by one - nothing.

    It must be something within the albums directory itself because if I use the same script on another album with Vimeo videos it works.

    This is the content of the html files:

    `

    // hide URL field on the iPhone/iPod touch
    function hideUrlBar() {

    document.getElementsByTagName("body")[0].style.marginTop="0px";
    window.scrollTo(0, 1);
    }
    window.addEventListener("load", hideUrlBar);
    window.addEventListener("resize", hideUrlBar);
    window.addEventListener("orientationchange", hideUrlBar);


    This content requires HTML5/CSS3, WebGL, or Adobe Flash Player Version 9 or higher.



    // check for CSS3 3D transformations and WebGL
    if (ggHasHtml5Css3D() || ggHasWebGL()) {
    // use HTML5 panorama

    // create the panorama player with the container
    pano=new pano2vrPlayer("container");
    // add the skin object
    skin=new pano2vrSkin(pano);
    // load the configuration
    pano.readConfigUrl("/zen/albums/360/apartment/apartment.xml");
    // hide the URL bar on the iPhone
    hideUrlBar();
    // add gyroscope controller
    gyro=new pano2vrGyro(pano,"container");
    } else
    if (swfobject.hasFlashPlayerVersion("9.0.0")) {
    var flashvars = {};
    var params = {};
    params.quality = "high";
    params.bgcolor = "#ffffff";
    params.allowscriptaccess = "sameDomain";
    params.allowfullscreen = "true";
    var attributes = {};
    attributes.id = "pano";
    attributes.name = "pano";
    attributes.align = "middle";
    swfobject.embedSWF(
    "/zen/albums/360/apartment/apartment.swf", "container",
    "1024", "576",
    "9.0.0", "",
    flashvars, params, attributes);

    }

    `
  • acrylian Administrator, Developer
    If you have this file within the albums folder it should not make any difference if called from the image or album page. album is album.

    Why do you have that as a hardcoded file at all. It would probably be better to write a plugin to handle this swf files directly similar like the textobject plugin.

    Also since it is flash it might be an issue with Firefox and flash.
  • phoehsl Member
    The flash version is just a backup for IE or other cases where html5/css3 isn't working. I'd actually prefer not to have it in there at all. I'll take it out and see what happens.

    Besides, as I said earlier, if this only affects admin in Firefox I can live with it. Any other user can see this page as intended.

    I'll probably get to finish the site over the weekend and post a link when done.
  • acrylian Administrator, Developer
    Sure, if it is only the admin no problem. But if it would affect other normal users it could be problematic. Still a weird issue nevertheless.

    I will take a look at the link then later (if you are doing a complete custom theme maybe even submit to the showcase gallery - be sure to read the info link on the first page)
  • My guess would be js conflict. Different js will be loaded if you are logged in.
  • phoehsl Member
    Ok, the site is online. This is the page in question:
    http://peterhoehsl.com/360/

    I re-installed 1.4.4.5 but the issue remains.

    `
      `
      and the header plus footer is what's being sent to Firefox when logged in as admin. The actual image.php which contains most of the exotic js works fine.

      This page is using the same script (just has a different layout) and works fine.
      http://peterhoehsl.com/Visual-Effects/
      If I use this script on the panorama album it also fails.
    • acrylian Administrator, Developer
      Did you look at the Firefox browser error log for JS errors?

      Since I am not loggedin all works of course as intended for me. Since only the panorama script is different it must be something with it.

      But at least normal vistors see all.
    • phoehsl Member
      There's nothing in the console.

      The panorama script is not loaded at this stage. It only gets called in the actual image page - not the album. The image page works when I enter the url and shows the panorama. Its the album that doesn't show any of the thumbnails and brings up no links.

      Also when I had everything set up locally using MAMP I never had that issue. So I'm not entirely sure if it is js related and not perhaps because of a different configuration on the server. But I'm no specialist in this area so I can only guess.
    • acrylian Administrator, Developer
      I have no idea what would affect that especially only if logged in. If it is normally the other way round..;-)

      MAMP can be a bit different than live servers (it is not setup strict since locally only) but I never noticed any difference in that regard.
    • phoehsl Member
      It's getting stranger still.

      I have just made an exact duplicate of the album with the exact same content and guess what - the duplicate works fine. I set everything the same, except of course the actual directory name. Could there be glitch or corruption in the database?
    • acrylian Administrator, Developer
      Quite possible but we cannot answer from here. best you look into the db and compare the entries.
    Sign In or Register to comment.