ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

XML, Flash and EE

September 25, 2010 1:03pm

Subscribe [8]
  • #1 / Sep 25, 2010 1:03pm

    mfos

    24 posts

    HI,
    I have this problem that is driving me mad.
    I have a Flash file being called within a weblog. It shows on the page, but the images that are called using an xml file don’t show. The XML file path is correct and I can access it via the URL directly which is the same path as referenced in the Flash file. The image file paths are correct.

    Any ideas what could be the problem?

    Thanks
    Mike

  • #2 / Sep 27, 2010 2:10am

    John Henry Donovan

    12339 posts

    Mike,

    What version and build of EE are you using?

    Can you share what’s in your XML file please
    Have you tried absolute paths to your images?
    Have you got a link to this where we can see it failing?

  • #3 / Sep 27, 2010 4:50am

    mfos

    24 posts

    HI,

    Using 1.6.8

    XML file can be found here:
    http://www.brighter-connections.com/_xml/slideshow.xml

    The page using the flash is here:
    http://www.brighter-connections.com/team/brighter_team

    The flash file is called main.swf and is on the root.

    If you need anymore info please let me know.

    Cheers

  • #4 / Sep 27, 2010 3:07pm

    Ingmar

    29245 posts

    I think it might be an issue with Flash security settings, disallowing absolute URLs. Can you try with relative ones? Better yet, create a static XML file and try with that, taking EE out of the equation for now.

  • #5 / Sep 27, 2010 4:13pm

    mfos

    24 posts

    Hi,

    I’ve added the xml file to:
    http://www.brighter-connections.com/slideshow.xml
    which is outside of EE.

    I tested the flash file by changing the URL it needs to call the XML file (relative) from the EE generated one and to the one (as above) which is outside of EE. They both work - changing to a relative URL must have done the trick:
    http://www.brighter-connections.com/main.swf
    but it still doesn’t work within EE at:
    http://www.brighter-connections.com/team/brighter_team

    This is an odd one for me! Any ideas guys or gals?

    Cheers
    Mike

  • #6 / Sep 28, 2010 7:48am

    Sue Crocker

    26054 posts

    About the only thing I see here is a link to an image that doesn’t have a full path:

    <image img="images/flashimages/bc1c.jpg" link="http://www.brighter-connections.com/team/darren_stringer" target="_self" textX="340" textY="20">
  • #7 / Oct 01, 2010 9:24am

    Simon Job

    123 posts

    I’ve just upgraded a site to 2.1.0 Build 20100810 and I think I’m seeing a similar problem.

    The main page:
    http://www.toongabbieanglican.org.au
    has a Flash image rotater on it.
    Whilst sorting this out, I’ve removed the image rotator, see here for the problem page:
    http://www.toongabbieanglican.org.au/tac/indextest

    The Flash is loading, but not finding the XML file.

    The XML file is here: http://www.toongabbieanglican.org.au/tac/frbnxml
    Which, when you go to it, has no problems.

    Using Live HTTP Headers, I see this… (editted):

    http://www.toongabbieanglican.org.au/tac/frbnxml?645

    GET /tac/frbnxml?645 HTTP/1.1
    ...

    The response:
    HTTP/1.1 404 Not Found

    What I can’t work out is where the “?645” is coming from.  That is causing a 404 on the XML file.  It doesn’t appear in the generated code.

  • #8 / Oct 01, 2010 5:34pm

    Sue Crocker

    26054 posts

    Simon, was this happening in an earlier build/version?

  • #9 / Oct 01, 2010 8:10pm

    Simon Job

    123 posts

    Sue, I have just upgraded to EE 2.  This has just started happening, was working fine under EE 1.

  • #10 / Oct 03, 2010 3:24pm

    Greg Salt

    3988 posts

    Hi Simon,

    Do you have an .htaccess file in this site? If so, what are the contents?

    Cheers

    Greg

  • #11 / Oct 03, 2010 6:02pm

    Simon Job

    123 posts

    Hi Greg,

    I do, and have sent it through to you in a message.

    [A little later…] I renamed my .htaccess file, confirmed that it was having no effect and then tested.  Same problem, XML not found.

    Thanks,
    Simon.

  • #12 / Oct 04, 2010 12:10pm

    Sue Crocker

    26054 posts

    Simon and mofos: How was this xml file created? Inside or outside of EE? What happens if you set the template type to Static if you used EE?

  • #13 / Oct 04, 2010 6:01pm

    Simon Job

    123 posts

    Sue, the XML file is created in EE using a channel set as a type of XML.
    To test, I generated the XML file and then saved it’s output into a static template.
    Same problem, the test page is:
    http://www.toongabbieanglican.org.au/tac/indextest2

    The static XML file is:
    http://www.toongabbieanglican.org.au/tac/frbnxmlstatic

    The HTTP headers still show not found for the XML file, because it’s looking for http://.../tac/frbnxmlstatic?434

    Where is the”?434” being added? The number changes, e.g. when refreshed it was 898.

  • #14 / Oct 04, 2010 6:11pm

    redgizmo

    14 posts

    Hi Sue,

    I have the same problem than Simon and Mofos. My XML is Inside EE 2.1 and the correct path to read is this:

    <a href="http://www.mywebsite.com/index.php/embeds/config.xml">http://www.mywebsite.com/index.php/embeds/config.xml</a>

    but, for somer reason EE is doing this:

    <a href="http://www.mywebsite.com/index.php/embeds/config.xml?t=1286226315359">http://www.mywebsite.com/index.php/embeds/config.xml?t=1286226315359</a>

    What is that extra code that does not let my application to run: <b>?t=1286226315359</b?

    Thank you

  • #15 / Oct 04, 2010 11:44pm

    Simon Job

    123 posts

    Just to rule out a few things…

    Made a clean template with nothing by the image rotator, (i.e. got rid of google analytics etc), still the same.

    I made an XML file outside of EE, a stand-alone file on my server, and it works fine.
    However, in the Live HTTP Headers add-one I’m using the XML file is still showing a ?355 after it, but is being returned as 200 OK.

    Here’s my theory…

    SWFObject which is being used to embed the Flash, is adding a query string to the XML parameter it has been provided.  When served straight from the server, the server must just ignore the query string and return the file.  However, when server from EE, EE does not ignore the query string and so returns a 404.

    Scratch that.  Just removed SWFObject from the equation, even using just an EMBED tag results in the same problem when generating the XML in EE.  See:
    http://www.toongabbieanglican.org.au/tac/xmltest

    One difference in generating from EE or serving from the server is the Content-Type.
    EE returns: Content-Type text/xml
    Server returns Content-Type: application/xml

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases