Results 1 to 9 of 9

Thread: dfGallery: A flash cross-domain error occured

  1. #1
    New user
    Join Date
    08-02-09.
    Posts
    5

    Default dfGallery: A flash cross-domain error occured

    Hi,

    I searched on the web and posted the same topic on Typolight french users forum wihout success. I desperately try to make dfGallery V1 (the one integrated by default with Typolight) works. Typolight version is 2.7.2. My website is hosted by Infomaniak and can be seen here:
    http://www.utopiagravure.fr/

    As anyone can see, dfGallery does not work and display:
    Loading themes
    A flash cross-domain error occured
    I tried with IE 7 and 8 and Firefox (using Linux and Windows, I am curently working under Fedora and Ubuntu).

    As described on the german forum (http://www.typolight-community.de/showthread.php?t=287), I created a crossdomain.xml file allowing any domain to be accessed from my site:
    http://www.utopiagravure.fr/crossdomain.xml
    Content:
    <cross-domain-policy>
    <allow-access-from domain="*"/>
    </cross-domain-policy>

    and added the following line in localconfig.php file:
    $GLOBALS['TL_CONFIG']['rootFiles'][] = 'crossdomain.xml';

    But it still does not work. Obvioulsy, my german is not so good, so it's difficult to search on that subject on the whole german forum. This problem does not sound really well described on the net, probably because it is linked to Typolight only. Unless it is linked to my hosting but I have no clue/idea.

    Can anybody help on that topic?
    Many thanks in advance.
    Regards.

    Benoit.

  2. #2
    Official Contao Team
    Join Date
    06-10-09.
    Location
    Stuttgart, Germany
    Posts
    68

    Default Re: dfGallery: A flash cross-domain error occured

    Salut Benoit,

    i guess you need to write the domainname in the crossdomain.xml file like:

    Code:
    <cross-domain-policy>
    <allow-access-from domain="www.utopiagravure.fr"/>
    <allow-access-from domain="utopiagravure.fr"/>
    </cross-domain-policy>
    The crossdomain file is to prevent that others can implement your flash file in their websites ;-)
    By define your domain therein your flash content is only played on the domains you have written in the crossdomain.xml file.
    ---------------------------------------------------
    kind regards planepix

    Official Contao team member - Official Contao partner
    workshop contao conference site 2011
    workshop contao conference site 2012

  3. #3
    New user
    Join Date
    08-02-09.
    Posts
    5

    Default Re: dfGallery: A flash cross-domain error occured

    Hi planepix,

    Thanks for your answer. Obviously, I tried your solution but it does not work and I can hardly understand why. I am wondering if a global hosting setting can override my crossdomain.xml file. Is that possible?

    Regards.

    Benoit.

  4. #4
    Official Contao Team
    Join Date
    06-10-09.
    Location
    Stuttgart, Germany
    Posts
    68

    Default Re: dfGallery: A flash cross-domain error occured

    Hi Benoit,

    guess there is a path problem.

    The crossdomain.xml is called from this path:
    #request# GET http://localhost/crossdomain.xml

    Where have you put the crossdomain.xml file in?

    root of your TYPOlight installation as shown above, ok.
    ---------------------------------------------------
    kind regards planepix

    Official Contao team member - Official Contao partner
    workshop contao conference site 2011
    workshop contao conference site 2012

  5. #5
    New user
    Join Date
    08-02-09.
    Posts
    5

    Default Re: dfGallery: A flash cross-domain error occured

    Hi again,

    The xml file can be seen here:
    http://www.utopiagravure.fr/crossdomain.xml

    On my host server, it is located with the rest of typolight installation files in /web (I do not have any rights in /). Do I need to set special rights for this file. It is currently set to 755. Shall I put it anywhere else?

    Thanks in advance.
    Mit freundlichen Grussen (my german is quite far )

    Benoit.

  6. #6
    Official Contao Team
    Join Date
    06-10-09.
    Location
    Stuttgart, Germany
    Posts
    68

    Default Re: dfGallery: A flash cross-domain error occured

    Hi Benoit,

    i have checked my crossdomain.xml files, they are at CHMOD 644.
    ---------------------------------------------------
    kind regards planepix

    Official Contao team member - Official Contao partner
    workshop contao conference site 2011
    workshop contao conference site 2012

  7. #7
    Official Contao Team
    Join Date
    06-10-09.
    Location
    Stuttgart, Germany
    Posts
    68

    Default Re: dfGallery: A flash cross-domain error occured

    The dfgallery is an internal gallery, right?

    Source is internal, from your website?
    ---------------------------------------------------
    kind regards planepix

    Official Contao team member - Official Contao partner
    workshop contao conference site 2011
    workshop contao conference site 2012

  8. #8
    New user
    Join Date
    08-02-09.
    Posts
    5

    Default Re: dfGallery: A flash cross-domain error occured

    I changed to 644 with success.

    For the source, the image files that are supposed to be displayed by the slideshow are hosted on my website somewhere in tl_files folder. I just regranted recursively rights to 777 to that folder, but it does not work. First image of this slideshow can be seen here: http://www.utopiagravure.fr/tl_files/ut ... Utopia.jpg

    I was wondering if the domain to allow might be dezinerfolio.com as it is the dfgallery developper site.
    Thing is that when I work on my local server, the dfgallery works well. But with the same installation on my Infomaniak server, it does not. This is kinda strange.

    Thanks for your help. I hope we can find out what is wrong. Would you need my localsettings conf file?
    Benoit.

  9. #9
    New user
    Join Date
    08-02-09.
    Posts
    5

    Default SOLVED: Re: dfGallery: A flash cross-domain error occured

    I finally understood thanks to planepix (many, many thanks for your help).

    crossdomain.xml file is supposed to be accessed at root site and be seen at
    http://www.mysite.com/crossdomain.xml

    Obviously, on my hosting server, the typolight root folder is called web/ and my ftpPath wasnt correctly set in my localconfig file: it was set to /web instead of web/

    So I was able to display the crossdomain.xml file content by typing the previous url but Typolight wasn't able to get it (pure Safe Mode Hack bad setting). This is why I previously got the cross-domain error. It's now solved and my dfGallery works well.

    Thanks.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •