Results 1 to 6 of 6

Thread: Redirect plugin no longer working

  1. #1
    Thread Starter
    Expired Customer ub3rst4r's Avatar
    Join Date
    Jul 2012
    Location
    Canada
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Redirect plugin no longer working

    I have upgraded my JobRoller to v1.6.3 today and I had a Wordpress plugin that would redirect users who aren't logged in to a coming soon page. Since the update, I am just getting "headers already sent" errors when I try to visit my website.

    Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxxxxxx/public_html/xxxxxxxxxxxxx.net/wp-content/themes/jobroller/includes/theme-functions.php:1) in /home/xxxxxxx/public_html/xxxxxxxxxxxxx.net/wp-content/plugins/beta/index.php on line 16
    I have tried looking in theme-functions.php but I don't see where it is outputting anything so I'm assuming its in some other file. If your wondering what code I am using for the plugin, here it is:

    Code:
    add_action( 'template_redirect', 'template_redirect' );
    	
    	function template_redirect() {
    		if ( !is_user_logged_in() ) {
    			header('Location: /coming-soon/');
    			exit();
    		}
    	}
    I was also wondering if there is an easier way to integrate my payment gateway (Plimus) into JobRoller without always having to edit the theme when its been updated.

    Thanks

  2. #2
    sebet's Avatar
    Join Date
    Oct 2010
    Location
    Portugal
    Posts
    1,491
    Thanks
    138
    Thanked 207 Times in 182 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Checkout my products on the Marketplace.

  3. #3
    Thread Starter
    Expired Customer ub3rst4r's Avatar
    Join Date
    Jul 2012
    Location
    Canada
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    sebet's Avatar
    Join Date
    Oct 2010
    Location
    Portugal
    Posts
    1,491
    Thanks
    138
    Thanked 207 Times in 182 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Checkout my products on the Marketplace.

  5. #5
    Thread Starter
    Expired Customer ub3rst4r's Avatar
    Join Date
    Jul 2012
    Location
    Canada
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #6
    sebet's Avatar
    Join Date
    Oct 2010
    Location
    Portugal
    Posts
    1,491
    Thanks
    138
    Thanked 207 Times in 182 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Checkout my products on the Marketplace.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. RSS no longer working in 1.5.1
    By koldsnapz in forum JobRoller General Discussion
    Replies: 2
    Last Post: January 3rd, 2012, 09:22 AM
  2. Need Help Please, post ad button no longer working
    By johnny9259 in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: December 19th, 2011, 10:58 PM
  3. Indeed feed no longer working
    By hiremymum in forum Report JobRoller Bugs
    Replies: 1
    Last Post: October 26th, 2011, 08:07 AM
  4. Plugins no longer working since the v3.0.5 upgrade
    By pepsi in forum Report ClassiPress Bugs
    Replies: 26
    Last Post: July 3rd, 2011, 01:33 PM
  5. Links no longer working
    By aubertin in forum ClassiPress General Discussion
    Replies: 2
    Last Post: May 31st, 2011, 09:39 AM