Wordpress PHP致命错误:类';gdlr管理选项&x27;在路径/to/gdlr_hotel_plugin/plugin_option.php第40行中找不到
在我的WordPress网站上线几分钟后,我发现了一个WordPress错误。说网站遇到了一些技术问题 我曾多次尝试重新加载代码,但过了一段时间后,出现了WordPress错误Wordpress PHP致命错误:类';gdlr管理选项&x27;在路径/to/gdlr_hotel_plugin/plugin_option.php第40行中找不到,wordpress,Wordpress,在我的WordPress网站上线几分钟后,我发现了一个WordPress错误。说网站遇到了一些技术问题 我曾多次尝试重新加载代码,但过了一段时间后,出现了WordPress错误 if( !function_exists('gdlr_create_hotel_admin_option') ){ function gdlr_create_hotel_admin_option(){ global $hotel_option, $gdlr_sidebar_controller;
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告诉您它找不到类
gdlr\u admin\u选项
。确保:1)文件确实存在,2)PHP可读,3)插件在某处实际包含/需要该文件。在包含文件夹中,我只能看到gdlr admin option.PHP
文件。同样在function.pp文件中,`include_once('include/gdlr admin option.php');include_once('include/gdlr plugin option.php');include_once('include/gdlr font-controls.php')代码>