WordPress.org

Ready to get started?Download WordPress

Forums

Booking Calendar
[resolved] 500 error with directory separated WP (2 posts)

  1. kazkun
    Member
    Posted 1 year ago #

    I got 500 error when I have try to delete the sample booking on the admin console
    just after installation.

    I checked your FAQ and forum messages ... but found no problems.

    Then, I checked your source code and found a suspicious mistake in a function
    print_js_css(). It outputs Javascript, initializing the wpdev_bk_plugin_url variable
    with get_home_url(). it should be something WPDEV_BK_PLUGIN_URL !

    The plugin may works on the environment WP works on the document root, but I could not
    move it because of the system limitation.

    Could you inspect the problem ?

    I have plan to get retail version, but I also feel unease for quarity ...

    http://wordpress.org/extend/plugins/booking/

  2. wpdevelop
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,
    Please try to make this fix.

    Please open this file:

    ../booking/lib/wpdev-booking-class.php

    find this code:

    var wpdev_bk_plugin_url     = '<?php echo get_home_url(null, '/wp-content/plugins/'.WPDEV_BK_PLUGIN_DIRNAME ); ?>';

    and replace it to this code:

    var wpdev_bk_plugin_url     = '<?php echo get_site_url(null, '/wp-content/plugins/'.WPDEV_BK_PLUGIN_DIRNAME ); ?>';

    Then test it again.

    PS. Its known inssue in the last update and we will reupdate the plugin soon, relative to this issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.