After Yum update - Broken PBX Tab and /admin/

Discussion in 'General' started by chrisisearth, Nov 13, 2008.

  1. chrisisearth

    Joined:
    Nov 13, 2008
    Messages:
    23
    Likes Received:
    0
    Hi Guys,

    This is my first post but Im a big fan of the Elastix Project,

    OK.... Here's my problem.....

    I ran yum update and installed all updates including ones from rpmforge.....

    After this the PBX tab on the WEB GUI and the /admin/ (to freepbx) display a white page......

    I've try the other fix as mentioned in a previous post about

    $GLOBALS['_guielement_tabindex'] = 1;
    $GLOBALS['_guielement_formfields'] = 0;

    But I think this is a seperate problem.....

    When I check the httpd logs.....


    [Thu Nov 13 14:39:58 2008] [error] [client 172.30.30.250] PHP Warning: require_once(DB.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /var/www/html/admin/common/db_connect.php on line 14
    [Thu Nov 13 14:39:58 2008] [error] [client 172.30.30.250] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'DB.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/admin/common/db_connect.php on line 14

    Does any one have a fix for this?

    Best Wishes

    Chris
     
  2. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
    It seems for some reason you don not have php-pear installed? try

    yum install php-pear
     
  3. chrisisearth

    Joined:
    Nov 13, 2008
    Messages:
    23
    Likes Received:
    0
    Thanks for your reply....

    I tryed this first but...

    Setting up Install Process
    Parsing package install arguments
    Package php-pear - 1:1.4.9-4.el5.1.noarch is already installed.


    it woudl appear its installed.....

    any other idea's?
     
  4. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
    Just an hypothesis: maybe rpmforge installed another version of php-pear that has the files on diferent paths. Try:

    rpm -ql php-pear

    I am posting my output:

    [root@uio ~]# rpm -ql php-pear
    /etc/pear.conf
    /etc/rpm/macros.pear
    /usr/bin/pear
    /usr/bin/peardev
    /usr/bin/pecl
    /usr/share/doc/php-pear-1.4.9
    /usr/share/doc/php-pear-1.4.9/LICENSE
    /usr/share/pear
    /usr/share/pear/.channels
    /usr/share/pear/.channels/.alias
    /usr/share/pear/.channels/.alias/pear.txt
    /usr/share/pear/.channels/.alias/pecl.txt
    /usr/share/pear/.channels/__uri.reg
    /usr/share/pear/.channels/pear.php.net.reg
    /usr/share/pear/.channels/pecl.php.net.reg
    /usr/share/pear/.depdb
    /usr/share/pear/.depdblock
    /usr/share/pear/.filemap
    /usr/share/pear/.lock
    /usr/share/pear/.pkgxml
    /usr/share/pear/.registry
    /usr/share/pear/.registry/.channel.__uri
    /usr/share/pear/.registry/.channel.pecl.php.net
    /usr/share/pear/.registry/archive_tar.reg
    /usr/share/pear/.registry/console_getopt.reg
    /usr/share/pear/.registry/pear.reg
    /usr/share/pear/.registry/xml_rpc.reg
    /usr/share/pear/Archive
    /usr/share/pear/Archive/Tar.php
    /usr/share/pear/Console
    /usr/share/pear/Console/Getopt.php
    /usr/share/pear/OS
    /usr/share/pear/OS/Guess.php
    /usr/share/pear/PEAR
    /usr/share/pear/PEAR.php
    /usr/share/pear/PEAR/Autoloader.php
    /usr/share/pear/PEAR/Builder.php
    /usr/share/pear/PEAR/ChannelFile
    /usr/share/pear/PEAR/ChannelFile.php
    /usr/share/pear/PEAR/ChannelFile/Parser.php
    /usr/share/pear/PEAR/Command
    /usr/share/pear/PEAR/Command.php
    /usr/share/pear/PEAR/Command/Auth.php
    /usr/share/pear/PEAR/Command/Auth.xml
    /usr/share/pear/PEAR/Command/Build.php
    /usr/share/pear/PEAR/Command/Build.xml
    /usr/share/pear/PEAR/Command/Channels.php
    /usr/share/pear/PEAR/Command/Channels.xml
    /usr/share/pear/PEAR/Command/Common.php
    /usr/share/pear/PEAR/Command/Config.php
    /usr/share/pear/PEAR/Command/Config.xml
    /usr/share/pear/PEAR/Command/Install.php
    /usr/share/pear/PEAR/Command/Install.xml
    /usr/share/pear/PEAR/Command/Mirror.php
    /usr/share/pear/PEAR/Command/Mirror.xml
    /usr/share/pear/PEAR/Command/Package.php
    /usr/share/pear/PEAR/Command/Package.xml
    /usr/share/pear/PEAR/Command/Pickle.php
    /usr/share/pear/PEAR/Command/Pickle.xml
    /usr/share/pear/PEAR/Command/Registry.php
    /usr/share/pear/PEAR/Command/Registry.xml
    /usr/share/pear/PEAR/Command/Remote.php
    /usr/share/pear/PEAR/Command/Remote.xml
    /usr/share/pear/PEAR/Command/Test.php
    /usr/share/pear/PEAR/Command/Test.xml
    /usr/share/pear/PEAR/Common.php
    /usr/share/pear/PEAR/Config.php
    /usr/share/pear/PEAR/Dependency.php
    /usr/share/pear/PEAR/Dependency2.php
    /usr/share/pear/PEAR/DependencyDB.php
    /usr/share/pear/PEAR/Downloader
    /usr/share/pear/PEAR/Downloader.php
    /usr/share/pear/PEAR/Downloader/Package.php
    /usr/share/pear/PEAR/ErrorStack.php
    /usr/share/pear/PEAR/Exception.php
    /usr/share/pear/PEAR/Frontend
    /usr/share/pear/PEAR/Frontend.php
    /usr/share/pear/PEAR/Frontend/CLI.php
    /usr/share/pear/PEAR/Installer
    /usr/share/pear/PEAR/Installer.php
    /usr/share/pear/PEAR/Installer/Role
    /usr/share/pear/PEAR/Installer/Role.php
    /usr/share/pear/PEAR/Installer/Role/Common.php
    /usr/share/pear/PEAR/Installer/Role/Data.php
    /usr/share/pear/PEAR/Installer/Role/Data.xml
    /usr/share/pear/PEAR/Installer/Role/Doc.php
    /usr/share/pear/PEAR/Installer/Role/Doc.xml
    /usr/share/pear/PEAR/Installer/Role/Ext.php
    /usr/share/pear/PEAR/Installer/Role/Ext.xml
    /usr/share/pear/PEAR/Installer/Role/Php.php
    /usr/share/pear/PEAR/Installer/Role/Php.xml
    /usr/share/pear/PEAR/Installer/Role/Script.php
    /usr/share/pear/PEAR/Installer/Role/Script.xml
    /usr/share/pear/PEAR/Installer/Role/Src.php
    /usr/share/pear/PEAR/Installer/Role/Src.xml
    /usr/share/pear/PEAR/Installer/Role/Test.php
    /usr/share/pear/PEAR/Installer/Role/Test.xml
    /usr/share/pear/PEAR/PackageFile
    /usr/share/pear/PEAR/PackageFile.php
    /usr/share/pear/PEAR/PackageFile/Generator
    /usr/share/pear/PEAR/PackageFile/Generator/v1.php
    /usr/share/pear/PEAR/PackageFile/Generator/v2.php
    /usr/share/pear/PEAR/PackageFile/Parser
    /usr/share/pear/PEAR/PackageFile/Parser/v1.php
    /usr/share/pear/PEAR/PackageFile/Parser/v2.php
    /usr/share/pear/PEAR/PackageFile/v1.php
    /usr/share/pear/PEAR/PackageFile/v2
    /usr/share/pear/PEAR/PackageFile/v2.php
    /usr/share/pear/PEAR/PackageFile/v2/Validator.php
    /usr/share/pear/PEAR/PackageFile/v2/rw.php
    /usr/share/pear/PEAR/Packager.php
    /usr/share/pear/PEAR/REST
    /usr/share/pear/PEAR/REST.php
    /usr/share/pear/PEAR/REST/10.php
    /usr/share/pear/PEAR/REST/11.php
    /usr/share/pear/PEAR/Registry.php
    /usr/share/pear/PEAR/Remote.php
    /usr/share/pear/PEAR/RunTest.php
    /usr/share/pear/PEAR/Task
    /usr/share/pear/PEAR/Task/Common.php
    /usr/share/pear/PEAR/Task/Postinstallscript
    /usr/share/pear/PEAR/Task/Postinstallscript.php
    /usr/share/pear/PEAR/Task/Postinstallscript/rw.php
    /usr/share/pear/PEAR/Task/Replace
    /usr/share/pear/PEAR/Task/Replace.php
    /usr/share/pear/PEAR/Task/Replace/rw.php
    /usr/share/pear/PEAR/Task/Unixeol
    /usr/share/pear/PEAR/Task/Unixeol.php
    /usr/share/pear/PEAR/Task/Unixeol/rw.php
    /usr/share/pear/PEAR/Task/Windowseol
    /usr/share/pear/PEAR/Task/Windowseol.php
    /usr/share/pear/PEAR/Task/Windowseol/rw.php
    /usr/share/pear/PEAR/Validate.php
    /usr/share/pear/PEAR/Validator
    /usr/share/pear/PEAR/Validator/PECL.php
    /usr/share/pear/PEAR/XMLParser.php
    /usr/share/pear/System.php
    /usr/share/pear/XML
    /usr/share/pear/XML/RPC
    /usr/share/pear/XML/RPC.php
    /usr/share/pear/XML/RPC/Dump.php
    /usr/share/pear/XML/RPC/Server.php
    /usr/share/pear/data
    /usr/share/pear/data/PEAR
    /usr/share/pear/data/PEAR/package.dtd
    /usr/share/pear/data/PEAR/template.spec
    /usr/share/pear/doc
    /usr/share/pear/doc/Archive_Tar
    /usr/share/pear/doc/Archive_Tar/docs
    /usr/share/pear/doc/Archive_Tar/docs/Archive_Tar.txt
    /usr/share/pear/pearcmd.php
    /usr/share/pear/peclcmd.php
    /usr/share/pear/test
    /usr/share/pear/test/XML_RPC
    /usr/share/pear/test/XML_RPC/tests
    /usr/share/pear/test/XML_RPC/tests/allgot.inc
    /usr/share/pear/test/XML_RPC/tests/empty-value-struct.php
    /usr/share/pear/test/XML_RPC/tests/empty-value.php
    /usr/share/pear/test/XML_RPC/tests/extra-lines.php
    /usr/share/pear/test/XML_RPC/tests/protoport.php
    /usr/share/pear/test/XML_RPC/tests/test_Dump.php
    /usr/share/pear/test/XML_RPC/tests/types.php
    /var/cache/php-pear
    [root@uio ~]#
    [root@uio ~]# rpm -ql php-pear | grep DB
    /usr/share/pear/PEAR/DependencyDB.php
    [root@uio ~]# cd /tmp
    [root@uio tmp]# rpm -ql php-pear
    /etc/pear.conf
    /etc/rpm/macros.pear
    /usr/bin/pear
    /usr/bin/peardev
    /usr/bin/pecl
    /usr/share/doc/php-pear-1.4.9
    /usr/share/doc/php-pear-1.4.9/LICENSE
    /usr/share/pear
    /usr/share/pear/.channels
    /usr/share/pear/.channels/.alias
    /usr/share/pear/.channels/.alias/pear.txt
    /usr/share/pear/.channels/.alias/pecl.txt
    /usr/share/pear/.channels/__uri.reg
    /usr/share/pear/.channels/pear.php.net.reg
    /usr/share/pear/.channels/pecl.php.net.reg
    /usr/share/pear/.depdb
    /usr/share/pear/.depdblock
    /usr/share/pear/.filemap
    /usr/share/pear/.lock
    /usr/share/pear/.pkgxml
    /usr/share/pear/.registry
    /usr/share/pear/.registry/.channel.__uri
    /usr/share/pear/.registry/.channel.pecl.php.net
    /usr/share/pear/.registry/archive_tar.reg
    /usr/share/pear/.registry/console_getopt.reg
    /usr/share/pear/.registry/pear.reg
    /usr/share/pear/.registry/xml_rpc.reg
    /usr/share/pear/Archive
    /usr/share/pear/Archive/Tar.php
    /usr/share/pear/Console
    /usr/share/pear/Console/Getopt.php
    /usr/share/pear/OS
    /usr/share/pear/OS/Guess.php
    /usr/share/pear/PEAR
    /usr/share/pear/PEAR.php
    /usr/share/pear/PEAR/Autoloader.php
    /usr/share/pear/PEAR/Builder.php
    /usr/share/pear/PEAR/ChannelFile
    /usr/share/pear/PEAR/ChannelFile.php
    /usr/share/pear/PEAR/ChannelFile/Parser.php
    /usr/share/pear/PEAR/Command
    /usr/share/pear/PEAR/Command.php
    /usr/share/pear/PEAR/Command/Auth.php
    /usr/share/pear/PEAR/Command/Auth.xml
    /usr/share/pear/PEAR/Command/Build.php
    /usr/share/pear/PEAR/Command/Build.xml
    /usr/share/pear/PEAR/Command/Channels.php
    /usr/share/pear/PEAR/Command/Channels.xml
    /usr/share/pear/PEAR/Command/Common.php
    /usr/share/pear/PEAR/Command/Config.php
    /usr/share/pear/PEAR/Command/Config.xml
    /usr/share/pear/PEAR/Command/Install.php
    /usr/share/pear/PEAR/Command/Install.xml
    /usr/share/pear/PEAR/Command/Mirror.php
    /usr/share/pear/PEAR/Command/Mirror.xml
    /usr/share/pear/PEAR/Command/Package.php
    /usr/share/pear/PEAR/Command/Package.xml
    /usr/share/pear/PEAR/Command/Pickle.php
    /usr/share/pear/PEAR/Command/Pickle.xml
    /usr/share/pear/PEAR/Command/Registry.php
    /usr/share/pear/PEAR/Command/Registry.xml
    /usr/share/pear/PEAR/Command/Remote.php
    /usr/share/pear/PEAR/Command/Remote.xml
    /usr/share/pear/PEAR/Command/Test.php
    /usr/share/pear/PEAR/Command/Test.xml
    /usr/share/pear/PEAR/Common.php
    /usr/share/pear/PEAR/Config.php
    /usr/share/pear/PEAR/Dependency.php
    /usr/share/pear/PEAR/Dependency2.php
    /usr/share/pear/PEAR/DependencyDB.php
    /usr/share/pear/PEAR/Downloader
    /usr/share/pear/PEAR/Downloader.php
    /usr/share/pear/PEAR/Downloader/Package.php
    /usr/share/pear/PEAR/ErrorStack.php
    /usr/share/pear/PEAR/Exception.php
    /usr/share/pear/PEAR/Frontend
    /usr/share/pear/PEAR/Frontend.php
    /usr/share/pear/PEAR/Frontend/CLI.php
    /usr/share/pear/PEAR/Installer
    /usr/share/pear/PEAR/Installer.php
    /usr/share/pear/PEAR/Installer/Role
    /usr/share/pear/PEAR/Installer/Role.php
    /usr/share/pear/PEAR/Installer/Role/Common.php
    /usr/share/pear/PEAR/Installer/Role/Data.php
    /usr/share/pear/PEAR/Installer/Role/Data.xml
    /usr/share/pear/PEAR/Installer/Role/Doc.php
    /usr/share/pear/PEAR/Installer/Role/Doc.xml
    /usr/share/pear/PEAR/Installer/Role/Ext.php
    /usr/share/pear/PEAR/Installer/Role/Ext.xml
    /usr/share/pear/PEAR/Installer/Role/Php.php
    /usr/share/pear/PEAR/Installer/Role/Php.xml
    /usr/share/pear/PEAR/Installer/Role/Script.php
    /usr/share/pear/PEAR/Installer/Role/Script.xml
    /usr/share/pear/PEAR/Installer/Role/Src.php
    /usr/share/pear/PEAR/Installer/Role/Src.xml
    /usr/share/pear/PEAR/Installer/Role/Test.php
    /usr/share/pear/PEAR/Installer/Role/Test.xml
    /usr/share/pear/PEAR/PackageFile
    /usr/share/pear/PEAR/PackageFile.php
    /usr/share/pear/PEAR/PackageFile/Generator
    /usr/share/pear/PEAR/PackageFile/Generator/v1.php
    /usr/share/pear/PEAR/PackageFile/Generator/v2.php
    /usr/share/pear/PEAR/PackageFile/Parser
    /usr/share/pear/PEAR/PackageFile/Parser/v1.php
    /usr/share/pear/PEAR/PackageFile/Parser/v2.php
    /usr/share/pear/PEAR/PackageFile/v1.php
    /usr/share/pear/PEAR/PackageFile/v2
    /usr/share/pear/PEAR/PackageFile/v2.php
    /usr/share/pear/PEAR/PackageFile/v2/Validator.php
    /usr/share/pear/PEAR/PackageFile/v2/rw.php
    /usr/share/pear/PEAR/Packager.php
    /usr/share/pear/PEAR/REST
    /usr/share/pear/PEAR/REST.php
    /usr/share/pear/PEAR/REST/10.php
    /usr/share/pear/PEAR/REST/11.php
    /usr/share/pear/PEAR/Registry.php
    /usr/share/pear/PEAR/Remote.php
    /usr/share/pear/PEAR/RunTest.php
    /usr/share/pear/PEAR/Task
    /usr/share/pear/PEAR/Task/Common.php
    /usr/share/pear/PEAR/Task/Postinstallscript
    /usr/share/pear/PEAR/Task/Postinstallscript.php
    /usr/share/pear/PEAR/Task/Postinstallscript/rw.php
    /usr/share/pear/PEAR/Task/Replace
    /usr/share/pear/PEAR/Task/Replace.php
    /usr/share/pear/PEAR/Task/Replace/rw.php
    /usr/share/pear/PEAR/Task/Unixeol
    /usr/share/pear/PEAR/Task/Unixeol.php
    /usr/share/pear/PEAR/Task/Unixeol/rw.php
    /usr/share/pear/PEAR/Task/Windowseol
    /usr/share/pear/PEAR/Task/Windowseol.php
    /usr/share/pear/PEAR/Task/Windowseol/rw.php
    /usr/share/pear/PEAR/Validate.php
    /usr/share/pear/PEAR/Validator
    /usr/share/pear/PEAR/Validator/PECL.php
    /usr/share/pear/PEAR/XMLParser.php
    /usr/share/pear/System.php
    /usr/share/pear/XML
    /usr/share/pear/XML/RPC
    /usr/share/pear/XML/RPC.php
    /usr/share/pear/XML/RPC/Dump.php
    /usr/share/pear/XML/RPC/Server.php
    /usr/share/pear/data
    /usr/share/pear/data/PEAR
    /usr/share/pear/data/PEAR/package.dtd
    /usr/share/pear/data/PEAR/template.spec
    /usr/share/pear/doc
    /usr/share/pear/doc/Archive_Tar
    /usr/share/pear/doc/Archive_Tar/docs
    /usr/share/pear/doc/Archive_Tar/docs/Archive_Tar.txt
    /usr/share/pear/pearcmd.php
    /usr/share/pear/peclcmd.php
    /usr/share/pear/test
    /usr/share/pear/test/XML_RPC
    /usr/share/pear/test/XML_RPC/tests
    /usr/share/pear/test/XML_RPC/tests/allgot.inc
    /usr/share/pear/test/XML_RPC/tests/empty-value-struct.php
    /usr/share/pear/test/XML_RPC/tests/empty-value.php
    /usr/share/pear/test/XML_RPC/tests/extra-lines.php
    /usr/share/pear/test/XML_RPC/tests/protoport.php
    /usr/share/pear/test/XML_RPC/tests/test_Dump.php
    /usr/share/pear/test/XML_RPC/tests/types.php
    /var/cache/php-pear
     
  5. chrisisearth

    Joined:
    Nov 13, 2008
    Messages:
    23
    Likes Received:
    0
    Hi,

    Thanks for your reply.... No there all in the correct path I just checked....

    Worth a try tho!

    I've tryed the same thing with another installation and same thing!!!!

    Chris
     
  6. binfuser

    Joined:
    Dec 1, 2008
    Messages:
    1
    Likes Received:
    0
    Hey I was running into the same issue on CentOS 5.2 (Final)

    Quick check of the rpm packages and php-pear-db should contain the DB.php but for some reason it was deleted.


    Quickfix:

    (as root via sudo etc)
    rpm -e --nodeps php-pear-DB
    yum -y install php-pear-DB
     
  7. voopy

    Joined:
    Jan 16, 2010
    Messages:
    78
    Likes Received:
    0
    Is there another thread on this perhaps? Same thing with me. The thread ends with a suggestion which doesn't fix the problem.

    # rpm -q php-pear
    php-pear-1.4.9-6.el5
    [root@fax httpd]# rpm -e --nodeps php-pear-DB
    error: package php-pear-DB is not installed
    [root@fax httpd]# yum -y install php-pear-DB
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * addons: centos.corenetworks.net
    * base: mirrors.liquidweb.com
    * epel: mirror.steadfast.net
    * extras: mirror.atlanticmetro.net
    * updates: styx.biochem.wfubmc.edu
    Excluding Packages from CentOS-5 - Addons
    Finished
    Excluding Packages from CentOS-5 - Base
    Finished
    Excluding Packages from Base RPM Repository for Elastix
    Finished
    Excluding Packages from Updates RPM Repository for Elastix
    Finished
    Excluding Packages from CentOS-5 - Extras
    Finished
    Excluding Packages from CentOS-5 - Updates
    Finished
    Setting up Install Process
    Package php-pear-DB is obsoleted by php-pear-db, trying to install php-pear-db-1.7.13-2.el5.rf.noarch instead
    Package php-pear-db-1.7.13-2.el5.rf.noarch already installed and latest version
    Nothing to do
     
  8. voopy

    Joined:
    Jan 16, 2010
    Messages:
    78
    Likes Received:
    0
    I've been searching for days on how to get the pbx screen back up and cannot find anything. Lots of dead and old questions but nothing to solve what ever caused it on the most recent update I did about 3 days ago now.

    Does anyone have any input on this, it would be very appreciated of course.
     
  9. prestontmitch

    Joined:
    Oct 23, 2010
    Messages:
    1
    Likes Received:
    0
    This is easy to fix (I did the same thing lol) Just remove all rpmforge references in your yum repositories folder /etc/yum.repos/

    and then run:
    yum install php-pear-DB

    The newer version in rpmforge is php-pear-db (Note the lower case)
    Someone who understands linux better than I do might know how to symlink or fix the case issue.

    Cheers!
    Preston
     

Share This Page