Post by specimen66 » Sat Aug 20, 2011 12:22 am

I am getting this error message for the first time on a new site. I haven't made any recent changes to anything, so I don't understand why I am getting this message now.

You can see it at:
http://greenbuydirect.com/

many thanks :)

the error in full:

Code: Select all

Warning: session_start() [function.session-start]: open(/var/chroot/home/content/92/7407392/tmp/sess_bd6af97fd6f818725de9a2f8ca187f9f, O_RDWR) failed: File too large (27) in /home/content/92/7407392/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/content/92/7407392/html/index.php:92) in /home/content/92/7407392/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/content/92/7407392/html/index.php:92) in /home/content/92/7407392/html/system/library/session.php on line 11Warning: Cannot modify header information - headers already sent by (output started at /home/content/92/7407392/html/index.php:92) in /home/content/92/7407392/html/index.php on line 168Warning: Cannot modify header information - headers already sent by (output started at /home/content/92/7407392/html/index.php:92) in /home/content/92/7407392/html/system/library/currency.php on line 45

Newbie

Posts

Joined
Thu Jun 16, 2011 3:40 am

Post by rph » Sat Aug 20, 2011 3:46 am

Make sure you're not out of space on your server.

-Ryan


rph
Expert Member

Posts

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

Post by specimen66 » Sun Aug 21, 2011 2:21 am

I know for sure that I am not out of space on the server. I contacted the host and they looked at the error and said that this is caused by scripting/coding somehow.

Newbie

Posts

Joined
Thu Jun 16, 2011 3:40 am

Post by uksitebuilder » Sun Aug 21, 2011 3:49 am

sounds like the file is too large.

Most hosts have a limited size for the tmp directory which sits outside of the site's root.

You should ask your host to clear out the tmp directory.

You could also create a tmp directory of your own using php.ini by putting the following lines:

session.save_path = /home/user/temp
upload_tmp_dir = /home/user/temp

Change the paths to suit your new path to temp folder

Again, it should sit outside of your public folder. If you are on shared hosting, yu probably will not be able to do this.

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by specimen66 » Sun Aug 21, 2011 9:09 am

thanks for the reply Simon - could I create a temp dir within my public folder? (what are downsides to this?)

Newbie

Posts

Joined
Thu Jun 16, 2011 3:40 am

Post by specimen66 » Sun Aug 21, 2011 10:41 am

to test this, I created a tmp dir in my home folder. I still get the exact same error message (File too large (27)), (the only thing being different in the error now is the new path to the new directory)

could an error in the template I am using be causing the same data to be sent over and over - some sort of stack issue?

Newbie

Posts

Joined
Thu Jun 16, 2011 3:40 am

Post by rph » Sun Aug 21, 2011 2:16 pm

You need to contact your host's technical support. There's nothing anyone here can do to help.

-Ryan


rph
Expert Member

Posts

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

Post by Daniel » Sun Aug 21, 2011 4:08 pm

this has nothing to do with opencart. this is purely your host not setting up your server properly. the session tmp directory. the data should not be to large. unless you have altered something to cause this.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by specimen66 » Mon Aug 22, 2011 4:26 am

Tks Daniel, I don't see either how this could be an OC issue. I contacted the host and they said:

Upon reviewing this issue with our technicians it does appear that your /tmp directory if full. Issues of this type typically occur when too many files are uploaded to this directory at once and this may indicate a larger issue with your application or a plug-in installed on it. We can clear out the /tmp directory on your behalf if you reply stating that we have your permission to do so, but you may also want to review the scripting of your website to prevent this from happening again

I dont have any mods/extensions/plug-ins etc installed in OC and the thing that makes no sense here is that they only files ever uploaded are images, which are limited to 300kb. Somehow, something on the server must not be config'd properly on the host's end, which leads me to conclude:

the best plan for me -gonna shop for another host - can you recommend a good host for OC?

again, many thanks.

Newbie

Posts

Joined
Thu Jun 16, 2011 3:40 am

Post by i2Paq » Tue Nov 08, 2011 12:58 am

Why not just post the solution here?

The (your) \TMP (temp) folder is full because of an issue with the 2x php.ini files.
The temp files are saved to long.

In the \php.ini find:

Code: Select all

session.gc_maxlifetime = 12000000;
This number is in seconds, so in hours that would be; 3,334 – which is 138 days!

Change to:

Code: Select all

session.gc_maxlifetime = 3600;
Wich is just one (1) hour.

In the \admin\php.ini find:

Code: Select all

session.gc_maxlifetime = 12000000;
Change to:

Code: Select all

session.gc_maxlifetime = 10800;
Wich is just three (3) hours.

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by olstar » Wed Nov 09, 2011 1:00 am

i2Paq wrote:
Why not just post the solution here?

The (your) \TMP (temp) folder is full because of an issue with the 2x php.ini files.
The temp files are saved to long.

In the \php.ini find:

Code: Select all

session.gc_maxlifetime = 12000000;
This number is in seconds, so in hours that would be; 3,334 – which is 138 days!

Change to:

Code: Select all

session.gc_maxlifetime = 3600;
Wich is just one (1) hour.

In the \admin\php.ini find:

Code: Select all

session.gc_maxlifetime = 12000000;
Change to:

Code: Select all

session.gc_maxlifetime = 10800;
Wich is just three (3) hours.
Cos you seem to like following me round the forum doing that for me O0

Professional UK Based eCommerce - Our Free Opencart Mods - Our Premium Opencart Mods
Kashflow Integration


User avatar
New member

Posts

Joined
Tue Jul 05, 2011 3:53 pm

Who is online

Users browsing this forum: No registered users and 21 guests