Title: Problem with plugin
Last modified: November 15, 2021

---

# Problem with plugin

 *  Resolved [jurajbs](https://wordpress.org/support/users/jurajbs/)
 * (@jurajbs)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/problem-with-plugin-69/)
 * Hi.
    Can you check please why can´t loading pages when is plugin wp-hotelier 
   enabled and when I disable the plugin page load complete? Problematic pages: 
   [https://www.staryhostinec.sk/vikendova-ponuka/](https://www.staryhostinec.sk/vikendova-ponuka/)
   [https://www.staryhostinec.sk/jesenne-prazdniny-vo-svatom-antone/](https://www.staryhostinec.sk/jesenne-prazdniny-vo-svatom-antone/)
   [https://www.staryhostinec.sk/stary-hostinec-vo-svatom-antone/](https://www.staryhostinec.sk/stary-hostinec-vo-svatom-antone/)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-with-plugin-69%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [benitolopez](https://wordpress.org/support/users/benitolopez/)
 * (@benitolopez)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/problem-with-plugin-69/#post-15070629)
 * Hi,
 * Seems a theme issue to me. Can you deactivate your theme (switching to the default
   WP theme) to test if the issue goes away?
 * Let me know,
    Benito
 *  Thread Starter [jurajbs](https://wordpress.org/support/users/jurajbs/)
 * (@jurajbs)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/problem-with-plugin-69/#post-15078455)
 * Hi.
    After switching to another theme, the problem disappears. I wrote to the
   author of the theme and they claim that the problem is in the plugin hotelier.
   Who’s right now? Thank you for help.
 *  Plugin Author [benitolopez](https://wordpress.org/support/users/benitolopez/)
 * (@benitolopez)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/problem-with-plugin-69/#post-15078492)
 * Well, considering that with another theme the issue disappears and that WP Hotelier
   don’t modify any code associated to that theme the answer seems pretty obvious
   to me.
 * I think that the theme is modifying some templates or functions of WP Hotelier.
   If it is true, the theme must be updated to support the last version of WP Hotelier.
 * You can try to turn on the “Template debug mode” in Hotelier > Settings > Tools.
   That will disable the theme’s templates related of WP Hotelier (if any).
 * Also, try to activate the WP debug ([https://wordpress.org/support/article/debugging-in-wordpress/#wp_debug](https://wordpress.org/support/article/debugging-in-wordpress/#wp_debug))
   to get more information. Let me know the exact error message in case.
 *  Thread Starter [jurajbs](https://wordpress.org/support/users/jurajbs/)
 * (@jurajbs)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/problem-with-plugin-69/#post-15078525)
 * The hosting administrator did the test and here are the results:
 *     ```
       b9 php: PHP Deprecated:  Function create_function() is deprecated in /data-web9/webs/staryhostinec.sk/wp-content/plugins/wp-spamshield/wp-spamshield.php on line 2033
       18:47 web9 php: PHP Fatal error:  Uncaught Error: Call to undefined function get_current_screen() in /data-web9/webs/staryhostinec.sk/wp-content/plugins/wp-hotelier/includes/class-htl-comments.php:54
       18:47 web9 php: Stack trace:
       18:47 web9 php: #0 /data-web9/webs/staryhostinec.sk/wp-includes/class-wp-hook.php(305): HTL_Comments::exclude_reservation_comments()
       18:47 web9 php: #1 /data-web9/webs/staryhostinec.sk/wp-includes/plugin.php(233): WP_Hook->apply_filters()
       18:47 web9 php: #2 /data-web9/webs/staryhostinec.sk/wp-includes/class-wp-comment-query.php(909): apply_filters_ref_array()
       18:47 web9 php: #3 /data-web9/webs/staryhostinec.sk/wp-includes/class-wp-comment-query.php(438): WP_Comment_Query->get_comment_ids()
       18:47 web9 php: #4 /data-web9/webs/staryhostinec.sk/wp-includes/class-wp-comment-query.php(347): WP_Comment_Query->get_comments()
       18:47 web9 php: #5 /data-web9/webs/staryhostinec.sk/wp-includes/class-wp-comment-query.php(304): WP_Comment_Query->query()
       18:47 web9 php: #6 /data-web9/webs/staryhostinec.sk/wp-includes/comment-template.php(1486): WP_Comment_Query->__construct()
       18:47 web9 php: #7 /data-web9/webs/staryhostinec.sk/wp-content/themes/hotello/resources/partials/cont in /data-web9/webs/staryhostinec.sk/wp-content/plugins/wp-hotelier/includes/class-htl-comments.php on lin
       18:49 web9 php: PHP Fatal error:  Uncaught Error: Call to undefined function get_current_screen() in /data-web9/webs/staryhostinec.sk/wp-content/plugins/wp-hotelier/includes/class-htl-comments.php:54
       ```
   
 *  Plugin Author [benitolopez](https://wordpress.org/support/users/benitolopez/)
 * (@benitolopez)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/problem-with-plugin-69/#post-15078735)
 * Thank you for reporting the error message.
 * Ok, seems that for some reason the theme is triggering a filter that shouldn’t
   be called in the frontend. Anyway, to avoid any delay, I’ve added a small modification
   to the plugin that solves the problem in any case.
 * So just update WP Hotelier to the version 2.6.3 (released some minutes ago).
 * Best regards,
    Benito
 *  Plugin Author [benitolopez](https://wordpress.org/support/users/benitolopez/)
 * (@benitolopez)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/problem-with-plugin-69/#post-15081539)
 * Update: the issue was related to the recent comments widget. Or in general, from
   any code that displays comments.
 * Version 2.6.3 fixes the issue.
 *  Thread Starter [jurajbs](https://wordpress.org/support/users/jurajbs/)
 * (@jurajbs)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/problem-with-plugin-69/#post-15082339)
 * The problem is solved. Thank you for your help. 🙂
 *  [hotchd](https://wordpress.org/support/users/hotchd/)
 * (@hotchd)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/problem-with-plugin-69/#post-15258133)
 * Hi,
 * Trying to use Hotelier on a fresh install of your Manila theme.
    My datepicker
   is listing the date twice: [https://danwiner.com/hotel/](https://danwiner.com/hotel/)
 * How can I fix this issue?

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Problem with plugin’ is closed to new replies.

 * ![](https://ps.w.org/wp-hotelier/assets/icon-256x256.png?rev=1680801)
 * [WP Hotelier](https://wordpress.org/plugins/wp-hotelier/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-hotelier/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-hotelier/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-hotelier/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-hotelier/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-hotelier/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [hotchd](https://wordpress.org/support/users/hotchd/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/problem-with-plugin-69/#post-15258133)
 * Status: resolved