rooftopcms / rooftop-cms

Rooftop CMS is an API-first WordPress CMS for developers and content creators
http://www.rooftopcms.com
GNU General Public License v3.0
220 stars 20 forks source link

Wordpress connection issues #45

Open nupejosh opened 7 years ago

nupejosh commented 7 years ago

Hey guys, I'm setting up the self hosted rooftopcms for wordpress. I've tried to install the rooftop-api-authentication plugin on my hostgator hosted wordpress install, but I keep getting an error when I attempt to activate the plugin. error - Parse error: syntax error, unexpected T_FUNCTION in /home2/jnashpor/public_html/railstest/wp-content/plugins/rooftop-api-authentication-development/admin/class-rooftop-api-authentication-admin.php on line 109. I was initially using wordpress version 4.7.4, but then downgraded to 4.3 to follow the tested version of the plugin as seen in the plugin repo. Is rooftop-api-authentication the correct plugin that I should be using to connect rooftopcms to my wordpress app or is there some other way I should be making the connection?

edtjones commented 7 years ago

Hi @nupejosh sorry for the terribly slow reply to this. Could this be related to a PHP version issue? Line 109 (here https://github.com/rooftopcms/rooftop-api-authentication/blob/development/admin/class-rooftop-api-authentication-admin.php#L109) calls add_submenu_page with an anonymous function which is only available in PHP 5.3 and later.