Call to undefined method VikBookingReport::getInstanceOf
-
I’ve upgraded the component from 1.2.5 to the latest 1.3.8, PHP 7.2. Now I’m unable to open the Vik console, in errors.log I have the following error:
[Mon Sep 21 09:56:14.345546 2020] [php7:error] [pid 22228] [client 37.160.69.189:30642] PHP Fatal error: Uncaught Error: Call to undefined method VikBookingReport::getInstanceOf() in /var/www/www.site.it/html/wp-content/plugins/vikbooking/site/helpers/lib.vikbooking.php:10194\nStack trace:\n#0 /var/www/www.site.it/html/wp-content/plugins/vikbooking/admin/layouts/reports/occupancy.php(44): VikBooking::getReportInstance('occupancy_ranki...')\n#1 /var/www/www.site.it/html/wp-content/plugins/vikbooking/libraries/adapter/layout/file.php(135): include('/var/www/www.bu...')\n#2 /var/www/www.site.it/html/wp-content/plugins/vikbooking/libraries/adapter/layout/helper.php(69): JLayoutFile->render(Array)\n#3 /var/www/www.site.it/html/wp-content/plugins/vikbooking/admin/views/dashboard/tmpl/default_forecast.php(22): JLayoutHelper::render('reports.occupan...', Array)\n#4 /var/www/www.site.it/html/wp-content/plugins/vikbooking/libraries/adapter/mvc/view.php(195): include('/var/www/www.bu...')\n#5 /var/www/www.site.it/html/wp-content/plugins/vikbooking/admin/views/dashboar in /var/www/www.site.it/html/wp-content/plugins/vikbooking/site/helpers/lib.vikbooking.php on line 10194, referer: https://www.site.it/camere/wp-admin/
Other than that I also have this error about failed SQL upgrade:
[Mon Sep 21 09:54:13.850034 2020] [php7:notice] [pid 21502] [client 37.160.69.189:30606] WordPress database error Duplicate column name 'oparams' for query ALTER TABLE <code>databasewp_vikbooking_optionals</code> ADD COLUMN <code>oparams</code> varchar(1024) DEFAULT NULL; made by require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, VikBookingInstaller::update, VikBookingUpdateManager::update, VikBookingUpdateManager::installSql, VikBookingUpdateManager::execSqlFile, JDatabase->execute, referer: https://www.site.it/wp-admin/network/index.php [Mon Sep 21 09:54:13.850330 2020] [php7:notice] [pid 21502] [client 37.160.69.189:30606] WordPress database error Duplicate column name 'ordering' for query ALTER TABLE <code>databasewp_vikbooking_characteristics</code> ADD COLUMN <code>ordering</code> int(10) NOT NULL DEFAULT 1; made by require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, VikBookingInstaller::update, VikBookingUpdateManager::update, VikBookingUpdateManager::installSql, VikBookingUpdateManager::execSqlFile, JDatabase->execute, referer: https://www.site.it/wp-admin/network/index.php [Mon Sep 21 09:54:13.850639 2020] [php7:notice] [pid 21502] [client 37.160.69.189:30606] WordPress database error Duplicate column name 'promofinalprice' for query ALTER TABLE <code>databasewp_vikbooking_seasons</code> ADD COLUMN <code>promofinalprice</code> tinyint(1) NOT NULL DEFAULT 0; made by require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, VikBookingInstaller::update, VikBookingUpdateManager::update, VikBookingUpdateManager::installSql, VikBookingUpdateManager::execSqlFile, JDatabase->execute, referer: https://www.site.it/wp-admin/network/index.php [Mon Sep 21 09:54:13.850943 2020] [php7:notice] [pid 21502] [client 37.160.69.189:30606] WordPress database error Duplicate column name 'excludetaxes' for query ALTER TABLE <code>databasewp_vikbooking_coupons</code> ADD COLUMN <code>excludetaxes</code> tinyint(1) NOT NULL DEFAULT 1; made by require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, VikBookingInstaller::update, VikBookingUpdateManager::update, VikBookingUpdateManager::installSql, VikBookingUpdateManager::execSqlFile, JDatabase->execute, referer: https://www.site.it/wp-admin/network/index.php
After upgrade I got a 403 error, but I wasn’t able to find the cause.
- The topic ‘Call to undefined method VikBookingReport::getInstanceOf’ is closed to new replies.