Fatal error: Call to undefined function mb_de

Help
vabsnanoti
2012-01-13
2013-04-26
  • vabsnanoti
    vabsnanoti
    2012-01-13

    Hi all,

    I hv installed groogle-0.9.3-673 successfully.but when login to http://localhost/groogle
    I  am getting error on page : Fatal error: Call to undefined function mb_detect_order() in /var/www/groogle/htdocs/func_i18n.php on line 3
    my func_i18n.php line 3 has mb_detect_order($encoding_list);
    I am week in php so plz suggest for same.

     
  • Graham Pitt
    Graham Pitt
    2012-01-13

    Hello,

    mb_detect_order is provided by mbstring, which is typically built into your php binary either directly, or loaded as a module.

    Check your distribution repositories for something like php-mbstring.

    Which distribution are you using to install on?

    Thanks,

    Graham

     
  • vabsnanoti
    vabsnanoti
    2012-01-16

    Dear Graham,

    thanks for ur reply

    As per your one of the reply, I hv skip the step 15 and 16  (Generate the groogle daemon init.d script and enable it during system startup. ) and (Generate the groogle checkout daemon init.d script and enable it during system startup. )

    so is there any problem due to it? also  I am not getting clearing as u have replied So  kindly elaborate it.

    thanks
    vaibhav

     
  • Graham Pitt
    Graham Pitt
    2012-01-16

    What platform are you installing groogle on?

     
  • vabsnanoti
    vabsnanoti
    2012-01-17

    I HV installed it on cent OS 5.6 . also i hv installed php 5.3 from rimi. kindly find the bellow steps which i hv used for installation.

    1 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
    2 rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
    3 yum -enablerepo=remi install httpd php php-common
    4 yum -enablerepo=remi install httpd php mysql-server php-gd php-pdo php-pear
    php-pear-DB php-pear-Log php-pear-MDB2 php-mysql memcached mod_ssl php-xml
    php-bcmath
    5 service httpd start
    6 rpm -ivh /groogle-0.9.3-673.noarch.rpm
    7 yum install gcc
    8 yum install zlib-devel
    9 rpm -ivh /php-common-5.1.6-27.el5_5.3.i386.rpm
    10 yum -enablerepo=remi install php-devel
    11 pecl install memcache
    12 pear install Auth
    13 pear install Text_Diff
    14 pear install System_Daemon
    15 pear install System_Daemon-1.0.0RC1
    16 pear install HTTP

    Create the file /etc/php.d/memcache.ini
    17 vi /etc/php.d/memcache.ini
    ; Enable the memcache extension module
    extension=memcache.so

    18 :wq
    19 pear channel-discover pear.doctrine-project.org
    20 pear install pear.doctrine-project.org/Doctrine-1.2.2.tgz
    21 chkconfig memcached on
    22 service memcached start
    23 chkconfig mysqld on
    24 service mysqld start
    25 cd /var/www/groogle/db/
    26 ./patchdb.sh -u root
    27 mysql -u root
    mysql> use mysql
    mysql> delete from user where user='';
    mysql> flush privileges;
    mysql> exit

    Edit your /etc/php.ini
    28 vi /etc/php.ini
    max_execution_time = 300
    max_input_time = 300
    memory_limit = 128M

    29 cd
    30 service httpd restart
    31 cd /var/www/groogle/htdocs
    32 php groogle_daemon.php -write-initd
    33 chkconfig -add groogled
    34 chkconfig groogled on
    35 service groogled start
    396 cd
    37 yum install subversion-devel apr-devel neon-devel
    38 pecl install svn
    Enable the svn module by creating the file /etc/php.d/svn.ini and adding the
    following:
    39  vi /etc/php.d/svn.ini
    ; Enable the pecl svn extension module
    extension=svn.so
    40 service httpd restart
    41 pear install File_Archive
    42 service httpd restart
    43 history

     
  • vabsnanoti
    vabsnanoti
    2012-01-17

    Also on step 32 - 35 i am not getting file groogle_daemon.php so  groogled is not started.

     
  • Graham Pitt
    Graham Pitt
    2012-01-17

    Groogle daemon is only for upcoming version 1.0.0 so if you are using version 0.9.3 then you can ignore those parts of the installation instructions.

    It sounds like you are using a different version of php which hasn't been compiled with -with-mbstring.  In this case I recommend one of 2 steps:

    1) Downgrade to groogle 0.9.2.  This doesn't have internationisation support.
    2) Revert to the php libraries in the centos repositories.  This has mbstring compilation option enabled.

    If you choose option 1, be aware that groogle 1.0.0 will require mbstring so it will limit your upgrade options.  This is because this functionality is required for character encoding, particularly important for internationalization support.  Groogle 1.0.0 is much better than 0.9.3.  It has a lot of UI and performance improvements.  So I would recommend upgrading once it is released.

    Thanks,

    Graham

     
  • vabsnanoti
    vabsnanoti
    2012-01-17

    Dear Graham,

    Thanks for ur reply,

    But My problem is resolved just by changing as follows:
    1) i hv edit php.ini and done  short_open_tag = On
    2) i hv install php-mbstring and restart the httpd services.

    now everything is working fine and got login page.

    thanks
    vaibhav

     
  • vabsnanoti
    vabsnanoti
    2012-01-17

    Dear Graham,

    Can we use SVN hooks in groogle? if Yes, kindly explain , how ?

     
  • Graham Pitt
    Graham Pitt
    2012-01-17

    What do you want ot use the SVN hooks for?

     
  • vabsnanoti
    vabsnanoti
    2012-01-17

    its requirement ! actually we r using collabnet subversion to check in some java code , so we have to check out with groogle .
    so plz tell how ?

     
  • Graham Pitt
    Graham Pitt
    2012-01-17

    I'm not sure I understand what you are trying to achieve.

    Groogle doesn't require a subversion hook to checkout the content.  When the user raises a review Groogle will retrieve the repository information and data from the URL's provided as required.

    If you want Groogle to checkout a complete copy of the repository then version 1.0.0 will have that (for performance improvements), but it still relies on repository access for the relevant revision information.

     
  • vabsnanoti
    vabsnanoti
    2012-01-18

    Dear Graham,

    sorry for last question, my question is ….. if someone checkout any new file from SVN  the request goes to groogle for review and developer wait up to review done.

    also told me how to create Reviewer in groogle .

     
  • Graham Pitt
    Graham Pitt
    2012-01-18

    When the files are checked into subversion, Groogle will query the repository when you raise, submit or view a review and show the latest revision as an option for selection.

    The reviewers/participants list are derived in one the following ways:
    - The auth module is queried for a list of users.  If the module doesnt support this, then it will return no users.
    - The user list is specified in the auth.php configuration file.  This takes priority over the auth module list.

    Graham