DAVical gives back empty page only

Bug #717810 reported by produnis on 2011-02-12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
davical (Ubuntu)
Andrew McMillan

Bug Description

Binary package hint: davical

After installing davical on Lucid-64bit, its webpage gives back an empty page only.
Looking at apaches error log, it says:
 PHP Fatal error: require_once(): Failed opening required 'AWLUtilities.php' (include_path='../inc:0') in /usr/share/davical/inc/always.php on line 54

The requested AWLUtilities.php is located at /usr/share/awl/inc/AWLUtilities.php

After manually fixing davicals's always.php to find AWLUtilities, it goes on and on complainig about other "missing" files, which all are intsalled at my system.

After changing 6 files, and still having a complaining davical, I gave up...

Andrew McMillan (karora) wrote :

Thanks. What fix did you apply?

The original include_path looks odd though - it's normally recommended to set the include path to "../inc:/usr/share/awl/inc" although always.php does try to find the includes there in the first place, and I really don't have a clue why that does not work for you.

Specifically the "0" in (include_path='../inc:0') is what looks peculiar in the above. How did that get there?

Andrew McMillan.

produnis (schlarmann-uni-wh) wrote :

Strangely, the include-path in php.ini seems to be ignored.
I fixed my issues by symlinking
/usr/share/awl/inc/ into /usr/share/davical/inc

$> cd /usr/share/davical/inc
$> sudo ln -s /usr/share/awl/inc/* .

Andrew McMillan (karora) wrote :

Hmmm... I think that the PHP include path might be being set in the Apache virtual host (that's the recommended approach, but I don't know if someone hacked on what Ubuntu does in this regard). I guess symlinking all of the AWL includes into the DAViCal include directory is better than worst case :-)


Andrew McMillan (karora) wrote :

Recent versions of DAViCal don't need or expect the include path to be set to find the AWL libraries (at least on Debian, Ubuntu and most distribution packages in general).

Changed in davical (Ubuntu):
assignee: nobody → Andrew McMillan (karora)
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers