Calender shown on just preview mode.
-
Greetings, first of all i wanted to thank you all for doing a great job with this plugin. The problem on my project is when i add the ‘calendar’ with a shortcode on my page it just shown on preview mode. For example https://closefriendsgym.com/online-kayit/?preview=true but it not shown when i publish the page => https://closefriendsgym.com/online-kayit/
The page I need help with: [log in to see the link]
-
Hi @thekagor ,
Thank you for reaching out.
To help us understand the situation better, could you please provide the shortcode that you’re using on the https://closefriendsgym.com/online-kayit/ page?
Hey @tristan083 the shortcode is => [bookit]
also [bookit category=”5″ theme=”default”]
Hi @thekagor ,
Thank you for your message and the information.
Unfortunately, I have not been able to reproduce the issue in my testing environment running only the BookIt plugin and the twenty-twenty-one theme.
In that regard, I suspect there’s a conflict that’s causing the issue here. It would be good to test for conflicts. Could you follow the following steps?
- Deactivate all other plugins except for The Events Calendar Plugins.
- Switching to the Default theme.
To be safe, we’d recommend conducting tests and updates on a Staging Server. Also, please keep a working backup of your website.
@tristan083 I tried both steps one by one also tried reinstall this plugin but it still not working. Not even shown on standart twenty-twenty fifteen theme. It just shown when i get in preview mode. But not seen on published page.
Hi @thekagor ,
Thank you for your message.
Are you saying that the issue persists even if you only have the default WordPress theme activated along with just the BookIt plugin activated?
If that’s the case, I recommend moving to see if there’s anything thrown out in the debug logs that could provide further clues about the issue — see How to Enable Debugging in WordPress.
Hey @tristan083
Yes i did deactive all the other plugins and not shown. Also tried this with default theme and nope. I install debug and all secreenshots for you to check and please help me to solve. (You can see i took ss on both situations preview and published of same page. Also source code view for you to see added, wp bakery classic and backend modes views etc. all ss included.)
Page link:
https://closefriendsgym.com/online-kayit-2/
Screeshoots:
https://ibb.co/9sb7Ffh
https://ibb.co/TB5bLFk
https://ibb.co/RcrPHqR
https://ibb.co/SXzDmh2
https://ibb.co/LYxQk3z
https://ibb.co/VShXtyS
https://ibb.co/CVLDt6s
https://ibb.co/pxZJjpt
https://ibb.co/kcsBp3R
https://ibb.co/bdy5NwvA Log:
- SELECT 1300764_wp_bookit_staff.*,
CONCAT( ‘[‘, GROUP_CONCAT(DISTINCT CONCAT(
‘{“id”:’, 1300764_wp_bookit_staff_working_hours.id,
‘, “weekday”:’, 1300764_wp_bookit_staff_working_hours.weekday,
‘, “start_time”:”‘, IFNULL(LEFT(1300764_wp_bookit_staff_working_hours.start_time, 8), “NULL”),
‘”, “end_time”:”‘, IFNULL(LEFT(1300764_wp_bookit_staff_working_hours.end_time, 8), “NULL”),
‘”, “break_from”:”‘, IFNULL(LEFT(1300764_wp_bookit_staff_working_hours.break_from, 8), “NULL”),
‘”, “break_to”:”‘, IFNULL(LEFT(1300764_wp_bookit_staff_working_hours.break_to, 8), “NULL”),
‘”}’ ) ), ‘]’ ) as working_hours
FROM 1300764_wp_bookit_staff
LEFT JOIN 1300764_wp_bookit_staff_working_hours ON 1300764_wp_bookit_staff_working_hours.staff_id = 1300764_wp_bookit_staff.id
GROUP BY 1300764_wp_bookit_staff.id ORDER BY 1300764_wp_bookit_staff.full_name DESC
require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/powerlift/full-width.php’), the_content, apply_filters(‘the_content’), WP_Hook->apply_filters, do_shortcode, preg_replace_callback, do_shortcode_tag, vc_do_shortcode, WPBakeryShortCode->output, WPBakeryShortCode_Vc_Row->content, WPBakeryShortCode->loadTemplate, require(‘/themes/powerlift/vc-templates/vc_row.php’), wpb_js_remove_wpautop, do_shortcode, preg_replace_callback, do_shortcode_tag, vc_do_shortcode, WPBakeryShortCode->output, WPBakeryShortCode->content, WPBakeryShortCode->loadTemplate, require(‘/plugins/js_composer/include/templates/shortcodes/vc_column.php’), wpb_js_remove_wpautop, do_shortcode, preg_replace_callback, do_shortcode_tag, vc_do_shortcode, WPBakeryShortCode->output, WPBakeryShortCode_Vc_Row->content, WPBakeryShortCode->loadTemplate, require(‘/themes/powerlift/vc-templates/vc_row_inner.php’), wpb_js_remove_wpautop, do_shortcode, preg_replace_callback, do_shortcode_tag, vc_do_shortcode, WPBakeryShortCode->output, WPBakeryShortCode->content, WPBakeryShortCode->loadTemplate, require(‘/plugins/js_composer/include/templates/shortcodes/vc_column_inner.php’), wpb_js_remove_wpautop, do_shortcode, preg_replace_callback, do_shortcode_tag, PowerliftCore\CPT\Shortcodes\ElementsHolder\ElementsHolder->render, do_shortcode, preg_replace_callback, do_shortcode_tag, PowerliftCore\CPT\Shortcodes\ElementsHolder\ElementsHolderItem->render, powerlift_core_get_shortcode_module_template_part, include(‘/plugins/powerlift-core/shortcodes/elements-holder/templates/elements-holder-item-template.php’), do_shortcode, preg_replace_callback, do_shortcode_tag, Bookit\Classes\BookitController::render_shortcode, Bookit\Classes\BookitController::render_calendar, Bookit\Classes\BookitController::get_base_data_by_attributes, Bookit\Classes\Database\Staff::get_all#26 (0,2 ms) - SELECT 1300764_wp_bookit_staff_services.staff_id,
1300764_wp_bookit_services.id as serviceId,
1300764_wp_bookit_staff_services.price,
1300764_wp_bookit_services.title
FROM 1300764_wp_bookit_staff_services
LEFT JOIN 1300764_wp_bookit_services ON 1300764_wp_bookit_staff_services.service_id = 1300764_wp_bookit_services.id
WHERE 1300764_wp_bookit_staff_services.staff_id IN ( 1,5,9,8,7,3,4,2,6,10 )
ORDER BY 1300764_wp_bookit_staff_services.staff_id
require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/powerlift/full-width.php’), the_content, apply_filters(‘the_content’), WP_Hook->apply_filters, do_shortcode, preg_replace_callback, do_shortcode_tag, vc_do_shortcode, WPBakeryShortCode->output, WPBakeryShortCode_Vc_Row->content, WPBakeryShortCode->loadTemplate, require(‘/themes/powerlift/vc-templates/vc_row.php’), wpb_js_remove_wpautop, do_shortcode, preg_replace_callback, do_shortcode_tag, vc_do_shortcode, WPBakeryShortCode->output, WPBakeryShortCode->content, WPBakeryShortCode->loadTemplate, require(‘/plugins/js_composer/include/templates/shortcodes/vc_column.php’), wpb_js_remove_wpautop, do_shortcode, preg_replace_callback, do_shortcode_tag, vc_do_shortcode, WPBakeryShortCode->output, WPBakeryShortCode_Vc_Row->content, WPBakeryShortCode->loadTemplate, require(‘/themes/powerlift/vc-templates/vc_row_inner.php’), wpb_js_remove_wpautop, do_shortcode, preg_replace_callback, do_shortcode_tag, vc_do_shortcode, WPBakeryShortCode->output, WPBakeryShortCode->content, WPBakeryShortCode->loadTemplate, require(‘/plugins/js_composer/include/templates/shortcodes/vc_column_inner.php’), wpb_js_remove_wpautop, do_shortcode, preg_replace_callback, do_shortcode_tag, PowerliftCore\CPT\Shortcodes\ElementsHolder\ElementsHolder->render, do_shortcode, preg_replace_callback, do_shortcode_tag, PowerliftCore\CPT\Shortcodes\ElementsHolder\ElementsHolderItem->render, powerlift_core_get_shortcode_module_template_part, include(‘/plugins/powerlift-core/shortcodes/elements-holder/templates/elements-holder-item-template.php’), do_shortcode, preg_replace_callback, do_shortcode_tag, Bookit\Classes\BookitController::render_shortcode, Bookit\Classes\BookitController::render_calendar, Bookit\Classes\BookitController::get_base_data_by_attributes, Bookit\Classes\Database\Staff::get_all, Bookit\Classes\Database\Staff_Services::get_staff_services#27 (0,1 ms) - SELECT 1300764_wp_bookit_services.*
FROM 1300764_wp_bookit_services
INNER JOIN 1300764_wp_bookit_staff_services ON 1300764_wp_bookit_services.id = 1300764_wp_bookit_staff_services.service_id
GROUP BY 1300764_wp_bookit_services.id ORDER BY 1300764_wp_bookit_services.id DESC
require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/powerlift/full-width.php’), the_content, apply_filters(‘the_content’), WP_Hook->apply_filters, do_shortcode, preg_replace_callback, do_shortcode_tag, vc_do_shortcode, WPBakeryShortCode->output, WPBakeryShortCode_Vc_Row->content, WPBakeryShortCode->loadTemplate, require(‘/themes/powerlift/vc-templates/vc_row.php’), wpb_js_remove_wpautop, do_shortcode, preg_replace_callback, do_shortcode_tag, vc_do_shortcode, WPBakeryShortCode->output, WPBakeryShortCode->content, WPBakeryShortCode->loadTemplate, require(‘/plugins/js_composer/include/templates/shortcodes/vc_column.php’), wpb_js_remove_wpautop, do_shortcode, preg_replace_callback, do_shortcode_tag, vc_do_shortcode, WPBakeryShortCode->output, WPBakeryShortCode_Vc_Row->content, WPBakeryShortCode->loadTemplate, require(‘/themes/powerlift/vc-templates/vc_row_inner.php’), wpb_js_remove_wpautop, do_shortcode, preg_replace_callback, do_shortcode_tag, vc_do_shortcode, WPBakeryShortCode->output, WPBakeryShortCode->content, WPBakeryShortCode->loadTemplate, require(‘/plugins/js_composer/include/templates/shortcodes/vc_column_inner.php’), wpb_js_remove_wpautop, do_shortcode, preg_replace_callback, do_shortcode_tag, PowerliftCore\CPT\Shortcodes\ElementsHolder\ElementsHolder->render, do_shortcode, preg_replace_callback, do_shortcode_tag, PowerliftCore\CPT\Shortcodes\ElementsHolder\ElementsHolderItem->render, powerlift_core_get_shortcode_module_template_part, include(‘/plugins/powerlift-core/shortcodes/elements-holder/templates/elements-holder-item-template.php’), do_shortcode, preg_replace_callback, do_shortcode_tag, Bookit\Classes\BookitController::render_shortcode, Bookit\Classes\BookitController::render_calendar, Bookit\Classes\BookitController::get_base_data_by_attributes, Bookit\Classes\Database\Services::get_assigned_to_staff#28 (0,1 ms) - SELECT 1300764_wp_bookit_categories.*
FROM 1300764_wp_bookit_categories
INNER JOIN 1300764_wp_bookit_services ON 1300764_wp_bookit_categories.id = 1300764_wp_bookit_services.category_id
GROUP BY 1300764_wp_bookit_categories.id ORDER BY 1300764_wp_bookit_categories.id DESC
require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/powerlift/full-width.php’), the_content, apply_filters(‘the_content’), WP_Hook->apply_filters, do_shortcode, preg_replace_callback, do_shortcode_tag, vc_do_shortcode, WPBakeryShortCode->output, WPBakeryShortCode_Vc_Row->content, WPBakeryShortCode->loadTemplate, require(‘/themes/powerlift/vc-templates/vc_row.php’), wpb_js_remove_wpautop, do_shortcode, preg_replace_callback, do_shortcode_tag, vc_do_shortcode, WPBakeryShortCode->output, WPBakeryShortCode->content, WPBakeryShortCode->loadTemplate, require(‘/plugins/js_composer/include/templates/shortcodes/vc_column.php’), wpb_js_remove_wpautop, do_shortcode, preg_replace_callback, do_shortcode_tag, vc_do_shortcode, WPBakeryShortCode->output, WPBakeryShortCode_Vc_Row->content, WPBakeryShortCode->loadTemplate, require(‘/themes/powerlift/vc-templates/vc_row_inner.php’), wpb_js_remove_wpautop, do_shortcode, preg_replace_callback, do_shortcode_tag, vc_do_shortcode, WPBakeryShortCode->output, WPBakeryShortCode->content, WPBakeryShortCode->loadTemplate, require(‘/plugins/js_composer/include/templates/shortcodes/vc_column_inner.php’), wpb_js_remove_wpautop, do_shortcode, preg_replace_callback, do_shortcode_tag, PowerliftCore\CPT\Shortcodes\ElementsHolder\ElementsHolder->render, do_shortcode, preg_replace_callback, do_shortcode_tag, PowerliftCore\CPT\Shortcodes\ElementsHolder\ElementsHolderItem->render, powerlift_core_get_shortcode_module_template_part, include(‘/plugins/powerlift-core/shortcodes/elements-holder/templates/elements-holder-item-template.php’), do_shortcode, preg_replace_callback, do_shortcode_tag, Bookit\Classes\BookitController::render_shortcode, Bookit\Classes\BookitController::render_calendar, Bookit\Classes\BookitController::get_base_data_by_attributes, Bookit\Classes\Database\Categories::get_with_exist_services#29 (0,1 ms) - SELECT * FROM 1300764_wp_bookit_customers WHERE wp_user_id = ‘1’
require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/powerlift/full-width.php’), the_content, apply_filters(‘the_content’), WP_Hook->apply_filters, do_shortcode, preg_replace_callback, do_shortcode_tag, vc_do_shortcode, WPBakeryShortCode->output, WPBakeryShortCode_Vc_Row->content, WPBakeryShortCode->loadTemplate, require(‘/themes/powerlift/vc-templates/vc_row.php’), wpb_js_remove_wpautop, do_shortcode, preg_replace_callback, do_shortcode_tag, vc_do_shortcode, WPBakeryShortCode->output, WPBakeryShortCode->content, WPBakeryShortCode->loadTemplate, require(‘/plugins/js_composer/include/templates/shortcodes/vc_column.php’), wpb_js_remove_wpautop, do_shortcode, preg_replace_callback, do_shortcode_tag, vc_do_shortcode, WPBakeryShortCode->output, WPBakeryShortCode_Vc_Row->content, WPBakeryShortCode->loadTemplate, require(‘/themes/powerlift/vc-templates/vc_row_inner.php’), wpb_js_remove_wpautop, do_shortcode, preg_replace_callback, do_shortcode_tag, vc_do_shortcode, WPBakeryShortCode->output, WPBakeryShortCode->content, WPBakeryShortCode->loadTemplate, require(‘/plugins/js_composer/include/templates/shortcodes/vc_column_inner.php’), wpb_js_remove_wpautop, do_shortcode, preg_replace_callback, do_shortcode_tag, PowerliftCore\CPT\Shortcodes\ElementsHolder\ElementsHolder->render, do_shortcode, preg_replace_callback, do_shortcode_tag, PowerliftCore\CPT\Shortcodes\ElementsHolder\ElementsHolderItem->render, powerlift_core_get_shortcode_module_template_part, include(‘/plugins/powerlift-core/shortcodes/elements-holder/templates/elements-holder-item-template.php’), do_shortcode, preg_replace_callback, do_shortcode_tag, Bookit\Classes\BookitController::render_shortcode, Bookit\Classes\BookitController::render_calendar, Bookit\Classes\Vendor\DatabaseModel::get#30 (0,1 ms) - SELECT SQL_CALC_FOUND_ROWS 1300764_wp_comments.comment_ID
FROM 1300764_wp_comments
WHERE ( ( comment_approved = ‘1’ ) OR ( user_id = 1 AND comment_approved = ‘0’ ) ) AND comment_post_ID = 4294 AND comment_parent = 0 AND comment_type != ‘order_note’ AND comment_type != ‘webhook_delivery’
ORDER BY 1300764_wp_comments.comment_date_gmt ASC, 1300764_wp_comments.comment_ID ASC
require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/powerlift/full-width.php’), do_action(‘powerlift_mikado_action_page_after_content’), WP_Hook->do_action, WP_Hook->apply_filters, powerlift_mikado_page_comments, comments_template, WP_Comment_Query->__construct, WP_Comment_Query->query, WP_Comment_Query->get_comments, WP_Comment_Query->get_comment_ids
- This reply was modified 1 month ago by thekagor.
Hi @thekagor
Could you please give the following shortcode a try? To do this, highlight the shortcode, copy it, and paste it into your page. This might help resolve the issue. Often, problems like these can arise from unrecognized “quote” characters, so addressing that could make a difference.
[bookit category="5" theme="default"]
Just for your reference, when I copy and paste the shortcode you shared, the result appears in the following format:
[bookit category=”5″ theme=”default”]
Hey @d0153
Copied directly from here and tried again but still same. It just shown on preview mode.
Can you please check both pages to test if any error to blocking or JS error, somethings like that? idk. Thanks.
Hi @thekagor
Thanks for your message.
Could you please let me know if you’re using a caching plugin or any form of server-side caching on your site? If you do, I recommend temporarily disabling these caching mechanisms to see if that resolves the issue. If you notice a change after doing this, please inform me about the specific caching tool or solution you’re using. I’d like to investigate it further from my side.
Looking forward to your reply.
Hi @thekagor
I hope everything is going smoothly for you. I just wanted to touch base and inquire if you had the opportunity to review my previous response as it has been some time since we last heard from you.
Hi there,
It seems like this thread has been quiet for a bit, so we’ll go ahead and close this for now. However, if any further questions or concerns come up, please don’t hesitate to start a new thread.
- You must be logged in to reply to this topic.