error when install 0.9 version Memcached_DataObject.php on line 508

hi, I try to install but get this error:


Install StatusNet

Page notice

* Starting installation...
* Checking database...
* Changing to database...
* Running database script...
* Adding SMS carrier data to database...
* Adding notice source data to database...
* Adding foreign service data to database...
* Writing config file...

Fatal error: Uncaught ServerException: [400]: [Config] DB_DataObject error [-25]: Connect failed, turn on debugging to 5 see why thrown in /home/hkoswret/public_html/classes/Memcached_DataObject.php on line 508


please help!!!!! thanks

Comments

  • I am also getting the exact same error. I have memcache disabled. Please help!
  • please help !!
  • so neither of you have addplugin(memcached)? but its trying to enable it ...thats bizarre, which 0.9 version is this that you are trying to install?
  • Is a simple install, I install some months ago perfect on my server, now on this new version statusnet-0.9.0.tar.gz the most recent stable version!!
    I get that error, I dont know how is memcached or if I need enable or not or how enabled...

    please help at this point I dont cant run status.net on my server.

  • Memcached_DataObject is a base class that is used regardless of whether you're using Memcached, another caching plugin, or no caching plugin.

    'Connect failed' is a bit suspicious... Looking in extlib/DB.php I see that error -25 is:

    define('DB_ERROR_EXTENSION_NOT_FOUND',-25);

    Some of the installer code is still using the older 'mysql' extension manually, while we set up the connection to actually use the 'mysqli' extension. Make sure that this is present in the PHP configuration.
  • That did it. Thanks!
  • you resolve vssaokar????? so I need change 'mysql' for 'mysqli' on which file ??? or ???
  • just compile your local php with the additional --with-mysqli option.
    I ran into the same probs and resolved like described above.
  • mmm I need active the mysqli on server? that is? sorry Iam confused!
  • how compile my local php with mysqli option ?????? help please!
  • @stevelay what os and distro are you using? yes your php needs mysqli support. it should be included in your distribution.
  • thanks aric, so I need make this on my server http://cr.php.net/manual/en/mysqli.installation.php

    ??????
  • yes you need mysqli support, let me know how it goes.
  • I'm on Dreamhost, this isn't working for me ...
  • @kmf dream host is not working? they are actively fixing their implementation, is this shared or dedicated. you bes t route may be backing up your db and uninstalling/reinstalling with dreamhost.
  • @aric I migrated to DreamHost (Shared) from a VPS, I followed the instructions doing a one click install with a existing database
  • @aric solved ... did 08to09.sql ... and it worked
  • @kmf sweet, could you paste your /statusnet/.htaccess file here, im curious to know what they are doing for cgi mode right now.
  • I still cant install status.net is possible install without mysqli ???? just with mysql
    I cant install mysqli on my server, I run all my apps with mysql, why status.net dont works?
  • @stevelay you need mysqli for 0.9x
  • if I can install mysqli on my server, that can affect mysql ??? or mysqli and mysql can live together?
  • mysqli is a protocol. a way for php to talk to mysql, its not a server. you need to change your connection string in config.php

    $config['db']['database'] = 'mysqli://user:psw@localhost/dbname';
  • thanks aric, see I run again and the problem appear:

    Fatal error: Uncaught ServerException: [400]: [Config] DB_DataObject error [-25]: Connect failed, turn on debugging to 5 see why thrown in /home/hkoswret/public_html/classes/Memcached_DataObject.php on line 508

    BUT! I change this:
    $config['db']['database'] = 'mysqli://user:psw@localhost/dbname';

    for this:
    $config['db']['database'] = 'mysql://user:psw@localhost/dbname';

    and now RUN! but! the problem is that dont create the admin account! this step:
    An initial user with the administrator role has been created.

    is obvious beacuse the fatal error when create the config.php is before that the initial user admin role.

    any way to install this without the /install.php? I mean install without wizard?
  • @stevelay it sounds like you do not have mysqli support. it is required.
    mysqli stands for mysql improved

    what version of php are you running (php -v will show you this)

    In debian/ubuntu you would install mysql and mysqli support like this

    sudo apt-get install php5-mysql

    to see if you have this module

    php -m | grep mysql

    http://php.net/manual/en/book.mysqli.php

  • it looks like there is already a check, in the installer (install.php)

    'check_module' => 'mysql', // mysqli?

    but its checking for the wrong thing, odd that the comment for the correct module.

    Ill make sure this gets fixed.

  • There are known issues with use of the 'mysql' module with StatusNet, such as complete breakage with background daemons, which is part of why we use the current modern 'mysqli' module.

    The installer checks for the 'mysql' module because the old installer code used the 'mysql' module functions to set things up at install time. Everything *after* that uses the 'mysqli' module.

    For 0.9.2 I've fixed the installer to be consistent, so it'll check for and use the 'mysqli' module.
  • I have the same problem, and I can not fix it now
  • @andyng please provide more information.
  • I was helping someone who was having the same problem and getting the Memcached_DataObject.php error in the PHP logs. MySQLi was enabled on the server. The person was upgrading from version 0.8.3 to 0.9.1. The issue ended up being caused by the person copying over their old config.php file to the new install. When they instead used the sample config.php file included with the 0.9.1 files and manually copied over their settings from the 0.8.3 config file the problem went away. I guess the person didn't have something in the config.php file that the new version required.
  • aric, this is my scenario:

    1. if I running local on MAMP, everything is ok, so go to upload the local on my server... so I export and import the database, upload the files and just change this files:

    I change this:
    $config['db']['database'] = 'mysqli://user:psw@localhost/dbname';

    for this:
    $config['db']['database'] = 'mysql://user:psw@localhost/dbname';

    ok now running, any problem to run of this way? I dont like it but works.

    2. for me dont works on a server install... why? maybe yes I dont have mysqli module install, I ask to tech guys of the server and he say "Im not sure if I install mysqli can affect the others mysql dabatases on server and if can destroy the other sites that running with mysql"

    is stupid? install mysqli cant!! affect the other mysql database... wordpress, expression engine etc... databases????

  • @stevelay mysqli will not break other mysql databases, and mysqli is needed in statusnet 0.9x and higher.
  • thanks aric and well Im gone... I need mysqli, so any step by step tutorial or how install? Im a beginner and I really dont undestand with php.net page... exist any step by step for fools tutorial? thanks!
  • @stevelay mysqli is installed with all moder versions of php, ask your hosting provider why you do not have it.

    "Im not sure if I install mysqli can affect the others mysql dabatases on server and if can destroy the other sites that running with mysql" --do not run you outher sites with a mysqli connection string, but you need it for statusnet. I dont think you should bother with compiling your own php, ask them to upgrade.
  • aric, my server have:

    Apache version 2.2.14
    MySQL version 5.0.90-community
    PHP version 5.2.11

    If I upgrate php to the last bulit: PHP 5.3.2, maybe mysqli are enable?
  • @stevelay that sounds good, what modules you you have installed? php -m
  • @stevelay looks like you need the mysqli module, inorder to run statusnet > 0.9, it is a requirement.
  • yes so I dont know how install mysqli on my server, so Aric how much $ for install it on my server ? let me know please
  • @stevelay I dont know ask your server administrators, it should be free.
  • Cannot find a database extension. You need at least one of mysqli, pgsql
  • Hi,
    i have the same problem, but mysqli is installed: http://micro.geislingen.org/info.php
    But i tried the install on a managed server after this solution: http://status.net/open-source/issues/1897
    Maybe the problem is the socket ?
  • @hollosch That error ": Uncaught ServerException: [400]: [Config] DB_DataObject error [-24]: Connect failed," looks to me as if something is wrong with your db connect string. Could it be possible that your server changed something if it was working before and just stopped working?
  • @joranc Nothing changed at the server...
  • Nobody ideas ?
  • @hollosch Can do you have command line access to your server?
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID