PDA

View Full Version : ZenCart Errors in tmp dir


pageperf
1-8-05, 05:10 PM
Hi,

I've been running a ZenCart version of OSCommerce for about a year now with virtually no problems up until recently I've noticed that I am getting the following errors, apparently from reading some other posts POWEB has recently diabled the common tmp directory for user uploads using PHP/Mysql, I took the info I found in regards to creating a php.ini file with the fix info in it and placed it according to what was directed and created a temp dir, etc. but nothing I do has no effect and I still get the following errors when accessing the catalog at my site:

Warning: mkdir(/tmp/ce): Permission denied in /www/b/biomed/htdocs/catalog/includes/classes/adodb/adodb.inc.php on line 1510

Warning: fopen(/tmp/ce/adodb_ced7467a5c5d70302a1d18354ee4d555.cache): failed to open stream: No such file or directory in /www/b/biomed/htdocs/catalog/includes/classes/adodb/adodb.inc.php on line 3559

Warning: session_start(): open(/tmp/sess_4c104d3d3de451d8914d1c3c01f6bbc3, O_RDWR) failed: Permission denied (13) in /www/b/biomed/htdocs/catalog/includes/functions/sessions.php on line 111
Warning: I am not able to write to the SQL cache directory: /tmp. SQL cacheing will not work until the right user permissions are set.

If anyone can give me some help as to how I would be able to fix this problem step by step I would sincerely appreciate your help.

My site address for the catalog is located at http://www.biomedical-communications.com/catalog

Thanks,

Mike

stevel
1-8-05, 05:45 PM
See this thread (http://forum.powweb.com/showthread.php?t=44939). You need to create a customized php.ini.

cjcraven
1-11-05, 03:09 AM
Thank you! That explained quite a bit except the content of the php.ini file. What needs to be in there?

stevel
1-11-05, 10:25 AM
The definition of upload_tmp_dir needs to be changed from empty to your package's /www/u/username path That's the only change you have to make.

cjcraven
1-11-05, 09:22 PM
Thanks Steve,
Actually what I wanted to know is where to get the php.ini file since I don't have one. I found the answer in the PowWeb Announcements under PHP File Uploading. There they have one that can be copied, modified, and uploaded into the htdocs folder.

Regrettably Zen Cart still reports SQL cacheing doesn't work and I can't upload images with the application.

I'll fool around with the file a bit more, perhaps I'm missing something.

stevel
1-11-05, 09:30 PM
Send me a Private Message and include the "File Uploads" section of your php.ini. Make sure that you uploaded it in ASCII mode.

cjcraven
1-11-05, 09:37 PM
Okay, images upload now but still have the SQL problem. Error message reads;

Warning: I am not able to write to the SQL cache directory: /tmp. SQL cacheing will not work until the right user permissions are set.

Any idea how to fix this?