Flash Gallery
38 posts by 3 authors in: Forums > CMS Builder
Last Post: April 29, 2010 (RSS)
By KCMedia - April 23, 2010
I have done that but still no good the loading icon get a little further along but still wont load the images.
I am really stuck now and i am very much running out of time now to get this working.
Craig
KC Media Solutions
www.kcmedia.biz
Re: [kcmedia] Flash Gallery
By Dave - April 26, 2010
The fastest way to debug it is as follows:
- Make a backup of your config.xml as config.xml.backup
- #Comment out the .htaccess changes you made
- Start with a working config.xml file
- Create a config.xml.php file
Then:
1. Open and view in your browser and view source on both
2. Compare any differences
3. Modify config.xml.php until it's output is EXACTLY the same _format_ as config.xml
4. Save the output of config.xml.php as config.xml
5. If it doesn't work then go back to step 2.
You need to isolate where the problem is, if the XML is incorrect or if there is an issue with the PHP. By saving the XML that PHP outputs back to config.xml you can get your XML working and not worry about PHP for now.
You can also use a XML validator to check your config.xml.php output to see if it's valid XML:
http://www.google.ca/search?q=Xml+validator
I hope those tips are useful and point you in the right direction. Re-creating an XML feed can take a bit of work. We can also help through consulting if you need it done fast, or if you want more free forum help post the urls of both files and attach the .php and we can take a look.
Hope that helps!
interactivetools.com
By KCMedia - April 26, 2010
I have tried everything.
If i load up the config.xml file with all the standard stuff it works all ok.
But when i then make the config.xml.php file and try and load it up it wont work at all.
I have tried everything that you have said but still no luck.
I have attached the pages and code.
here is the link to the script from the person who made it.
http://www.progressivered.com/cu3er/
Craig
KC Media Solutions
www.kcmedia.biz
Re: [kcmedia] Flash Gallery
By Dave - April 26, 2010
Thanks!
interactivetools.com
By KCMedia - April 26, 2010
http://www.actionmc.com.au/newsite/config.xml
http://www.actionmc.com.au/newsite/config.xml.php
Craig
KC Media Solutions
www.kcmedia.biz
Re: [kcmedia] Flash Gallery
By Dave - April 26, 2010
interactivetools.com
By KCMedia - April 26, 2010
Sorry i dont understand what you want me to do.
That config.xml.php file is the same file as the config.xml just the file name has the php extension on the end of it.
there is no code in there for the connection to the cms system at all.
Craig
KC Media Solutions
www.kcmedia.biz
Re: [kcmedia] Flash Gallery
By Dave - April 26, 2010
Once you do that I can compare it's output with config.xml.
interactivetools.com
Re: [kcmedia] Flash Gallery
By Dave - April 26, 2010
Ok, when I compare the output of those two files I see these differences:
The PHP version is:
- Is missing: <?xml version="1.0" encoding="utf-8" ?>
- Has extra: <link target="_self">finance-insurance.php</link>
- Has invalid looking: <url>Array</url>
Next, I checked the headers with: http://www.seoconsultants.com/tools/headers
And the header returned from the .xml file is: text/xml
And the .xml.php is: application/xml; charset=utf-8
So you might want to change the PHP to:
<?php header('Content-type: text/xml'); ?>
The trick is to make the output as similar as possible. Once you can barely tell the difference, flash won't be able to either and everything will work. I'd start with the <url>Array</url> content as that looks like the most obviously invalid part.
Hope that helps!
interactivetools.com