DAVical gives back empty page only

Bug #717810 reported by produnis
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
davical (Ubuntu)
Fix Released
Undecided
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...

Revision history for this message
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?

Regards,
Andrew McMillan.

Revision history for this message
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/* .

Revision history for this message
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 :-)

Cheers,
Andrew.

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.