frumbert / wp2moodle--wordpress-

Wordpress to Moodle pass through authentication plugin (wordpress end)
27 stars 23 forks source link

Syntax error when activating plugin #16

Closed Jornv closed 8 years ago

Jornv commented 9 years ago

Hi,

I just tried to install your plugin and keep getting the following syntax error when I try to activate the plugin: Parse error: syntax error, unexpected '[' in /var/www/vhosts/starterstraining.nl/httpdocs/newsite_2015/wp-content/plugins/wp2moodle/wp2m.php on line 185

Using wordpress verion 4.2.4. Would really appreciate if you could help out.

frumbert commented 9 years ago

What can you tell me about the server environment? Seems like a strange line to get that error on. Which branch did you download, or when (I just pull a merge yesterday) ..

also, what are the url rewrite settings you are using for your installation, in .htaccess or in your wordpress permalink settings?

frumbert commented 9 years ago

Try grabbing https://raw.githubusercontent.com/frumbert/wp2moodle--wordpress-/master/wp2m.php again and see if that helps.