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

Activation Problems

mhhadfield opened this issue · comments

Hi Gideon,
I am a Wordpress Newbie! here is my error ;

Warning: require(app/core/config.php): failed to open stream: No such file or directory in /site/htdocs/wordpress/wp-content/plugins/WPRavenAuth/WPRavenAuth.php on line 30

Fatal error: require(): Failed opening required 'app/core/config.php' (include_path='.:') in /site/htdocs/wordpress/wp-content/plugins/WPRavenAuth/WPRavenAuth.php on line 30

I am running wordpress in a directory to begin with for testing but it doesn't seem to like me trying to activate it!

Thanks,
Meredith

Have you copied all of the files and folders into the plugin folder?

And have you set permission to make those folders at least group readable?

On 28 Mar 2014, at 16:57, mhhadfield notifications@github.com wrote:

Hi Giddeon,
I am a Wordpress Newbie! here is my error ;

Warning: require(app/core/config.php): failed to open stream: No such file or directory in /site/htdocs/wordpress/wp-content/plugins/WPRavenAuth/WPRavenAuth.php on line 30

Fatal error: require(): Failed opening required 'app/core/config.php' (include_path='.:') in /site/htdocs/wordpress/wp-content/plugins/WPRavenAuth/WPRavenAuth.php on line 30

I am running wordpress in a directory to begin with for testing but it doesn't seem to like me trying to activate it!

Thanks,
Meredith


Reply to this email directly or view it on GitHub.

Hi conor,
Thanks for such a quick reply, I have uploaded all the files and the keys
and all are public at the moment.
I have checked the paths they are trying to load and all look ok .
Thanks,
meredith

On Friday, 28 March 2014, Conor Burgess notifications@github.com wrote:

Have you copied all of the files and folders into the plugin folder?

And have you set permission to make those folders at least group readable?

On 28 Mar 2014, at 16:57, mhhadfield <notifications@github.comjavascript:_e(%7B%7D,'cvml','notifications@github.com');>
wrote:

Hi Giddeon,
I am a Wordpress Newbie! here is my error ;

Warning: require(app/core/config.php): failed to open stream: No such
file or directory in
/site/htdocs/wordpress/wp-content/plugins/WPRavenAuth/WPRavenAuth.php on
line 30

Fatal error: require(): Failed opening required 'app/core/config.php'
(include_path='.:') in
/site/htdocs/wordpress/wp-content/plugins/WPRavenAuth/WPRavenAuth.php on
line 30

I am running wordpress in a directory to begin with for testing but it
doesn't seem to like me trying to activate it!

Thanks,
Meredith

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHubhttps://github.com//issues/28#issuecomment-38943841
.

@Burgch the odd thing is that it is loading core/set.php fine (WPRavenAuth.php:29). @mhhadfield, given that it seems to be loading another file fine, Could you try commenting out WPRavenAuth.php:30 and seeing if it manages to load the other files or if you get any require() errors? You'll get all sorts of other errors I imagine, but I'd like to see if it's just a problem with the config.php file.

Hi Both,
the Resutl was:

[Mon Mar 31 16:30:13 2014] [error][client 131.111.170.37] PHP Fatal error:
Class 'WPRavenAuth\Config' not found in
/site/htdocs/wordpress/wp-content/plugins/WPRavenAuth/app/core/custom_fields.php
on line 254, referer:
http://www.crim.cam.ac.uk/wordpress/wp-admin/plugins.php

[Mon Mar 31 16:30:23 2014] [error] [client 131.111.170.37] PHP Fatal
error: Class 'WPRavenAuth\Config' not found in
/site/htdocs/wordpress/wp-content/plugins/WPRavenAuth/app/core/custom_fields.php
on line 254

[Mon Mar 31 16:30:27 2014] [error] [client 131.111.170.37] PHP Fatal
error: Class 'WPRavenAuth\Config' not found in
/site/htdocs/wordpress/wp-content/plugins/WPRavenAuth/app/core/custom_fields.php
on line 254

[Mon Mar 31 16:30:36 2014] [error] [client 131.111.170.37] PHP Fatal
error: Class 'WPRavenAuth\Config' not found in
/site/htdocs/wordpress/wp-content/plugins/WPRavenAuth/app/core/custom_fields.php
on line 254

[Mon Mar 31 16:30:43 2014] [error] [client 131.111.170.37] PHP Warning:
require(app/core/config.php): failed to open stream: No such file or
directory in
/site/htdocs/wordpress/wp-content/plugins/WPRavenAuth/WPRavenAuth.php on
line 30

[Mon Mar 31 16:30:43 2014] [error] [client 131.111.170.37] PHP Fatal
error: require(): Failed opening required 'app/core/config.php'
(include_path='.:') in
/site/htdocs/wordpress/wp-content/plugins/WPRavenAuth/WPRavenAuth.php on
line 30

[Mon Mar 31 16:30:44 2014] [error] [client 172.17.10.11] File does not
exist: /site/htdocs/layerslider, referer: http://www.crim.cam.ac.uk/

