Author Topic: Inconsistent Include Errors  (Read 3048 times)

Offline steogede

  • Newbie
  • *
  • Posts: 3
Inconsistent Include Errors
« on: March 17, 2008, 03:05:37 PM »
I am new to RoundCube having just installed RoundCube-0.1 and I keep getting inconsistent errors when loading various include files.

For example when I first configured it, step 1 (checking my setup) showed everything was fine and I proceeded to step 2. When I got to step 3 (testing the configuration) it returned me to step 1 only this time all the PEAR related includes were shown as "Not OK" or "Not Available". After restarting my webserver everthing was fine, for a short while. Then I started getting warnings that various include files could not be opened, again everything was fine after restarting my webserver.

The typical error message looks as follows, only the include file changes (imap.inc is a common one):

Warning: require_once(include/rcube_shared.inc): failed to open stream: No such file or directory in /srv/www/vhosts/XXXX.org/subdomains/XXXXmail/httpdocs/index.php on line 81 Fatal error: require_once(): Failed opening required 'include/rcube_shared.inc' (include_path='.:/usr/share/php5:/usr/share/php5/PEAR') in /srv/www/vhosts/XXXX.org/subdomains/XXXXmail/httpdocs/index.php on line 81

Has anyone seen anything like this before, all I could find on Google was a post on a Russian forum from someone who seemed to be having the same problem (as best I could make out from the Google translation). For some reason it seems to be resetting include_path to my php.ini defined include_path or failing to set it in the first place - I suppose the question is, why?

Offline nielsvroegin

  • Newbie
  • *
  • Posts: 1
Re: Inconsistent Include Errors
« Reply #1 on: March 18, 2008, 04:54:17 AM »
I think I have the same problem.

Because some kind of reason the "ini_set: 'include_path':" doesn't work, other ini sets do work well.

I think this has something to do with it:
http://bugs.php.net/bug.php?id=43677

I'm using PHP 5.2.5 in combination with Apache/2.2.3 running at a CentOs server, with plesk 8.3.0 control software.
Which PHP version do you use?


Offline steogede

  • Newbie
  • *
  • Posts: 3
Re: Inconsistent Include Errors
« Reply #2 on: March 18, 2008, 07:50:05 AM »
Quote
I'm using PHP 5.2.5 in combination with Apache/2.2.3 running at a CentOs server, with plesk 8.3.0 control software.
Which PHP version do you use?

Funnily enough, all the same as you but on SUSE 10.2.

Quote
I think this has something to do with it:
http://bugs.php.net/bug.php?id=43677

Yep that looks like the one, thanks nielsvroegin, nice to know that I am not going crazy.

Where to go from here :-\, do I wait for SUSE to release a fixed version (in about 3-4 months time), do I patch and recompile PHP and all the modules or do I change all my 'php_admin_value include_path' lines to 'php_value include_path' (and hope Plesk doesn't revert them). I suppose I could modify my global include_path to contain the relevant directories, the only problem with that is that RoundCube needs to find it's version of PEAR first, so anything else on my server would need to then use RoundCube's PEAR, so that probably wouldn't work - I guess the other option is to modify every include() statement in RoundCube so they use absolute filenames :'(