gfarrell / WPRavenAuth

Raven (ucam_webauth) authentication plugin for Wordpress. Now maintained by @mo-g (mo-g/WPRavenAuth)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't activate plugin.

epijim opened this issue · comments

When I try activate the plugin (for http://mcr.jesus.cam.ac.uk/EntsSite/) it comes up with "Parse error: syntax error, unexpected T_STRING". Is this an error I can fix? The line it refers to (line 18) doesn't seem like it would cause an error.

Don't have much knowledge of coding (outside very simple stuff like stats with R) so at a loss on how to debug.

Currently I just use "AuthType Ucam-WebAuth, Require valid-user" but a proper raven based login would be awesome so people can manage their event bookings. Cheers.

Can you post the entire error please.

On Tuesday, 20 August 2013 at 16:09, James Black wrote:

When I try activate the plugin (for http://mcr.jesus.cam.ac.uk/EntsSite/) it comes up with "Parse error: syntax error, unexpected T_STRING". Is this an error I can fix? The line it refers to (line 18) doesn't seem like it would cause an error.
Don't have much knowledge of coding (outside very simple stuff like stats with R) so at a loss on how to debug.
Currently I just use "AuthType Ucam-WebAuth, Require valid-user" but a proper raven based login would be awesome so people can manage their event bookings. Cheers.


Reply to this email directly or view it on GitHub (#21).

Thanks for the reply.

Parse error: syntax error, unexpected T_STRING in /usr/home/jab254/public_html/MCR/wp-content/plugins/WPRavenAuth/WPRavenAuth.php on line 18
Call Stack
Time Memory Function Location
1 0.0012 435592 {main}( ) ../plugins.php:0
2 0.2412 38269656 plugin_sandbox_scrape( ) ../plugins.php:149

I was testing it on a dummy site on the Jesus server (wordpress install with no other activated plugins).

I don't see why there should be an error, that's just a namespace declaration (and I have never seen this problem with activation). I will load a blank WP installation just to see if I can find anything untoward.

Ok so I just installed a blank copy of wordpress, cloned WPRavenAuth into the plugins folder using

git clone https://github.com/gfarrell/WPRavenAuth.git

and activated the plugin and it worked fine, so I can't reproduce the error. Can you try a new blank wordpress install, follow my steps and tell me if it still doesn't work.

What version of PHP are you using?

"PHP 5.2.4-2ubuntu5.27". I tried it on the live ents site, and I get the same error. Then I copied the plugin folder over to another site I have on the SRCF and it works perfectly. Looks like it's an issue with the Jesus server.

Namespaces require PHP > 5.3. Looks like your server hasn't been upgraded in a while (and probably should be, for security). Nevertheless, the plugin can't function on PHP < 5.3 because it requires namespacing.

Cheers for all the help, I'll email the admins and look into moving it to the SRCF if that fails.

SRCF is probably your best bet.

On Tuesday, 20 August 2013 at 20:51, James Black wrote:

Cheers for all the help, I'll email the admins and look into moving it to the SRCF if that fails.


Reply to this email directly or view it on GitHub (#21 (comment)).