Ad Widget

Collapse

svn revision 5374: failed to open /usr/local/share/pear ???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kees Jan Koster
    Member
    • Oct 2007
    • 83

    #1

    svn revision 5374: failed to open /usr/local/share/pear ???

    Pages occasionally fail with blank output. The errors below show up in the http-errors.log.

    [Wed Feb 20 07:34:35 2008] [error] PHP Warning: Unknown(usr/home/kjkoster/zabbix/frontends/php/setup.php): failed to open stream: No such file or directory in Unknown on line 0
    [Wed Feb 20 07:34:35 2008] [error] PHP Warning: (null)() [<a href='function.include'>function.include</a>]: Failed opening 'usr/home/kjkoster/zabbix/frontends/php/setup.php' for inclusion (include_path='.:/usr/local/share/pear') in Unknown on line 0
    [Wed Feb 20 07:37:18 2008] [error] PHP Warning: Unknown(usr/home/kjkoster/zabbix/frontends/php/profile.php): failed to open stream: No such file or directory in Unknown on line 0
    [Wed Feb 20 07:37:18 2008] [error] PHP Warning: (null)() [<a href='function.include'>function.include</a>]: Failed opening 'usr/home/kjkoster/zabbix/frontends/php/profile.php' for inclusion (include_path='.:/usr/local/share/pear') in Unknown on line 0
    [Wed Feb 20 07:37:23 2008] [error] PHP Warning: Unknown(usr/home/kjkoster/zabbix/frontends/php/profile.php): failed to open stream: No such file or directory in Unknown on line 0
    [Wed Feb 20 07:37:23 2008] [error] PHP Warning: (null)() [<a href='function.include'>function.include</a>]: Failed opening 'usr/home/kjkoster/zabbix/frontends/php/profile.php' for inclusion (include_path='.:/usr/local/share/pear') in Unknown on line 0

    Just going to the front page and trying again fixes that and I can use the interface. What can I do to fix this?
  • Kees Jan Koster
    Member
    • Oct 2007
    • 83

    #2
    More details about my config:

    [kjkoster@freebsd7-vm ~/zabbix]$ php -version; uname -a
    PHP 4.4.8 with Suhosin-Patch 0.9.6 (cli) (built: Feb 19 2008 21:50:50)
    Copyright (c) 1997-2008 The PHP Group
    Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
    FreeBSD freebsd7-vm 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #1: Tue Feb 19 22:57:03 CET 2008 kjkoster@freebsd7-vm:/usr/obj/usr/src/sys/GENERIC i386
    [kjkoster@freebsd7-vm ~/zabbix]$

    Comment

    • Aly
      ZABBIX developer
      • May 2007
      • 1126

      #3
      Looks like PHP doesn't like how included script files are started (possible some symbols before open tag). I've seen error like that when tried to save scripts with included unicode signature(BOM). It add's some special symbols to the start of script.

      Try to change encoding type of scripts...

      P.S. pre code isn't tested on PHP4, for now.
      Zabbix | ex GUI developer

      Comment

      Working...