Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Upgrading SilverStripe

Ask questions about upgrading SilverStripe to the latest version.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

3.1 ConfigStaticManifest Upgrade error


Reply

4 Posts   798 Views

Avatar
tv

6 June 2013 at 6:08am Community Member, 44 Posts

Has anyone received this error after upgrading and then running a dev/build?

Fatal error: Unexpected token when building static manifest: Array ( [0] => 360 [1] => => [2] => 11 ) in /Applications/MAMP/htdocs/vaultupgrade/thevault/framework/core/manifest/ConfigStaticManifest.php on line 274

Avatar
Webdoc

6 June 2013 at 6:19am Community Member, 332 Posts

To you have in your code belongs_many_many it can cause the problem

---------------------------------------------------------------------------------------------
Arvixe Web Hosting / SilverStripe Community Liaison | Looking for quality [url=http://www.arvixe.com/preloaded_silverstripe_hosting/]SilverStripe Web Hosting[/url]? Look no further than [url=http://www.arvixe.com/]Arvixe Web Hosting[/url]!

Avatar
tv

6 June 2013 at 6:35am Community Member, 44 Posts

I have one $belongs_many_many set. After commenting it out (as well as its corresponding $many_many) I am still receiving the error.

Avatar
tv

6 June 2013 at 8:02am (Last edited: 6 June 2013 8:02am), Community Member, 44 Posts

The issue was that there was a syntax error in one of my static array declarations. To track this down, I added Debug::dump($class) and Debug::dump($token) inside the while loop of ConfigStaticManifest::parseStatic ( located at line 255 ).