Loading...
 
Skip to main content

failed to set proper "include_path" in tw 1.9.8.x

Status
Closed
Subject
failed to set proper "include_path" in tw 1.9.8.x
Version
1.9.x
2.x
Category
  • Error
Feature
Infrastructure
Installer (profiles, upgrades and server-related issues)
Resolution status
Out of Date
Submitted by
bobcatt
Lastmod by
Bernard Sfez / Tiki Specialist
Rating
(0)
Description

Hello

I had a lot of warning when i upgraded to tw 1.9.8.1 this morning.
It talked about include_once() problem and include_path.

Many things to say about:
php in safe_mode (deprecated) cannot modify ini value !
ini value set in apache conf with php_admin_value cannot be modified !

all scripts using "TikiInit::prependIncludePath()" have to check the return value of the method because init_set and set_include_path can return FALSE.
In this case, an error message should be printed to the user, and/or logged.

Here is a list of files using this method.
- db/tiki-db.php
- tiki-install.php
- tiki-setup.php

Solution

A better solution is probably creating a similar function to use in replacement of include_once().
for exemple :
tw_include_once() that does all the jobs.

Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
1376
Created
Monday 15 October, 2007 15:57:50 UTC
by Unknown
LastModif
Tuesday 02 November, 2021 13:05:24 UTC


Show PHP error messages