wordpress - PHP 致命错误:在 path/to/gdlr_hotel_plugin/plugin_option.php 第 40 行中找不到类“gdlr_admin_option”
问题描述
在我的 wordpress 网站上线几分钟后,我收到了一个 WordPress 错误。说该网站遇到了一些技术困难
尝试重新上传代码不止一个,但过了一段时间,它给了我 WordPress 错误
if( !function_exists('gdlr_create_hotel_admin_option') ){
function gdlr_create_hotel_admin_option(){
global $hotel_option, $gdlr_sidebar_controller;
new gdlr_admin_option(
// admin option attribute
array(
'page_title' => __('Hotel Option', 'gdlr-hotel'),
'menu_title' => __('Hotel Option', 'gdlr-hotel'),
'menu_slug' => 'hotel_option',
'save_option' => 'gdlr_hotel_option',
'role' => 'edit_theme_options',
'position' => 83,
),
// admin option setting
array(
// general menu
'general' => array(
'title' => __('General', 'gdlr-hotel'),
'icon' => GDLR_PATH . '/include/images/icon-general.png',
'options' => array(
'general-option' => array(
'title' => __('General Option', 'gdlr-hotel'),
'options' => array(
'booking-money-format' => array(
'title' => __('Money Display Format', 'gdlr-hotel'),
'type' => 'text',
'default' => '$NUMBER',
),
'enable-hotel-branch' => array(
'title' => __('Enable Hotel Branch ( Using Category )', 'gdlr-hotel'),
'type' => 'checkbox',
'default' => 'disable'
),
'enable-adult-child-option' => array(
'title' => __('Enable Adult - Children Option', 'gdlr-hotel'),
'type' => 'checkbox',
'default' => 'enable'
),
'preserve-booking-room' => array(
'title' => __('Preserve The Room After', 'gdlr-hotel'),
'type' => 'combobox',
'options' => array(
'paid' => __('Paid for room', 'gdlr-hotel'),
'booking' => __('Booking for room', 'gdlr-hotel')
)
),
'booking-price-display' => array(
'title' => __('Booking Price Display', 'gdlr-hotel'),
'type' => 'combobox',
'options' => array(
'start-from' => __('Start From', 'gdlr-hotel'),
'full-price' => __('Full Price', 'gdlr-hotel')
)
),
'booking-vat-amount' => ar
解决方案
推荐阅读
- php - 使用php在shopify中添加脚本标签
- css - 我需要帮助在引导程序 4 中订购列
- javascript - 在 this.props.dispatch(push(path)) 上没有发生 React 转换
- javascript - 替代粘性位置?
- azure-devops - 为什么我在 Azure DevOps Build Pipeline 中的测试会运行两次?
- google-cloud-firestore - 是否可以在 Airflow 中使用 datastore_export_operator 导出 Firestore 备份?
- java - 打印具有相同值的变量名称
- css - 即使文本区域没有焦点,也能指示选定的文本
- github - 为分支中的每个提交在没有 vm 的情况下在 codeship 中运行命令
- java - 在Java中,一个类可以引用另一个包含它的类的实例吗?