[Mon Mar 31 16:30:45 2014] [error] [client 131.111.170.37] PHP Warning:
require(app/core/config.php): failed to open stream: No such file or
directory in
/site/htdocs/wordpress/wp-content/plugins/WPRavenAuth/WPRavenAuth.php on
line 30

[Mon Mar 31 16:30:45 2014] [error] [client 131.111.170.37] PHP Fatal
error: require(): Failed opening required 'app/core/config.php'
(include_path='.:') in
/site/htdocs/wordpress/wp-content/plugins/WPRavenAuth/WPRavenAuth.php on
line 30

[Mon Mar 31 16:30:46 2014] [error] [client 131.111.170.37] PHP Warning:
require(app/core/config.php): failed to open stream: No such file or
directory in
/site/htdocs/wordpress/wp-content/plugins/WPRavenAuth/WPRavenAuth.php on
line 30

[Mon Mar 31 16:30:46 2014] [error] [client 131.111.170.37] PHP Fatal
error: require(): Failed opening required 'app/core/config.php'
(include_path='.:') in
/site/htdocs/wordpress/wp-content/plugins/WPRavenAuth/WPRavenAuth.php on
line 30

In addition, the whole wordpress site crashed out and is refusing to come
back so I will have to roll it back to try again :)

Meredith

On Sat, Mar 29, 2014 at 1:41 AM, Gideon Farrell notifications@github.comwrote:

@Burgch https://github.com/Burgch the odd thing is that it is loading
core/set.php fine (WPRavenAuth.php:29). @mhhadfieldhttps://github.com/mhhadfield,
given that it seems to be loading another file fine, Could you try
commenting out WPRavenAuth.php:30 and seeing if it manages to load the
other files or if you get any require() errors? You'll get all sorts of
other errors I imagine, but I'd like to see if it's just a problem with the
config.php file.

Reply to this email directly or view it on GitHubhttps://github.com//issues/28#issuecomment-38983325
.

@Burgch I cannot see why it should be failing to find core/config.php, I thought maybe it could be case sensitivity but that's ruled out. All the cases are correct. My only thought is that it must be the file permissions, which would be distinctly strange since everything else is loading fine through require().

Any thoughts?

@mhhadfield could you perhaps try the following (after deleting the plugin completely from your plugins directory)? Replace the $plugins_folder and $webserver_group variables appropriately of course.

cd "$plugins_folder"
git clone git@github.com:gfarrell/WPRavenAuth.git ./WPRavenAuth

# then copy keys into the keys folder

chgrp -R $webserver_group ./WPRavenAuth
chmod -R g+rw ./WPRavenAuth

and then try activating it and seeing if it works.

@gfarrell Agreed, I can't see how this could be anything other than a permissions problem.

Hi Both,
I'm on it and will report back asap! :)
M

On Mon, Mar 31, 2014 at 4:54 PM, Conor Burgess notifications@github.comwrote:

@gfarrell https://github.com/gfarrell Agreed, I can't see how this
could be anything other than a permissions problem.

Reply to this email directly or view it on GitHubhttps://github.com//issues/28#issuecomment-39105338
.

Hi Both,
Amazingly, I started from scratch and it has decided to work (so far!) I
think the issue may have been that the extension for one of the keys was
2.txt instead of just '2' ?

Otherwise it is just decided to work on its own! I'll let you know how I
get on!
Thanks,
Meredith

On Mon, Mar 31, 2014 at 5:00 PM, Meredith Hadfield mhhadfield@gmail.comwrote:

Hi Both,
I'm on it and will report back asap! :)
M

On Mon, Mar 31, 2014 at 4:54 PM, Conor Burgess notifications@github.comwrote:

@gfarrell https://github.com/gfarrell Agreed, I can't see how this
could be anything other than a permissions problem.

Reply to this email directly or view it on GitHubhttps://github.com//issues/28#issuecomment-39105338
.

I imagine that it was a permissions problem, but having 2.txt instead of 2 will also cause problems.

On Tuesday, 1 April 2014 at 16:10, mhhadfield wrote:

Hi Both,
Amazingly, I started from scratch and it has decided to work (so far!) I
think the issue may have been that the extension for one of the keys was
2.txt instead of just '2' ?

Otherwise it is just decided to work on its own! I'll let you know how I
get on!
Thanks,
Meredith

On Mon, Mar 31, 2014 at 5:00 PM, Meredith Hadfield <mhhadfield@gmail.com (mailto:mhhadfield@gmail.com)>wrote:

Hi Both,
I'm on it and will report back asap! :)
M

On Mon, Mar 31, 2014 at 4:54 PM, Conor Burgess <notifications@github.com (mailto:notifications@github.com)>wrote:

@gfarrell https://github.com/gfarrell Agreed, I can't see how this
could be anything other than a permissions problem.

Reply to this email directly or view it on GitHubhttps://github.com//issues/28#issuecomment-39105338
.


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

Either way, glad to head that it's fixed.