Blog Results and Blog Detail pages producing errors
I followed the tutorial at http://www.webassist.com/community/tutorials/view_tutorial.php?tutorial=Create-new-pages-from-PowerCMS-templates&accesscheck=/community/tutorials/view_tutorial.php?tutorial=Create-new-pages-from-PowerCMS-templates and have created pages based on this tutorial.
This is my query on the detail page:
SELECT C2.ContentGroup, C2.ContentPageSetOrder FROM pcms2_contents AS C1 LEFT OUTER JOIN pcms2_contents AS C2 ON C2.ContentPagesetParentID = C1.ContentID WHERE C1.ContentGroup = 'BlogPosts' AND C2.ContentPageSetOrder = %s GROUP BY C2.ContentPageSetOrder ORDER BY C2.ContentPageSetOrder DESC
When I preview the page, I get the following error:Fatal error: Cannot redeclare GetSQLValueString() (previously declared in /home/lutche5/public_html/kingsburylaw/blog-details.php:5) in /home/lutche5/public_html/kingsburylaw/Templates/insidePages.dwt.php on line 121
If I remove the code that references the function, like i had to do on the blog results page (because this function already exists in the template), I get this error instead:Fatal error: Call to undefined function GetSQLValueString() in /home/lutche5/public_html/kingsburylaw/blog-details.php on line 13
I am going to attach the blog detail page for you.
Thank you.