[email protected] Posted December 8, 2004 Posted December 8, 2004 I woke up this morning and my cart was all messed up, headers in admin were numbers and digits, and I had a warning on the front page of my cart that my permissions were open, I fixed that and the giberish in the headers however, I still get the following error when I try to purchase something from my cart. Error! Unable to determine the page link! I went to one of our clients carts and they had the same open permissions warning on their page, this happened over night, everything was fine yesterday afternoon. I didnt do any updates or changes yesterday to any of our sites. Have we been hacked? Here is the site address, http://www.mytinydog.com/catalog if you would like to see the errors and when they happen. I copied the error log for yesterday "pasted below" Thanks for the help. [06-Dec-2004 14:04:42] PHP Warning: session_start(): open(/tmp/sess_e0dca34b0c4612a4e4872e923a80c72e, O_RDWR) failed: Permission denied (13) in /home/tamolly/public_html/catalog/includes/functions/sessions.php on line 67 [06-Dec-2004 14:04:42] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/tamolly/public_html/catalog/includes/functions/sessions.php:67) in /home/tamolly/public_html/catalog/includes/functions/sessions.php on line 67 [06-Dec-2004 14:04:42] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/tamolly/public_html/catalog/includes/functions/sessions.php:67) in /home/tamolly/public_html/catalog/includes/functions/general.php on line 29 [06-Dec-2004 14:04:42] PHP Warning: session_write_close(): open(/tmp/sess_e0dca34b0c4612a4e4872e923a80c72e, O_RDWR) failed: Permission denied (13) in /home/tamolly/public_html/catalog/includes/functions/sessions.php on line 106 [06-Dec-2004 14:04:42] PHP Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in /home/tamolly/public_html/catalog/includes/functions/sessions.php on line 106 [07-Dec-2004 20:46:08] PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/tmp/mysql.sock' (2) in /home/tamolly/public_html/catalog/includes/functions/database.php on line 19 [07-Dec-2004 20:46:15] PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/tmp/mysql.sock' (2) in /home/tamolly/public_html/catalog/includes/functions/database.php on line 19 [07-Dec-2004 20:49:18] PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/tmp/mysql.sock' (2) in /home/tamolly/public_html/catalog/includes/functions/database.php on line 19 [07-Dec-2004 20:49:24] PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/tmp/mysql.sock' (2) in /home/tamolly/public_html/catalog/includes/functions/database.php on line 19
Guest Posted December 8, 2004 Posted December 8, 2004 open(/tmp means that you are attempting to write to a directory named /tmp (which is in the root directory). create a tmp directory at /home/tamolly, so it is /home/tamolly/tmp and then change the sectoin in the store admin, under logging, cache, sessions to point to the new location. give the tmp 700 permission and if that doesnt work then you will need to use 777
[email protected] Posted December 8, 2004 Author Posted December 8, 2004 open(/tmp means that you are attempting to write to a directory named /tmp (which is in the root directory).create a tmp directory at /home/tamolly, so it is /home/tamolly/tmp and then change the sectoin in the store admin, under logging, cache, sessions to point to the new location. give the tmp 700 permission and if that doesnt work then you will need to use 777 <{POST_SNAPBACK}> I tried changing the permissions to 777 on the root tmp folder, however I am still getting the following error when adding an item to my cart, it proceeds to the whats in my cart page with "Error! Unable to determine the page link!" underneath the update button.
♥Vger Posted December 8, 2004 Posted December 8, 2004 The root tmp folder is always listed as /tmp when in reality it should be tmp/ But the best advice you can take is to follow what Mibble said and move it out of the root directory - that is, if you want to store sessions in files. Far better to edit the bottom of both of your configure.php files to this: define('STORE_SESSIONS', 'mysql'); This gets rid of sessions being stored in a tmp folder and stores them in the database instead. Vger
Guest Posted December 8, 2004 Posted December 8, 2004 The root tmp folder is always listed as /tmp when in reality it should be tmp/ But the best advice you can take is to follow what Mibble said and move it out of the root directory - that is, if you want to store sessions in files. Far better to edit the bottom of both of your configure.php files to this: define('STORE_SESSIONS', 'mysql'); This gets rid of sessions being stored in a tmp folder and stores them in the database instead. Vger <{POST_SNAPBACK}> That doesnt seem to be affecting the error I am getting upon adding something to my cart. Is it a seperate issue?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.