Installation error

Issue #299 resolved
Former user created an issue

Hi. Im trying to register on a newly installed tripwire. nothing happens when i add my username and api etc. however looking at the logs i get. dunno where im going wrong

PHP Fatal error:  Uncaught Error: Call to a member function prepare() on null in /var/www/tripwire/login.php:61\nStack trace:\n#0 {main}\n  thrown in /var/www/tripwire/login.php on line 61,

Comments (10)

  1. Josh Glassmaker repo owner

    Sounds like you don't have a successful DB connection - make sure db.inc.php exists and is connecting to your DB correctly.

  2. Tenaya Masai

    HI @daimian

    thanks for the reply

    okay that seems to work fine. however now i get

    PHP Fatal error:  Uncaught Error: Call to undefined function simplexml_load_string() in /var/www/tripwire/api.class.php:155\nStack trace:\n#0 /var/www/tripwire/register.php(73): API->checkAccount('6497928', 'qxX8yl5Ez5wuz0H...')\n#1 {main}\n  thrown in /var/www/tripwire/api.class.php on line 155,
    
  3. Josh Glassmaker repo owner

    You probably need to enable or install the xmllib library - this will be different depending on OS & PHP version.

  4. Tenaya Masai

    okay perfect. then i just needed to install sudo apt-get install php7.0-xml and restart apache for it to work.

    Thank you

  5. Ashy
    • changed status to open

    Opening in case Daim wants to mention anything else. I can't say for certain myself on your query though, sorry.

  6. Tenaya Masai

    anyone know where i should look regarding the tracking and system graph not working. my logs are empty so out of ideas

  7. Tenaya Masai

    the only thing i could find is PHP Notice: Trying to get property of non-object in /var/www/tripwire/refresh.php on line 424

    anyone?

  8. Log in to comment