Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author benitolopez

    (@benitolopez)

    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

    (@jurajbs)

    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

    (@benitolopez)

    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://www.ads-software.com/support/article/debugging-in-wordpress/#wp_debug) to get more information. Let me know the exact error message in case.

    Thread Starter jurajbs

    (@jurajbs)

    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

    (@benitolopez)

    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

    (@benitolopez)

    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

    (@jurajbs)

    The problem is solved. Thank you for your help. ??

    Hi,

    Trying to use Hotelier on a fresh install of your Manila theme.
    My datepicker is listing the date twice:
    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.