I've recently put a client's SilverStripe website live ([url]http://www.neonsleep.com/[/url]); developing it was a dream with SilverStripe, thank you for open-sourcing such a great piece of software!
I have one unresolved issue, to do with sharing content with Facebook (through an AddThis button). About 50 percent of the time, it works fine, Facebook downloads the shared page OK and finds the appropriate image to share. The other 50 percent, SilverStripe errors when Facebook tries to access the page, and the summary it comes up with instead is:
: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /www/virtual/neonsleep.com/htdocs/sapphire/core/ManifestBuilder.php on line 35
It appears it doesn't like the declaration 'static $restrict_to_modules = array();', the first thing in the ManifestBuilder class (I'm using v2.2.2). When a page refuses to load, it will keep doing it unless the URL to share is changed by adding a slash at the end - sometimes that fixes it.
An example of a page that doesn't load is: [url]http://www.neonsleep.com/dandeacon/19[/url]
One that successfully loads: [url]http://www.neonsleep.com/dandeacon/20[/url]
I can't find any method to the madness. Has anyone else had problems with sharing Facebook content?