WordPress.org

Ready to get started?Download WordPress

Forums

PilotPress
Breaking (5 posts)

  1. Squibler
    Member
    Posted 1 year ago #

    Hi,

    A number of the javascript functions on wp3.5 are break when installing this plugin.

    WP is a clean install with no other plugins installed or activated besides pilotpress.

    Daniel

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

  2. ontraport
    Member
    Posted 1 year ago #

    Hi Squibler,

    Can you e-mail us at support@officeautopilot.com?

    Thanks!

  3. CharlyLeetham
    Member
    Posted 1 year ago #

    Couldn't get this working when the home url differed to the site url. When non-members tried to login (like the site admins), they were redirected to the WordPress folder url and received a "page not found" error.

    This seems to be because site_url has been used in a number of the redirect and cookie statements.

    In the pilotpress.php file I modified certain instances of site_url to home_url.

    Changes as follows:
    Line 1350:
    $cookie_domain = str_replace($this->get_protocol(),"",home_url());

    Line 1395:
    wp_redirect(home_url());

    Line 1405:
    wp_redirect(home_url());

    Line 1436:
    Changed the site_url function to include the path in the function call, not append it to the returned valued:

    wp_redirect(site_url("/wp-login.php?checkemail=confirm"));

    Line 1460:
    wp_redirect(home_url());

    Line 1606:
    wp_redirect(home_url());

    Line 1999:
    $redirect = home_url($_SERVER['REQUEST_URI']);

    Still testing but the problem seems to have disappeared.

  4. ontraport
    Member
    Posted 1 year ago #

    Hi CharlyLeetham,

    Thank you for reporting this issue. Our developers are working to address this problem and will release a new version of PilotPress shortly containing a fix.

    Thanks!

  5. cybernet0
    Member
    Posted 9 months ago #

    Same problem as CharlyLeetham ... 6 months later, still not fixed.

    Here is a simple patch for the latest version (1.6.0f):

    http://pastie.org/8463510

    Note: redirecting to site_url makes NO sense, except for building links to "internal" WP functionality, such as to wp-login.php, wp-activate.php, wp-cron.php, wp-signup.php, etc.

    There's ABSOLUTELY no reason to redirect to a bare site_url(). On most setups, home_url() and site_url() are the same, so mixing them up creates headaches for anyone without the same for both.

    No one wants to be redirected to example.com/wordpress (which usually results in WP errors) instead of example.com...

    That's why the "use site_url()" setting makes no sense at all.

    P.S. Please use a PHP beautifier/formatter on the code - it makes collaboration almost impossible without frustration.

    P.S.2 Consider moving this plugin to GitHub - especially if you don't have the time to maintain the plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.