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. SQL Error during installation

SQL Error during installation

Scheduled Pinned Locked Moved Support
5 Posts 2 Posters 382 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.
  • T
    T
    tbagalini
    wrote on last edited by
    #1

    Hello!
    On a fresh install on Freepbx Distro using the single install script I get many errors.
    ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
    │ literal │
    └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
    string (102) "256, SQL Error: SELECT * FROM fop2buttons ORDER BY sortorder
    (/var/www/html/fop2/admin/dblib.php, 108"
    ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
    Called from .../functions.php:2592 [fop2manager_error()]

    ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
    │ literal │
    └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
    string (102) "256, SQL Error: SELECT * FROM fop2buttons ORDER BY sortorder
    (/var/www/html/fop2/admin/dblib.php, 108"
    ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
    Called from .../functions.php:2592 [fop2manager_error()]

    ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
    │ literal │
    └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
    string (103) "256, SQL Error: DELETE FROM fop2setup WHERE keyword='dbready'
    (/var/www/html/fop2/admin/dblib.php, 108"
    ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
    Called from .../functions.php:2592 [fop2manager_error()]

    ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
    │ literal │
    └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
    string (148) "256, SQL Error: INSERT INTO fop2setup (keyword,parameter,value) VALUES ('dbready',UNIX_TIMESTAMP(now()),0)
    (/var/www/html/fop2/admin/dblib.php, 108"
    ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
    Called from .../functions.php:2592 [fop2manager_error()]

    many more like this......

    1 Reply Last reply
    0
    • T
      T
      tbagalini
      wrote on last edited by
      #2

      also,. this.... might be a clue
      [root@siphq fop2]# ./autoconfig-buttons.sh
      ! Cannot connect to FOP2 Manager database

      1 Reply Last reply
      0
      • T
        T
        tbagalini
        wrote on last edited by
        #3

        but this also works,..

        [root@siphq fop2]# /usr/local/fop2/fop2_server --test
        Flash Operator Panel 2 - License file /usr/local/fop2/fop2.lic not found.
        Running in Demo Mode
        Connection to manager OK (021005)!

        1 Reply Last reply
        0
        • T
          T
          tbagalini
          wrote on last edited by
          #4

          ** SOLVED **
          I had the mysql credentials were not correct. I had to manually set this up for some reason.
          edit /var/www/html/fop2/admin/config.php and add the credentials from /etc/freepbx.conf

          1 Reply Last reply
          0
          • N
            N
            nicolas
            wrote on last edited by
            #5

            Hi,
            I think I know what the issue was (could not get correct mysql credentials from freepbx config on newer freepbx distro) and fixed it for the next release (2.31.27).

            Best regards,

            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