Smarty Errors

Hankos
Hankos's picture

Joined: 2003-03-04
Posts: 3
Posted: Tue, 2003-03-04 14:19

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

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Tue, 2003-03-04 21:53
Quote:
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

Your host has safe mode on, Gallery won't run in this environment... :sad:

 
Hankos
Hankos's picture

Joined: 2003-03-04
Posts: 3
Posted: Wed, 2003-03-05 15:19

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

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2003-03-05 19:08

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.

 
baschny
baschny's picture

Joined: 2003-01-04
Posts: 328
Posted: Wed, 2003-03-05 20:06
Quote:
<VirtualHost 80.84.226.111>
...
BytesLog domlogs/blaa.org-bytes_log
php_admin_value safe_mode 0
...
</VirtualHost>

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:

Quote:
php_admin_flag name on|off
Used to set a Boolean configuration directive. This can NOT be used in .htaccess files. Any directive type set with php_admin_flag can not be overridden by .htaccess or virtualhost directives.

So the choices are stated here as being just "on" or "off", maybe that's the problem?

 
Hankos
Hankos's picture

Joined: 2003-03-04
Posts: 3
Posted: Thu, 2003-03-06 13:32

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