17487 Posts in 4473 Topics by 1978 members
|Go to End|
26 August 2008 at 9:11am
We've had a site up and running for over a month, and we're starting to get reports of a weird error being displayed at random intervals on the home page.
Fatal error: Call to a member function XML_val() on a non-object in /import_wfs1/share_rw/tmp/silverstripe-cache-home-httpd-vhlinks-www.vivaexpeditions.com/.cache on line 212
This is on blank white page - nothing is loaded.
Refreshing the page fixes it it seems.
Anyone seen this? It seems to pop up a few times a week.
26 August 2008 at 12:03pm
Usually happens when you have like $Title.XML or $Content.FirstParagraph and theres no $Title or $Content for example.. It shouldnt throw an error for that though so we should probably just change it so it fails silently
26 August 2008 at 1:25pm
Would the Summary function have the same effect?
26 August 2008 at 1:29pm
26 August 2008 at 1:31pm
I have a box on the right hand side that spits out a featured random page object excerpt. This might explain why the problem is also random.
26 August 2008 at 1:39pm
So I think all you need to do is do something like <% if MyRandomContent %>$RandomContent.Summary<% end_if %> or something and you should be sweet!. Random bugs are always the hardest to test
26 August 2008 at 1:42pm
Yeah that if statement is basically exactly what i've done. Will have to wait and see if the problem occurs again.
|Go to Top|