ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Subscription Manager (member/edit_subscriptions) links are not working.

November 14, 2011 7:47am

Subscribe [2]
  • #1 / Nov 14, 2011 7:47am

    Gurudutt Verma

    74 posts

    In Subscription Manager (http://your_site.com/member/edit_subscriptions)

    All lists of subscription get’s url like :

    http://your_site.com/?URL=http://your_site.com/forums/viewthread/9877/

    but after clicking on above link it gives 404 error.

    After digging I found some bug in Redirect.php and prepared a patch for it.

    I applied following patch inside system folder in order to fix this.

    --- expressionengine/libraries/Redirect.php.orig
    +++ expressionengine/libraries/Redirect.php
    @@ -38,6 +38,7 @@
     
     $host = ( ! isset($_SERVER['HTTP_HOST'])) ? '' : (substr($_SERVER['HTTP_HOST'],0,4) == 'www.' ? substr($_SERVER['HTTP_HOST'], 4) : $_SERVER['HTTP_HOST']);
     
    +include_once(APPPATH.'../codeigniter/system/core/Common.php');
     $force_redirect = ($request_type != 'CP' && config_item('force_redirect') == TRUE) ? TRUE: FALSE;
     
     if ($force_redirect == TRUE OR ( ! isset($_SERVER['HTTP_REFERER']) OR ! stristr($_SERVER['HTTP_REFERER'], $host)))

    Should I report it as a bug ?
    OR

    Is there some other workaround I am missing ?

     

  • #2 / Nov 14, 2011 7:48am

    Gurudutt Verma

    74 posts

    I am using EE v2.3.1 - Build: date 20111017

    And

    Discussion Forum Module 3.1.4

  • #3 / Nov 15, 2011 1:53am

    John Henry Donovan

    12339 posts

    Hi Gurudutt,


    I can’t replicate your issue. Can you please upgrade to latest version of the Discussion Forum please?

    Can you try with your htaccess disabled and the index.php reinstated in your General Config settings please?

    http://your_site.com/index.php?URL=http://your_site.com/index.php/forums/viewthread/9877/

    Is this a fresh install of an upgrade of a previous version or build of EE. Make sure you have the most recent index.php and admin.php in your root from the upgrade

  • #4 / Nov 15, 2011 8:17am

    Gurudutt Verma

    74 posts

    I am on latest version of EE and forum module.

    Thank you for suggestion, after last upgrade we didn’t updated index.php from latest release and that was a issue.

    after replacing index.php from latest version it works.

    so this issue can be set as resolved.

  • #5 / Nov 16, 2011 4:55am

    John Henry Donovan

    12339 posts

    Glad you are up and running again. Feel free to start a new thread if you have any more questions.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases