issue after migrating from V2 to V3

hi

i used the migration script to move from V2 to V3 . but im getting error below when i try access Trunks in the GUI
Fatal error: 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\pjsip_transports\PJSIPTransport::vitalpbx{closure}() #2 /usr/share/vitalpbx/www/includes/collection.php(0): vitalpbx\collection->vitalpbx{closure}() #3 /usr/share/vitalpbx/www/modules/pjsip_transports/pjsip_transports.php(0): vitalpbx\collection->getIterator() #4 /usr/share/vitalpbx/www/modules/trunks/Tabs/General.php(0): modules\pjsip_transports\pjsip_transports::dropdown(true, false, false) #5 /usr/share/vitalpbx/www/modules/trunks/Tabs/General.php(0): modules\trunks\Tabs\General->_buildOutgoingSection(Object(vitalpbx\OmbutelHtml)) #6 /usr/share/vitalpbx/www/includes/components/modules/View.php(0): modules\ in /usr/share/vitalpbx/www/includes/query.php on line 0

Tied running vitalpbx --build-db , but i get this error
columns to TEXT or BLOBs
in /usr/share/vitalpbx/scripts/apply_migrations:0
Stack trace:
#0 /usr/share/vitalpbx/scripts/apply_migrations(0): patcher->shellcmd(’/bin/bash -c se…’)
#1 /usr/share/vitalpbx/scripts/apply_migrations(0): patcher->import_dbscript(‘20210513.2.trk…’, ‘/usr/share/vita…’)
#2 /usr/share/vitalpbx/scripts/apply_migrations(0): patcher->apply(‘migrations’)
#3 {main}
thrown in /usr/share/vitalpbx/scripts/apply_migrations on line 0
virtual-faxes
Done

ive unistalled vitual faxes module and re-run vitalpbx --build-db but getting the same error

hi ,

got sorted , no need to reply

gerry

Please share the solution so future visitors can find this helpful

1 Like

ran these commands
mysql -uroot ombutel -e"insert into ombu_patches(filename) values (’/usr/share/vitalpbx/migrations/20210804.1.out_recordings.sql’)"
/usr/share/vitalpbx/scripts/apply_migrations
mysql -uroot ombutel -e"insert into ombu_patches(filename) values (’/usr/share/vitalpbx/migrations/20210804.1.out_recordings.sql’)"
/usr/share/vitalpbx/scripts/apply_migrations
mysql -uroot ombutel -e"insert into ombu_patches(filename) values (’/usr/share/vitalpbx/migrations/20210804.1.out_recordings.sql’)"
/usr/share/vitalpbx/scripts/apply_migrations
vitalpbx --build-db
/usr/share/vitalpbx/scripts/apply_migrations
vitalpbx --build-db

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.