Site Session Error?
Permalink
I have just gone onto my site to edit it and it came up with:
...At the top. I think it may have something to do with an update but I dont know what to do!?
Help is much appreciated
Warning: session_start() [function.session-start]: open(/tmp/sess_3bfc801f35c4140bbbfd8e1617a94c43, O_RDWR) failed: Permission denied (13) in /home/mattgrey/public_html/updates/concrete5.4.1.1/concrete/startup/session.php on line 18
...At the top. I think it may have something to do with an update but I dont know what to do!?
Help is much appreciated
Check the user and/or permissions on the /tmp directory with your ftp client or via shell
There is no such file in that directory, im sure its to do with the file: /home/mattgrey/public_html/updates/concrete5.4.1.1/concrete/startup/session.php
Do I need to reinstall concrete or something?
Do I need to reinstall concrete or something?
If it helps: this is the contents of the file that it says is wrong on line 18
<?php defined('C5_EXECUTE') or die("Access Denied."); // Start the session ini_set('session.use_trans_sid',0); session_set_cookie_params(0, str_replace(' ', '%20', DIR_REL) . '/'); /* ini_set('session.save_path', DIR_SESSIONS); */ ini_set('session.gc_maxlifetime', SESSION_MAX_LIFETIME); //if we've set the _postSID variable, we populate session_id using it if (isset($_POST['ccm-session'])) { session_id($_POST['ccm-session']); } else if (isset($_REQUEST['sessionIDOverride'])) { session_id($_REQUEST['sessionIDOverride']); } session_name(SESSION); session_start();
Not sure about re-installing yet. Interesting the error is "denied" as opposed to "not found", none the less, have you tried clearing the C5 cache from the dashboard?
If the permissions on the /tmp directory got messed up, you could be seeing a denied error because apache is trying to access a directory it does have permission for. Does your /tmp directory look like:
[root@nte ~]# ls -al /tmp total 48 drwxrwxrwt. 7 root root 4096 Jun 20 13:40 .
Urr im using Filezilla so I dont know, I did try and refresh, did nothing.
This is the contents of the directory:
Name Size Last Modified (GMT Daylight Time)Type Perms
analog
4 KB
Feb 14, 2011 1:07 PM
httpd/unix-directory
0755
awstats
4 KB
Today 1:36 AM
httpd/unix-directory
0755
cpbandwidth
4 KB
Feb 17, 2011 4:58 PM
httpd/unix-directory
0755
webalizer
4 KB
Feb 14, 2011 1:07 PM
httpd/unix-directory
0755
webalizerftp
4 KB
Feb 14, 2011 1:07 PM
httpd/unix-directory
0755
bw-mattgrey-7days.png
11.75 KB
Feb 17, 2011 5:14 PM
image/x-generic
0644
bw-mattgrey-today.png
12.51 KB
Feb 17, 2011 5:14 PM
image/x-generic
0644
bw-mattgrey-year.png
This is the contents of the directory:
Name Size Last Modified (GMT Daylight Time)Type Perms
analog
4 KB
Feb 14, 2011 1:07 PM
httpd/unix-directory
0755
awstats
4 KB
Today 1:36 AM
httpd/unix-directory
0755
cpbandwidth
4 KB
Feb 17, 2011 4:58 PM
httpd/unix-directory
0755
webalizer
4 KB
Feb 14, 2011 1:07 PM
httpd/unix-directory
0755
webalizerftp
4 KB
Feb 14, 2011 1:07 PM
httpd/unix-directory
0755
bw-mattgrey-7days.png
11.75 KB
Feb 17, 2011 5:14 PM
image/x-generic
0644
bw-mattgrey-today.png
12.51 KB
Feb 17, 2011 5:14 PM
image/x-generic
0644
bw-mattgrey-year.png
If this cant be fixed, how do I reinstall concrete without breaking it further?
Had you backed up your site prior to getting this error ?
Yes but a while ago before some content was added, so I think ill lose some stuff