1
Hi, I have installed xcGallery and netpbm and have to run it in safe mode for the moment.
In the readme.txt file of the module there is a "workaround" for running in safe mode and reads like this:
----------------------------------
Safe Mode:
If php runs on your server the safe mode enabled, you can't use xcGallery as it is, but there is a workaround. I haven't test this option, but it works only! then the safe mode configuration is faultily. To try this out, open the xcgal/include/init.inc.php go to line 36 and uncomment "//define('SILLY_SAFE_MODE',1);" (delete the slashes
![](https://xoops.org/uploads/smil42e7a65fee35d.gif)
) ans save it now go and try it, may be you have luck.
----------------------------------
I have done this as it says and get this message when I try to upload a single picture in usermode:
Quote:
/home/httpd/vhosts/mydomain.com/subdomains/kiwisworld/httpdocs/netpbm/jpegtopnm 'albums/userpics/919.jpg' | pnmscale -xsize=59 -ysize=80 | pnmtojpeg -quality=80 > 'albums/userpics/thumb_919.jpg'
followed by these errors:
Quote:
Warning [PHP]: chmod(): Unable to access albums/userpics/thumb_919.jpg in file modules/xcgal/include/picmgmt.inc.php line 252
Warning [PHP]: chmod(): No such file or directory in file modules/xcgal/include/picmgmt.inc.php line 252
Warning [PHP]: getimagesize(): Unable to access albums/userpics/thumb_919.jpg in file modules/xcgal/include/picmgmt.inc.php line 255
Warning [PHP]: getimagesize(albums/userpics/thumb_919.jpg): failed to open stream: No such file or directory in file modules/xcgal/include/picmgmt.inc.php line 255
I have looked at the code for lines 252 and 255 and they look like this:
Quote:
line 252= chmod($dest_file, octdec($xoopsModuleConfig['default_file_mode']));
line 255= $imginfo = getimagesize($dest_file);
I have set the permissions of the albums and userpics folders to 777 and the netpbm folder and files to 777 as required.
Can you please help me.
Thanks,
Booga.