Hi,
PHP Version 5.2.17,
I have added the below to my _config.php but those files does not exist (added this to config about a week ago)
/ log errors and warnings
SS_Log::add_writer(new SS_LogFileWriter('../silverstripe-errors-warnings.log'), SS_Log::WARN, '<=');
// or just errors
SS_Log::add_writer(new SS_LogFileWriter('../silverstripe-errors.log'), SS_Log::ERR);
// or notices (e.g. for Deprecation Notifications)
SS_Log::add_writer(new SS_LogFileWriter('../silverstripe-errors-notices.log'), SS_Log::NOTICE);
I have also added the below but saw no change anywhere:
Director::set_environment_type("dev");
How do I know if suhosin is enabled?
Firebug shows:
POST http://www.blairatholl.co.za/admin/getsubtree?ajax=1&ID=35
With response:
<li id="record-0" class="Root nodelete"><a href="admin/show/root"><strong>Blair Atholl</strong></a><ul>
<li id="record-2" class="Page closed"><a href="admin/show/2" class="Page closed" title="Page type: Page" >About</a>
<ul>
<li id="record-7" class="Page BrokenLink closed"><a href="admin/show/7" class="Page BrokenLink closed" title="Page type: Page" >Heritage</a>
</li>
<li id="record-8" class="Page closed"><a href="admin/show/8" class="Page closed" title="Page type: Page" >Quick Facts</a>
</li>
<li id="record-9" class="Page closed"><a href="admin/show/9" class="Page closed" title="Page type: Page" >Lifestyle</a>
</li>
<li id="record-11" class="Page closed"><a href="admin/show/11" class="Page closed" title="Page type: Page" >Facilities</a>
</li>
<li id="record-12" class="Page closed"><a href="admin/show/12" class="Page closed" title="Page type: Page" >Masterplan</a>
</li>
<li id="record-13" class="Page closed"><a href="admin/show/13" class="Page closed" title="Page type: Page" >Management Team</a>
</li>
<li id="record-14" class="Page closed"><a href="admin/show/14" class="Page closed" title="Page type: Page" >Developer</a>
</li>
<li id="record-10" class="Contact closed"><a href="admin/show/10" class="Contact closed" title="Page type: Contact" >Location</a>
</li>
<li id="record-58" class="Page closed"><a href="admin/show/58" class="Page closed" title="Page type: Page" >Access</a>
</li>
<li id="record-131" class="Page closed"><a href="admin/show/131" class="Page closed" title="Page type: Page" ><ins title="Added to draft site">Masterplan</ins></a>
</li>
</ul>
</li>
<li id="record-3" class="Contact closed"><a href="admin/show/3" class="Contact closed" title="Page type: Contact" ><span title="Modified on draft site" class="modified">Contact Us</span></a>
</li>
<li id="record-6" class="EnquiryPage notinmenu closed"><a href="admin/show/6" class="EnquiryPage notinmenu closed" title="Page type: EnquiryPage" >Enquiry</a>
</li>
<li id="record-23" class="Page closed"><a href="admin/show/23" class="Page closed" title="Page type: Page" >Equestrian</a>
<ul>
<li id="record-24" class="Page closed"><a href="admin/show/24" class="Page closed" title="Page type: Page" >Facilities</a>
</li>
<li id="record-25" class="Page closed"><a href="admin/show/25" class="Page closed" title="Page type: Page" >Horse Pro</a>
</li>
</ul>
</li>
<li id="record-141" class="Page unexpanded closed"><a href="admin/show/141" class="Page unexpanded closed" title="Page type: Page" >Events</a>
</li>
<li id="record-35" class="GalleryHolder unexpanded closed"><a href="admin/show/35" class="GalleryHolder unexpanded closed" title="Page type: GalleryHolder" ><span title="Modified on draft site" class="modified">Gallery</span></a>
</li>
<li id="record-19" class="Page unexpanded closed"><a href="admin/show/19" class="Page unexpanded closed" title="Page type: Page" ><span title="Modified on draft site" class="modified">Golf Course</span></a>
</li>
<li id="record-1" class="Page closed"><a href="admin/show/1" class="Page closed" title="Page type: Page" >Home</a>
</li>
<li id="record-116" class="Page notinmenu closed"><a href="admin/show/116" class="Page notinmenu closed" title="Page type: Page" ><ins title="Added to draft site">Home</ins></a>
</li>
<li id="record-45" class="Page notinmenu unexpanded closed"><a href="admin/show/45" class="Page notinmenu unexpanded closed" title="Page type: Page" >Member</a>
</li>
<li id="record-27" class="NewsHolder unexpanded closed"><a href="admin/show/27" class="NewsHolder unexpanded closed" title="Page type: NewsHolder" ><span title="Modified on draft site" class="modified">News</span></a>
</li>
<li id="record-4" class="ErrorPage notinmenu closed"><a href="admin/show/4" class="ErrorPage notinmenu closed" title="Page type: ErrorPage" >Page not found</a>
</li>
<li id="record-53" class="Page notinmenu closed"><a href="admin/show/53" class="Page notinmenu closed" title="Page type: Page" >Privacy Policy</a>
</li>
<li id="record-15" class="Page BrokenLink unexpanded closed"><a href="admin/show/15" class="Page BrokenLink unexpanded closed" title="Page type: Page" ><span title="Modified on draft site" class="modified">Property</span></a>
</li>
<li id="record-5" class="ErrorPage notinmenu closed"><a href="admin/show/5" class="ErrorPage notinmenu closed" title="Page type: ErrorPage" >Server error</a>
</li>
<li id="record-52" class="Page notinmenu closed"><a href="admin/show/52" class="Page notinmenu closed" title="Page type: Page" >Terms & Conditions</a>
</li>
<li id="record-26" class="WellnessCentre closed"><a href="admin/show/26" class="WellnessCentre closed" title="Page type: WellnessCentre" >Wellness</a>
</li>
</ul>
</li>
It will then show a different getsubtree id but returns the same result for other menu items:
POST http://www.blairatholl.co.za/admin/getsubtree?ajax=1&ID=19
There is absolutely no errors anywhere, that I can find. It seems it is working perfectly, but returning the wrong tree. Meaning it always returns the root tree.
Would anything change in an upgrade? We do not want to spend hours and hours trying to get the site back to what it was due to an upgrade which has happened many times before with CMS systems.
Please let me know if you need more information.
Thanks