Post by josiahgarber » Tue Jul 02, 2013 2:22 am

I'm getting the following error message on our site at www.keystonepetplace.com

Code: Select all

Warning: session_start() [function.session-start]: open(/tmp/sess_31ac8e2ad792d72719ce17f0b2c5f30e, O_RDWR) failed: No space left on device (28) in /home/keystone/public_html/system/library/session.php on line 11Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/keystone/public_html/index.php:105) in /home/keystone/public_html/system/library/session.php on line 11Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/keystone/public_html/index.php:105) in /home/keystone/public_html/system/library/session.php on line 11Notice: Error: Can't create/write to file '/tmp/#sql_b08_0.MYI' (Errcode: 28)
Error No: 1
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE cd.language_id = '1' AND c2s.store_id = '0' AND c.status = '1' AND c.sort_order <> '-1' ORDER BY c.sort_order, LCASE(cd.name) in /home/keystone/public_html/system/database/mysql.php on line 49
Fatal error: Call to a member function get() on a non-object in /home/keystone/public_html/index.php on line 104
I have already confirmed with the webhost that there is enough space. We are not even close to our limit.

Anyone have any ideas? Thanks.

New member

Posts

Joined
Mon Sep 24, 2012 10:31 pm

Post by discfoo » Tue Jul 02, 2013 3:09 am

the device which is out of space is mounted on /tmp; this is not the same as the device your store is hosted on

depending on your hosting /tmp might be shared with other sites; but regardless something is wrong for /tmp to be 100% full

tell your host its /tmp that is full - they should be able to clear it and advise further

discfoo.com
Flexible, dependable price and product discounts


Newbie

Posts

Joined
Thu Sep 20, 2012 2:49 am

Post by josiahgarber » Tue Jul 02, 2013 3:52 am

The strange thing is there doesn't seem to bee much in /tmp

New member

Posts

Joined
Mon Sep 24, 2012 10:31 pm

Post by josiahgarber » Tue Jul 02, 2013 3:59 am

tmp file was checked and is only at 33% space used.

New member

Posts

Joined
Mon Sep 24, 2012 10:31 pm

Post by butte » Tue Jul 02, 2013 4:24 am

Where I'm noticing "Cannot send session cookie - headers already sent" in particular, you might try flushing your vqmod cache, and perhaps with support's help also flushing /tmp. Double-check php.ini session settings.

Essentially, it had a session problem, ran up against "no space left" and couldn't "create/write" before it then stopped on a "member function get() on a non-object". Where you see error codes such as the stated 28 and 1, you can try looking them up in the host control panel's phpMyAdmin (or on-line).

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by rph » Tue Jul 02, 2013 5:15 am

josiahgarber wrote:The strange thing is there doesn't seem to bee much in /tmp
You're likely looking at a different /tmp directory. The one that's likely being referenced is the OS temp directory (/tmp) and the one you're looking at is likely the user temp directory (/home/USER/tmp).

If you're using OpenCart 1.5.4.1 or earlier edit /php.ini and /admin/php.ini and change:

Code: Select all

session.gc_maxlifetime = 12000000;
to

Code: Select all

session.gc_maxlifetime = 172800;
That will cut the session file lifetime from 138 days to 2. You can also try lower figures if you want. (The lifetime is specified in seconds.)

If that doesn't work there are some other things you can try.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by josiahgarber » Tue Jul 02, 2013 7:58 pm

rph wrote: If you're using OpenCart 1.5.4.1 or earlier edit /php.ini and /admin/php.ini and change:

Code: Select all

session.gc_maxlifetime = 12000000;
to

Code: Select all

session.gc_maxlifetime = 172800;
That will cut the session file lifetime from 138 days to 2. You can also try lower figures if you want. (The lifetime is specified in seconds.)

If that doesn't work there are some other things you can try.
I edited the code and still have the problem. Does it take some time till the old sessions are cleared out? I'm not sure how I can access the /tmp for the operating system. Thanks for your help.

New member

Posts

Joined
Mon Sep 24, 2012 10:31 pm

Post by josiahgarber » Tue Jul 02, 2013 10:09 pm

Looks like everything is good now. Editing the php.ini files seemed to work, just to take a while till it did.

New member

Posts

Joined
Mon Sep 24, 2012 10:31 pm
Who is online

Users browsing this forum: barnettgs and 132 guests