Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Support
  3. Admin Panel / Credentials Issue

Admin Panel / Credentials Issue

Scheduled Pinned Locked Moved Support
2 Posts 2 Posters 685 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    A
    andrew
    wrote on last edited by
    #1

    http://forum.fop2.com/4398-manager-connection-problem/0
    We are encountering what is described in this thread. We have attempted the suggestions from there but without desired results.

    When we try and login to fop2 directly we get invalid credentials.
    We can login to freepbx then login to fop2 and it wall allow connection.
    Issue is admin panel has no data but operator users can still use and function with what was previously built.
    Our Call history is also missing like in previous case.
    We did verify that info in the manager_custom.conf matches what’s in the fop2.cfg file.

    FreePBX - Version 15.0.16
    FOP2 - Version 2.31.23
    FOP2 Manager - Version 1.2.2

    1 Reply Last reply
    0
    • J
      J
      jerryriggin
      wrote on last edited by
      #2

      Please see https://www.fop2.com/docs/installation.php#AccessingtheFOP2Manager -- if you can get to FOP2/admin when logged into FreePBX you have USE_BACKEND_AUTH = TRUE in /var/www/html/fop2/admin/config.php. You can also set admin UN/PW there.

      Also, Note that FreePBX 15 is still beta and there have been MANY changes, so FOP2 is not fully integrated. If you can't access the CDR from FOP2, try this:

      Problems is not credentials but that freepbx.conf file in /etc/ differs in format from the one in /etc/freepbx. You can do a quick fix by editing /var/www/html/fop2/config.php and replace (at the end of the file), the function parse_amportal_conf with this version:

      function parse_amportal_conf($filename) {

      $file = file($filename);
      if (is_array($file)) {
      foreach ($file as $line) {
      if (preg_match("/^\s*([^=])\s=\s*["']?([\w/:.,}{><()*?%!=+#@&\$-])["']?\s([;].*)?/",$line,$matches)) {
      if(preg_match('/$amp_conf/',$matches[1])) {
      $matches[1] = preg_replace('/$amp_conf['/','',$matches[1]);
      $matches[1] = trim($matches[1]);
      $matches[1] = substr($matches[1],0,-2);
      }
      $matches[1] = trim($matches[1]);
      $conf[ $matches[1] ] = trim($matches[2]);
      }
      }
      } else {
      die("<h1>".sprintf("Missing or unreadable config file (%s)...cannot continue", $filename)."</h1>");
      }
      return $conf;
      }
      Nicolás Gudiño Jul 31, 22:07

      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      Powered by NodeBB Contributors
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups