Failed to open stream

Hi,

My site’s been working ok for quite a while but today it’s giving everyone this message when they try to log in:

[code]Warning: require_once(/home/knottyolly/dreadlocktruth.com/components/com_community/libraries/videos.php) [function.require-once]: failed to open stream: Permission denied in /home/knottyolly/dreadlocktruth.com/plugins/user/jomsocialuser/jomsocialuser.php on line 20

Fatal error: require_once() [function.require]: Failed opening required ‘/home/knottyolly/dreadlocktruth.com/components/com_community/libraries/videos.php’ (include_path=’.:/home/knottyolly/dreadlocktruth.com/plugins/system/zend:.:/usr/local/lib/php:/usr/local/php5/lib/pear’) in /home/knottyolly/dreadlocktruth.com/plugins/user/jomsocialuser/jomsocialuser.php on line 20
[/code]

Line 20 on jomsocialuser.php is as follows:

require_once(JPATH_ROOT . DS . 'components' . DS . 'com_community' . DS . 'libraries' . DS . 'videos.php');

Does anyone know what to do? It’s fine until you try to log in, including the admin panel. :frowning:

failed to open stream: Permission denied

What are the permissions for the file and directory? It may be your site was attacked as well, so I would check the modified dates to ensure they are what you loaded.

Thanks for the reply - permissions for jomsocialuser.php are adfrw (0644), the directory is flcdmpe (0755). The last modified dates are from 2013.

Is anyone able to help?

You might need to change the owner of the file…

$sudo chown nobody /home/knottyolly/dreadlocktruth.com/components/com_community/libraries/videos.php
$sudo chown nobody /home/knottyolly/dreadlocktruth.com/components/com_community/libraries

Assuming your apache server runs as nobody.

I’m not a linux unix person - but that’s where I would look first.

Sponsor our Newsletter | Privacy Policy | Terms of Service