致命错误:未捕获错误:类“VBORemindersHelper” Vik 预订插件 WordPress

发布于 2025-01-14 06:25:20 字数 2185 浏览 0 评论 0原文

我正在尝试在我的本地主机(XAMPP)上使用 VikBooking。安装并激活插件后,每当我想要配置或导入示例数据时,都会不断弹出此错误。 输入图片此处描述

致命错误:未捕获错误:找不到类“VBORemindersHelper” C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\admin\helpers\widgets\reminders.php:420 堆栈跟踪:#0 C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\admin\helpers\admin_widgets.php(336): VikBookingAdminWidgetReminders->preload() #1 C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\admin\layouts\sidepanel\multitasking.php(32): VikBookingHelperAdminWidgets->getWidgetNames(true) #2 C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\libraries\adapter\layout\file.php(135): 包括('C:\xampp\htdocs...') #3 C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\libraries\adapter\layout\helper.php(69): JLayoutFile->渲染(数组)#4 C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\admin\helpers\helper.php(222): JLayoutHelper::render('sidepanel.multi...', Array) #5 C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\admin\controller.php(5443): VikBookingHelper::printHeader('1') #6 C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\libraries\adapter\mvc\controller.php(323): VikBookingController->prices() #7 C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\libraries\system\body.php(55): JController->execute('prices') #8 C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\vikbooking.php(196): VikBookingBody::process() #9 C:\xampp\htdocs\hotel\wp-includes\class-wp-hook.php(307): {闭包}('') #10 C:\xampp\htdocs\hotel\wp-includes\class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #11 C:\xampp\htdocs\hotel\wp-includes\plugin.php(474): WP_Hook->do_action(数组) #12 C:\xampp\htdocs\hotel\wp-settings.php(587): do_action('init') #13 C:\xampp\htdocs\hotel\wp-config.php(96): require_once('C:\xampp\htdocs...') #14 C:\xampp\htdocs\hotel\wp-load.php(50): require_once('C:\xampp\htdocs...') #15 C:\xampp\htdocs\hotel\wp-admin\admin.php(34): require_once('C:\xampp\htdocs...') #16 {main} 抛出 C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\admin\helpers\widgets\reminders.php 第 420 行

I am trying to use VikBooking on my localhost (XAMPP). After installing and activating the plugin, this error keeps popping up anytime I want to configure or import sample data.
enter image description here

Fatal error: Uncaught Error: Class "VBORemindersHelper" not found in
C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\admin\helpers\widgets\reminders.php:420
Stack trace: #0
C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\admin\helpers\admin_widgets.php(336):
VikBookingAdminWidgetReminders->preload() #1
C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\admin\layouts\sidepanel\multitasking.php(32):
VikBookingHelperAdminWidgets->getWidgetNames(true) #2
C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\libraries\adapter\layout\file.php(135):
include('C:\xampp\htdocs...') #3
C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\libraries\adapter\layout\helper.php(69):
JLayoutFile->render(Array) #4
C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\admin\helpers\helper.php(222):
JLayoutHelper::render('sidepanel.multi...', Array) #5
C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\admin\controller.php(5443):
VikBookingHelper::printHeader('1') #6
C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\libraries\adapter\mvc\controller.php(323): VikBookingController->prices() #7
C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\libraries\system\body.php(55):
JController->execute('prices') #8
C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\vikbooking.php(196):
VikBookingBody::process() #9
C:\xampp\htdocs\hotel\wp-includes\class-wp-hook.php(307):
{closure}('') #10
C:\xampp\htdocs\hotel\wp-includes\class-wp-hook.php(331):
WP_Hook->apply_filters(NULL, Array) #11
C:\xampp\htdocs\hotel\wp-includes\plugin.php(474):
WP_Hook->do_action(Array) #12
C:\xampp\htdocs\hotel\wp-settings.php(587): do_action('init') #13
C:\xampp\htdocs\hotel\wp-config.php(96):
require_once('C:\xampp\htdocs...') #14
C:\xampp\htdocs\hotel\wp-load.php(50):
require_once('C:\xampp\htdocs...') #15
C:\xampp\htdocs\hotel\wp-admin\admin.php(34):
require_once('C:\xampp\htdocs...') #16 {main} thrown in
C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\admin\helpers\widgets\reminders.php
on line 420

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

温暖的光 2025-01-21 06:25:20

这曾经是与 Windows 服务器和 Vik Booking for WordPress 1.5.x 系列中引入的新 spl 自动加载注册功能的冲突。由于正则表达式中存在未转义的反斜杠(Windows 目录分隔符是反斜杠,而不是像 Linux/Unix 服务器上的斜杠),spl 自动加载器无法为一个管理小部件要求正确的类文件。只需将插件更新到最新版本,该错误就会消失。

无论如何,您都可以通过官方网站联系 VikWP 技术团队。您将得到及时答复。

That used to be a conflict with Windows servers and the new spl autoload register functions introduced with the 1.5.x series of Vik Booking for WordPress. Due to an unescaped backslash (Windows directory separator is a backslash rather than a slash like on Linux/Unix servers) in a regex, the spl autoloader was unable to require the proper class file for one admin widget. Just update the plugin to its latest version and that error will disappear.

In any case, you can contact the tech VikWP team by using the official website. You will get a prompt answer.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文