Hi guys,
Okay i downloaded the latest file off cvs and did the setup that also didn't go to well, now i get the following error upon browsing to /main.php
Does anyone know what the problem could be ?
Warning: Cannot add header information - headers already sent by (output started at /home/blaa/public_html/g2/config.php:115) in /home/blaa/public_html/g2/modules/core/classes/GallerySession.class on line 218
Notice: Undefined variable: country in /home/blaa/public_html/g2/modules/core/classes/GalleryTranslator.class on line 188
Warning: SAFE MODE Restriction in effect. The script whose uid is 32185 is not allowed to access /home owned by uid 0 in /home/blaa/public_html/g2/lib/smarty/Smarty.class.php on line 2255
Warning: Smarty error: problem creating directory "/home/blaa/public_html/g2/g2data/smarty/templates_c//%%-17/%%-1740578653" in /home/blaa/public_html/g2/lib/smarty/Smarty.class.php on line 1043
Warning: Smarty error: problem writing temporary file '/home/blaa/public_html/g2/g2data/smarty/templates_c//%%-17/%%-1740578653/3e64b41b33464' in /home/blaa/public_html/g2/lib/smarty/Smarty.class.php on line 1043
Warning: unable to create file /home/blaa/public_html/g2/g2data/smarty/templates_c//%%-17/%%-1740578653/global.tpl.php because No such file or directory in /home/blaa/public_html/g2/lib/smarty/Smarty.class.php on line 1580
Warning: Unable to access /home/blaa/public_html/g2/g2data/smarty/templates_c//%%-17/%%-1740578653/global.tpl.php in /home/blaa/public_html/g2/lib/smarty/Smarty.class.php on line 1165
Warning: Failed opening '/home/blaa/public_html/g2/g2data/smarty/templates_c//%%-17/%%-1740578653/global.tpl.php' for inclusion (include_path='') in /home/blaa/public_html/g2/lib/smarty/Smarty.class.php on line 1165
Posts: 8194
Your host has safe mode on, Gallery won't run in this environment... :sad:
Posts: 3
Hi there,
Safe mode is not on, that's the problem.
Check this:
<VirtualHost 80.84.226.111>
ServerAlias http://www.blaa.org blaa.org
ServerAdmin
DocumentRoot /home/blaa/public_html
BytesLog domlogs/blaa.org-bytes_log
php_admin_value safe_mode 0
php_admin_value open_basedir "/home/blaa/:/tmp/"
User blaa
Group blaa
ServerName http://www.blaa.org
CustomLog domlogs/blaa.org combined
ScriptAlias /cgi-bin/ /home/blaa/public_html/cgi-bin/
</VirtualHost>
So got any idea on what it could be ?
Greetings
Henk
Posts: 7994
In my experience, if PHP says "Warning: SAFE MODE Restriction in effect." then safe mode is in effect, no matter what you've got in your various config files. So my guess is that something is wrong with your confiig, though it's difficult to tell exactly what is wrong.
I don't believe that you can turn off safe mode in a virtual host block. I believe that it has to be set in your php.ini file and can't be overridden.
Posts: 328
Don't know if this really helps, but try to change the "0" to "off", I have seen this working on some servers. From the PHP-manual:
So the choices are stated here as being just "on" or "off", maybe that's the problem?
Posts: 3
Hi there,
I fixed the Safemode restriction, but now this last error I hope :smile:
As followed:
Warning: Unable to access /home/blaa/public_html/g2/home/blaa/public_html/g2/modules/core/module.inc in /home/blaa/public_html/g2/init.php on line 52
Fatal error: Failed opening required '/home/blaa/public_html/g2/home/blaa/public_html/g2/modules/core/module.inc' (include_path='') in /home/blaa/public_html/g2/init.php on line 52
Greetings
Henk