
Jason
Staff
/ Moderator

Jan 11, 2012, 12:21 PM
Post #9 of 11
(1240 views)
Shortcut
|
|
Re: [rez] xml session errors after 2.14 upgrade?
[In reply to]
|
Can't Post
|
|
Hi, My guess would be that your other site isn't running Website Membership, which is why it isn't running into any session errors. Try this change:
<?php $libraryPath = 'cmsAdmin/lib/viewer_functions.php'; $dirsToCheck = array('/home/xxxx/public_html/','','../','../../','../../../'); foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }} if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); } // load records list($slideshowRecords, $slideshowMetaData) = getRecords(array( 'tableName' => 'csr_slideshow', )); ?> <?php header('Content-type: application/xml; charset=utf-8'); ?><?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?> <SlideshowBox> <items> <?php foreach ($csr_slideshowRecords as $record): ?> <?php foreach ($record['slide'] as $upload): ?> <item> <thumbnailPath><?php echo $upload['thumbUrlPath2'] ?></thumbnailPath> <largeImagePath><?php echo $upload['thumbUrlPath'] ?></largeImagePath> <fullScreenImagePath><?php echo $upload['urlPath'] ?></fullScreenImagePath> <title><![CDATA[<?php echo $upload['title'] ?>]]></title> <description><![CDATA[<?php echo $upload['dsc'] ?>]]></description> </item> <?php endforeach ?> <?php endforeach ?> </items> </SlideshowBox> Hope this helps --------------------------------------------------- Jason Sauchuk - Programmer interactivetools.com Hire me! Save time by getting our experts to help with your project. http://www.interactivetools.com/consulting/
|