Loading...
 
Skip to main content

Smarty warnings from core.get_include_path.php

Status
Pending
Subject
Smarty warnings from core.get_include_path.php
Version
5.x
7.x
Category
  • Error
Feature
All / Undefined
Submitted by
Dominique Meeùs
Lastmod by
Dominique Meeùs
Rating
(0)
Description

Error using Tiki 5.3 on a shared hosting (installed in …/httpdocs/tiki). This error does not occur with TikiWiki 4.1 on the same hosting (installed in …/httpdocs/tiki4).

When I try (as admin) to edit users in Tiki 5.3, I get these PHP errors:
PHP (5.2.9) ERROR (E_WARNING):
File: lib/smarty/libs/internals/core.get_include_path.php
Line: 34
Type: is_readable() function.is-readable: open_basedir restriction in effect. File(/lib/smarty_tiki//modifier.count.php) is not within the allowed path(s): (/var/www/vhosts/d-meeus.be/httpdocs:/tmp)
PHP (5.2.9) ERROR (E_WARNING):
File: lib/smarty/libs/internals/core.get_include_path.php
Line: 34
Type: is_readable() function.is-readable: open_basedir restriction in effect. File(/lib/smarty_tiki//compiler.icon.php) is not within the allowed path(s): (/var/www/vhosts/d-meeus.be/httpdocs:/tmp)
PHP (5.2.9) ERROR (E_WARNING):
File: lib/smarty/libs/internals/core.get_include_path.php
Line: 34
Type: is_readable() function.is-readable: open_basedir restriction in effect. File(/lib/smarty_tiki//block.icon.php) is not within the allowed path(s): (/var/www/vhosts/d-meeus.be/httpdocs:/tmp)
PHP (5.2.9) ERROR (E_WARNING):
File: lib/smarty/libs/internals/core.get_include_path.php
Line: 34
Type: is_readable() function.is-readable: open_basedir restriction in effect. File(/lib/smarty_tiki//modifier.ucwords.php) is not within the allowed path(s): (/var/www/vhosts/d-meeus.be/httpdocs:/tmp)

To me it seems that the open_basedir restriction is reasonable (my hosted Web space + /tmp). There seems to be a syntax error (beginning / before lib) inducing a confusion between /lib on the server and the …/httpdocs/tiki/lib folder in my installation. (By the way, I do not understand // in the path.)

I tried to read line 34 in core.get_include_path.php, but I am not a programmer and I cannot figure how to correct the syntax error. I do not know the value of all these variables at the moment the function is called.

Could somebody suggest a correction or a workaround?

Solution

The Smarty warnings remain, but workaround found.
(The 5.3 admin users bug - see comments - was fixed in 5.4.)

Workaround
Suppress "DIRECTORY_SEPARATOR . " on lines 34 and 35 of smarty/libs/internals/core.get_include_path.php.
Importance
1 low
Priority
5
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
3580
Created
Wednesday 13 October, 2010 10:22:44 UTC
by Dominique Meeùs
LastModif
Monday 08 August, 2011 05:30:27 UTC


Show PHP error messages