Fail to update Followme module (updated, now Queues fail)

When in module admin (freepbx 2.3beta1 Core 1.2, framework 2.3beta1.5) i get:

Follow Me setup 2.4.12.2 Disabled; Pending upgrade to 2.4.12.3

if i try to update and enable i get :

Fatal error: Call to undefined function: merge_ext_followme() in /var/www/html/admin/modules/findmefollow/install.php on line 51

Btw. LOVE the day/night module :slight_smile: now i have to find a way to show the status of day/night on my snom360 phones.

/Thomas Petersen

Hey Thomas…

Would you share with us ur methodology for showing the day/night status on your snom phones?

Bill

i just have to figure it out first :slight_smile:
now i have updatede the core to 2.3beta 1.9 and now my queues are gone and i cant install the updated module…
thats odd. Error is in merge_ext_followme() ???

Module Administration
Please wait while module actions are performed

Fatal error: Call to undefined function: merge_ext_followme() in /var/www/html/admin/modules/queues/install.php on line 16

help… my queues are gone to bitheaven :frowning:

sounds like you need to try reinstalling from the beta tarball, with a --force-version 2.2.2 and then go to module admin and bring everything back up-to date and your problems should go away.

Thanks, i now have my queues back :slight_smile:

if i want to add a queue i get:

DB Error: no such table
error adding to queues table

if i want to edit an exisisting queue i get :

[i]Warning: Cannot use a scalar value as an array in /var/www/html/admin/modules/queues/functions.inc.php on line 269

Warning: Cannot use a scalar value as an array in /var/www/html/admin/modules/queues/functions.inc.php on line 272

Warning: Cannot use a scalar value as an array in /var/www/html/admin/modules/queues/functions.inc.php on line 278

Warning: Cannot use a scalar value as an array in /var/www/html/admin/modules/queues/functions.inc.php on line 288

Warning: Cannot use a scalar value as an array in /var/www/html/admin/modules/queues/functions.inc.php on line 295

Warning: Cannot use a scalar value as an array in /var/www/html/admin/modules/queues/functions.inc.php on line 301

Warning: Cannot use a scalar value as an array in /var/www/html/admin/modules/queues/functions.inc.php on line 302

Warning: Cannot use a scalar value as an array in /var/www/html/admin/modules/queues/functions.inc.php on line 303

Warning: Cannot use a scalar value as an array in /var/www/html/admin/modules/queues/functions.inc.php on line 307

Warning: Cannot use a scalar value as an array in /var/www/html/admin/modules/queues/functions.inc.php on line 313

Warning: Cannot use a scalar value as an array in /var/www/html/admin/modules/queues/functions.inc.php on line 318

Warning: extract(): First argument should be an array in /var/www/html/admin/modules/queues/page.queues.php on line 137[/i]

i did try uninstalling queue module and install it again.
in MySQL there is no table called queues?

/Thomas

unfortunately queues are still create as part of the core/framework setup in newinstall.sql because of some very old code that is still in that module. So somewhere along the line you removed the queue table. You can see the structure of the queue table in that script and will have to make a new table by hand in sql.
There shouldn’t be any code that removes that table that I’m aware of, how did it go away?

i created the table again and it all works very nice.

for w5waf, i have made a little script for toggling the daynight
mode, its made for aastra, but just change the xmlpart to somthing that
the snom phone can show! as it might show, im no programmer… so
please enhanced the script in any way possible :slight_smile: this script only change
the first day/night mode (*280) shuld be able to add a C0,C1… as a
parameter like toggledaynight.php?code=C0 or somthing like that

/Thomas Petersen

[code:1]<?php
// toggledaynight.php
// version 0.1
// for Aastra phone, tested on 480i and 57i
// Call it from a xml button http:///toggledaynight.php
// use and enhance, if you make something good
// mail me a copy at [email protected]

            exec( "asterisk -r -x 'DATABASE show daynight'", $response);
            $daynight = str_replace ( "/DAYNIGHT/C0                                      : ", "", $response[0]);
            if ($daynight == 'DAY') {
                    $response = "";
                    exec( "asterisk -r -x 'DATABASE put DAYNIGHT C0 NIGHT'", $response);
                    if (strstr($response[0], "success")){
                    // PUT XMLCODE HERE
                    echo "<AastraIPPhoneTextScreen>\n";
                    echo "<Title>NIGHT MODE</Title>\n";
                    echo "<Text>Goodnight sleep well</Text>\n";
                    echo "</AastraIPPhoneTextScreen>\n";
                    }
                    else {
                    echo "<AastraIPPhoneTextScreen>\n";
                    echo "<Title>ERROR</Title>\n";
                    echo "<Text>Call support</Text>\n";
                    echo "</AastraIPPhoneTextScreen>\n";
                    }
            }
            else {
                    $response = "";
                    exec( "asterisk -r -x 'DATABASE put DAYNIGHT C0 DAY'", $response);
                    if (strstr($response[0], "success")){
                    // PUT XMLCODE HERE
                    echo "<AastraIPPhoneTextScreen>\n";
                    echo "<Title>DAY MODE</Title>\n";
                    echo "<Text>Goodmorning</Text>\n";
                    echo "</AastraIPPhoneTextScreen>\n";
                    }
                    else {
                    echo "<AastraIPPhoneTextScreen>\n";
                    echo "<Title>ERROR</Title>\n";
                    echo "<Text>Call support</Text>\n";
                    echo "</AastraIPPhoneTextScreen>\n";
                    }
            }

?>
[/code:1]