WordPress.org

Forums

Private Messages For WordPress
Undefined function redirect_to_login_url (2 posts)

  1. Liesl Fawcett
    Member
    Posted 4 years ago #

    Hi, when a user isn't logged in and goes to the private messages page, they get this error:
    Fatal error: Call to undefined function redirect_to_login_url() in /home/lpnet/public_html/wp-content/themes/lptheme/pm4wp-template.php on line 16

    I looked in the plugin files, and it seems like that function doesn't exist.

    http://wordpress.org/extend/plugins/private-messages-for-wordpress/

  2. thesanerone
    Member
    Posted 4 years ago #

    In the pm4wp-template.php file, change this

    'if (!is_user_logged_in()) {
    redirect_to_login_url();
    }'

    to this

    'if (!is_user_logged_in()) {
    auth_redirect();
    }'

    Problem solved!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Private Messages For WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic