V2 to V3 upgrade

VitalPBX Community Support General Discussion V2 to V3 upgrade

  • Post
    gerrykernan
    Participant
    hi

     

    i did a v2 to V3 upgrade , but when i access teh gui and click extensions for example i get the error below

     

    <b>Fatal error</b>: Uncaught TypeError: Argument 1 passed to vitalpbx\query::select() must be an instance of vitalpbx\schema, null given, called in /usr/share/vitalpbx/www/includes/persistent.php on line 0 and defined in /usr/share/vitalpbx/www/includes/query.php:0 Stack trace: #0 /usr/share/vitalpbx/www/includes/persistent.php(0): vitalpbx\query::select(NULL) #1 /usr/share/vitalpbx/www/includes/collection.php(0): modules\emergency_locations\EmergencyLocation::vitalpbx\{closure}() #2 /usr/share/vitalpbx/www/includes/collection.php(0): vitalpbx\collection->vitalpbx\{closure}() #3 /usr/share/vitalpbx/www/modules/emergency_locations/emergency_locations.php(0): vitalpbx\collection->getIterator() #4 /usr/share/vitalpbx/www/modules/hot_desking/Tabs/General.php(0): modules\emergency_locations\emergency_locations::dropdown() #5 /usr/share/vitalpbx/www/modules/hot_desking/Tabs/General.php(0): modules\hot_desking\Tabs\General::deviceSection(Object(vitalpbx\OmbutelHtml), true) #6 /usr/share/vitalpbx/www/modules/extensions/Tabs/General.php( in <b>/usr/share/vitalpbx/www/includes/query.php</b> on line <b>0</b>

    0
