kasperisager / vanilla-api

Extensible RESTful API shim for Vanilla that operates in JSON or XML with support for JSONP and CORS
http://vanillaforums.org/addon/api-application
MIT License
49 stars 10 forks source link

Bonked when uploaded to server #47

Closed JamesMercury closed 9 years ago

JamesMercury commented 9 years ago

Hello. Much thanks again Kasper for the time you took out to develop this application. I keep getting bonked (blank browser window) whenever I upload the application files onto my server. I am using the Vanilla Master(2.2) downloaded from https://github.com/vanilla/vanilla. I also changed the folder name to 'api' on my server. Please help

kasperisager commented 9 years ago

You will need to enable debug mode and post whatever error messages pop up here.

JamesMercury commented 9 years ago

PHP Parse error: syntax error, unexpected '[' in /home1/jamesmer/public_html/applications/api/settings/about.php on line 3

(The above was gotten from error_log file from server. I looked scanned about.php and couldn't see any syntactitcal errors...What do you think?)

<?php //about.php $ApplicationInfo['api'] = [ 'Name' => 'API', 'Description' => 'Extensible RESTful API shim that operates in JSON or XML. Supports JSONP and CORS', 'Version' => '0.4.0', 'Url' => 'https://github.com/kasperisager/vanilla-api', 'Author' => 'Kasper Kronborg Isager', 'AuthorEmail' => 'kasperisager@gmail.com', 'AuthorUrl' => 'https://github.com/kasperisager', 'License' => 'MIT', 'SettingsUrl' => 'dashboard/settings/api', 'RequiredApplications' => ['Vanilla' => '2.2.x'] ];

kasperisager commented 9 years ago

Ah, PHP 5.4 is required to use the app.

JamesMercury commented 9 years ago

:) Golly gee! I just updated to PHP 5.4 and no more bonk. Much thanks!

kasperisager commented 9 years ago

No problem!