Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 529996 - www-apps/davical-1.1.3.1 - wrong include_path (Failed opening required 'Principal.php')
Summary: www-apps/davical-1.1.3.1 - wrong include_path (Failed opening required 'Princ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-20 21:00 UTC by Maxime de Roucy
Modified: 2015-12-23 22:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxime de Roucy 2014-11-20 21:00:01 UTC
I updated davical 1.1.1-r1 to 1.1.3.1 with the command line :
  webapp-config -U -h davical.craoc.fr davical 1.1.3.1

After that, logs :

PHP Warning:  require_once(Principal.php): failed to open stream: No such file or directory in /var/www/davical.craoc.fr/htdocs/always.php on line 243
Nov 16 13:16:35 max-server : PHP Fatal error:  require_once(): Failed opening required 'Principal.php' (include_path='../../davical/inc:/usr/share/php/awl/inc:.:/usr/share/php5:/usr/share/php') in /var/www/davical.craoc.fr/htdocs/always.php on line 243

I changed always.php to solve the problem :
- set_include_path( '../../davical/inc'. PATH_SEPARATOR. get_include_path());
+ set_include_path( '../davical/inc'. PATH_SEPARATOR. get_include_path());

I also had the bug #529994 after that.
Comment 1 Maxime de Roucy 2015-07-31 13:54:22 UTC
The problem still happen in www-apps/davical-1.1.3.1-r2 but the simple solution still solve it :
- set_include_path( '../../davical/inc'. PATH_SEPARATOR. get_include_path());
+ set_include_path( '../davical/inc'. PATH_SEPARATOR. get_include_path());
Comment 2 Maxime de Roucy 2015-12-23 22:37:37 UTC
I reinstalled davical and found that I experienced this bug because I had installed it with :
  webapp-config -h davical.craoc.fr -d . -I davical 1.1.3.1-r2

"-d ." seams to be not supported since I get an error when I tried to uninstall it (I had to use "-d ''" to be able to uninstall it)

I now install davical with :
  webapp-config -h davical.craoc.fr -I davical 1.1.3.1-r2

And the problem is gone… So I will mark this bug as obsolete since "webapp-config … -d . …" seams no longer supported.