Viewing 4 replies - 1 through 4 (of 4 total)
  • Replies
    gerrykernan
    Participant
    Up
    0
    Down
    sorted, used

    /usr/share/vitalpbx/scripts/apply_migrations

     

    gerry

    0
    rogerfor
    Participant
    Up
    0
    Down
    How do you did the upgrade from 2 to 3 version? When I try to do an yum update its all up to date.
    0
    Up
    0
    Down
    For migrating from v2 to v3 we have a script, we have tested this script and it works as expected. However, to avoid any surprise, make sure to do a snapshot in case something fails and you need to return to the previous version.

    Here’s the script:
    https://github.com/VitalPBX/v2-to-v3-migration

    0
    ruben
    Participant
    Up
    0
    Down
    Hello,

    I am getting error when upgrading from Version : 2.4.2-7 to V3

    php(api) = 20170718-64
    Available: php-common-7.2.27-1.el7.remi.x86_64 (vpbx-base)
    php(api) = 20170718-64
    Available: php-common-7.2.31-1.el7.remi.x86_64 (vpbx-base)
    php(api) = 20170718-64
    Available: php-common-7.2.31-2.el7.r[root@pbx ~]# Error: Package: php-pecl-apcu-4.0.11-1.el7.x86_64 (@epel)
    -bash: syntax error near unexpected token `(‘
    [root@pbx ~]# Requires: php(zend-abi) = 20100525-64
    -bash: syntax error near unexpected token `(‘
    [root@pbx ~]# Removing: php-common-5.4.16-48.el7.x86_64 (@base)
    -bash: syntax error near unexpected token `(‘
    [root@pbx ~]# php(zend-abi) = 20100525-64
    -bash: syntax error near unexpected token `zend-abi’
    [root@pbx ~]# Updated By: php-common-7.2.33-1.el7.remi.x86_64 (vpbx-base)
    -bash: syntax error near unexpected token `(‘
    [root@pbx ~]# php(zend-abi) = 20170718-64
    -bash: syntax error near unexpected token `zend-abi’
    [root@pbx ~]# Available: php-common-5.4.16-46.1.el7_7.x86_64 (vpbx-base)
    -bash: syntax error near unexpected token `(‘
    [root@pbx ~]# php(zend-abi) = 20100525-64
    -bash: syntax error near unexpected token `zend-abi’
    [root@pbx ~]# Available: php-common-7.2.26-1.el7.remi.x86_64 (vpbx-base)
    -bash: syntax error near unexpected token `(‘
    [root@pbx ~]# php(zend-abi) = 20170718-64
    -bash: syntax error near unexpected token `zend-abi’
    [root@pbx ~]# Available: php-common-7.2.27-1.el7.remi.x86_64 (vpbx-base)
    -bash: syntax error near unexpected token `(‘
    [root@pbx ~]# php(zend-abi) = 20170718-64
    -bash: syntax error near unexpected token `zend-abi’
    [root@pbx ~]# Available: php-common-7.2.31-1.el7.remi.x86_64 (vpbx-base)
    -bash: syntax error near unexpected token `(‘
    [root@pbx ~]# php(zend-abi) = 20170718-64
    -bash: syntax error near unexpected token `zend-abi’
    [root@pbx ~]# Available: php-common-7.2.31-2.el7.remi.x86_64 (vpbx-base)
    -bash: syntax error near unexpected token `(‘
    [root@pbx ~]# php(zend-abi) = 20170718-64
    -bash: syntax error near unexpected token `zend-abi’
    [root@pbx ~]# Available: php-common-7.2.32-1.el7.remi.x86_64 (vpbx-base)
    -bash: syntax error near unexpected token `(‘
    [root@pbx ~]# php(zend-abi) = 20170718-64
    -bash: syntax error near unexpected token `zend-abi’
    [root@pbx ~]# Error: Package: php-pecl-apcu-4.0.11-1.el7.x86_64 (@epel)
    -bash: syntax error near unexpected token `(‘
    [root@pbx ~]# Requires: php(api) = 20100412-64
    -bash: syntax error near unexpected token `(‘
    [root@pbx ~]# Removing: php-common-5.4.16-48.el7.x86_64 (@base)
    -bash: syntax error near unexpected token `(‘
    [root@pbx ~]# php(api) = 20100412-64
    -bash: syntax error near unexpected token `api’
    [root@pbx ~]# Updated By: php-common-7.2.33-1.el7.remi.x86_64 (vpbx-base)
    -bash: syntax error near unexpected token `(‘
    [root@pbx ~]# php(api) = 20170718-64
    -bash: syntax error near unexpected token `api’
    [root@pbx ~]# Available: php-common-5.4.16-46.1.el7_7.x86_64 (vpbx-base)
    -bash: syntax error near unexpected token `(‘
    [root@pbx ~]# php(api) = 20100412-64
    -bash: syntax error near unexpected token `api’
    [root@pbx ~]# Available: php-common-7.2.26-1.el7.remi.x86_64 (vpbx-base)
    -bash: syntax error near unexpected token `(‘
    [root@pbx ~]# php(api) = 20170718-64
    -bash: syntax error near unexpected token `api’
    [root@pbx ~]# Available: php-common-7.2.27-1.el7.remi.x86_64 (vpbx-base)
    -bash: syntax error near unexpected token `(‘
    [root@pbx ~]# php(api) = 20170718-64
    -bash: syntax error near unexpected token `api’
    [root@pbx ~]# Available: php-common-7.2.31-1.el7.remi.x86_64 (vpbx-base)
    -bash: syntax error near unexpected token `(‘
    [root@pbx ~]# php(api) = 20170718-64
    -bash: syntax error near unexpected token `api’
    [root@pbx ~]# Available: php-common-7.2.31-2.el7.remi.x86_64 (vpbx-base)
    -bash: syntax error near unexpected token `(‘
    [root@pbx ~]# php(api) = 20170718-64
    -bash: syntax error near unexpected token `api’
    [root@pbx ~]# Available: php-common-7.2.32-1.el7.remi.x86_64 (vpbx-base)
    -bash: syntax error near unexpected token `(‘
    [root@pbx ~]# php(api) = 20170718-64
    -bash: syntax error near unexpected token `api’
    [root@pbx ~]# You could try using –skip-broken to work around the problem
    -bash: You: command not found
    [root@pbx ~]# You could try running: rpm -Va –nofiles –nodigest
    -bash: You: command not found

    On the GUE I got:

    <b>Fatal error</b>: Undefined class constant ‘MYSQL_ATTR_INIT_COMMAND’ in <b>/usr/share/ombutel/www/includes/Database.php</b> on line <b>0</b>

    0
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.