SQL errors
-
Hello, after updating freepbx, observed the admin page is not showing any users!
as well, running the pl script is giving sql error:──────────────────────────────────────────────────┐
│ literal │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (143) “256, SQL Error: SELECT modulename FROM fop2.modules WHERE enabled=1
Table ‘fop2.modules’ doesn’t exist (/var/www/html/fop2/admin/dblib.php, 108”
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (145) “256, SQL Error: SELECT value FROM fop2.admin WHERE variable=‘version’
Table ‘fop2.admin’ doesn’t exist (/var/www/html/fop2/admin/dblib.php, 108”
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]
Updating buttons for context GENERAL┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (109) “256, SQL Error: DESC fop2.trunks
Table ‘fop2.trunks’ doesn’t exist (/var/www/html/fop2/admin/dblib.php, 108”
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (597) “256, SQL Error: SELECT t.variable, t.value, d.value state FROM globals t JOIN (SELECT x.variable, x.value FROM globals x WHERE x.variable LIKE ‘OUTDISABLE_%’) d ON substring(t.variable,5) = substring(d.variable,12) WHERE t.variable LIKE ‘OUT_%’ UNION ALL SELECT v.variable, v.value, concat(substring(v.value,1,0),‘off’) state FROM globals v WHERE v.variable LIKE ‘OUT_%’ AND concat(‘OUTDISABLE_’,substring(v.variable,5)) NOT IN ( SELECT variable from globals WHERE variable LIKE ‘OUTDISABLE_%’ ) ORDER BY variable
Table ‘fop2.globals’ doesn’t exist (/var/www/html/fop2/admin/dblib.php, 108”
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (109) “256, SQL Error: DESC fop2.trunks
Table ‘fop2.trunks’ doesn’t exist (/var/www/html/fop2/admin/dblib.php, 108”
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (597) “256, SQL Error: SELECT t.variable, t.value, d.value state FROM globals t JOIN (SELECT x.variable, x.value FROM globals x WHERE x.variable LIKE ‘OUTDISABLE_%’) d ON substring(t.variable,5) = substring(d.variable,12) WHERE t.variable LIKE ‘OUT_%’ UNION ALL SELECT v.variable, v.value, concat(substring(v.value,1,0),‘off’) state FROM globals v WHERE v.variable LIKE ‘OUT_%’ AND concat(‘OUTDISABLE_’,substring(v.variable,5)) NOT IN ( SELECT variable from globals WHERE variable LIKE ‘OUTDISABLE_%’ ) ORDER BY variable
Table ‘fop2.globals’ doesn’t exist (/var/www/html/fop2/admin/dblib.php, 108”
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]Finished!
-
Hi,
Please update FOP2 to the latest version (released two days ago), it should fix the issue.
If you want to do it manually, edit the file /var/www/html/fop2/admin/system.php and look for the string
"amportal.conf"
and replace it with
"xxxxamportal.conf"
That should fix the issue also (quick and dirty). It is best to update to latest with this command:
wget -O - http://download.fop2.com/upgrade_fop2.sh | bashBest regards,
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