Flash Gallery

38 posts by 3 authors in: Forums > CMS Builder
Last Post: April 29, 2010   (RSS)

Re: [kcmedia] Flash Gallery

By Dave - April 26, 2010

Hi kcmedia,

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!
Dave Edis - Senior Developer
interactivetools.com

By KCMedia - April 26, 2010

Hi Dave

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/
Thanks



Craig

KC Media Solutions

www.kcmedia.biz
Attachments:

config_001.xml 2K

index_014.php 32K

Re: [kcmedia] Flash Gallery

By Dave - April 26, 2010

Can you post urls to the PHP and non-php xml files on your server so I can see what code they are generating?

Thanks!
Dave Edis - Senior Developer
interactivetools.com

By KCMedia - April 26, 2010

here are the urls to the current xml files setup without any code in them to talk to CMS Builder.

http://www.actionmc.com.au/newsite/config.xml
http://www.actionmc.com.au/newsite/config.xml.php
Thanks



Craig

KC Media Solutions

www.kcmedia.biz

Re: [kcmedia] Flash Gallery

By Dave - April 26, 2010

The config.xml.php url seems to return a blank page when I view-source. Can you get that outputting any XML with data from CMS Builder?
Dave Edis - Senior Developer
interactivetools.com

By KCMedia - April 26, 2010

Hi Dave

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.
Thanks



Craig

KC Media Solutions

www.kcmedia.biz

Re: [kcmedia] Flash Gallery

By Dave - April 26, 2010

Ok, are you able to put back the config.xml.php that output the XML using data from the CMS?

Once you do that I can compare it's output with config.xml.
Dave Edis - Senior Developer
interactivetools.com

By KCMedia - April 26, 2010

ok done
Thanks



Craig

KC Media Solutions

www.kcmedia.biz

Re: [kcmedia] Flash Gallery

By Dave - April 26, 2010

Note: I'm just viewing source, saving the text, and using a free program WinMerge to compare.

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!
Dave Edis - Senior Developer
interactivetools.com