0
Welcome Guest! Login
0 items Join Now

Redirect infinite Loop - BUG -

  • Redirect infinite Loop - BUG -

    Posted 16 years 7 months ago
    • This problem is with CB and GroupJiive I am using Joomla 1.0
      I have posted the same question in the GroupJive Forum but it is dead over there.

      I am using GroupJiive with integrations on with event list and fire board


      I noticed a bug when a user is not a member of a group and goes to the group home page and clicks on either group forum or group events it goes to a loop. What can we do to stop this because IE does not detect it and keeps reloading and can cause strain on server when I go live please help. Example link below to a test group home page

      welcometothegoodlife.com/component/optio...roupid,12/Itemid,90/



      The URL it tries to bring the user to is / or the URL Firefox stops the loop on is

      welcometothegoodlife.com/component/optio...are+for+members+only .
  • Re: Redirect infinite Loop - BUG -

    Posted 16 years 7 months ago
    • Please I need something to go on, does anybody have a clue on what is happening ?
      is the mosmsg=The+events+are+for+members+only suppose to be a message that comes up ??
      the forum for groupjive and CB are dead, I havent got anything.
  • Re: Redirect infinite Loop - BUG -

    Posted 16 years 7 months ago
    • //Itemid GroupJive
      $sql = "SELECT id FROM #__menu "
      . "WHERE link = 'index.php?option=com_groupjive' "
      . "AND published=1";
      $database->setQuery($sql);
      $itemid_gj = $database->loadResult();

      if($itemid_active == $itemid_gj) {
      $Itemid = $itemid_gj;
      $_REQUEST = 1;
      if(isset($_REQUEST)) {
      $catid = mosGetParam($_REQUEST, 'categid');
      if($admin) {
      $and = '';
      } else {
      $and = " AND $my->id=b.id_user";
      }

      $q = "SELECT a.group_id FROM #__gj_eventlist AS a"
      . "\nINNER JOIN #__gj_users AS b"
      . "\nON a.group_id = b.id_group"
      . "\nINNER JOIN #__gj_groups AS c"
      . "\nON c.id = a.group_id"
      . "\nWHERE b.status = 'active'"
      . "\nAND a.category_id = ".$catid
      . $and
      ;

      $database->setQuery($q);
      $res=$database->loadObjectList();
      $gj_groupid=$res[0]->group_id;

      if(!empty($gj_groupid))
      {
      showgroup($gj_groupid, 'mini');
      echo '<a class="events_returntogroup" href="'
      . sefRelToAbs("index.php?option=com_groupjive&task="
      . "showgroup&groupid=$gj_groupid&Itemid=$Itemid")
      . '"> <~ '.GJ_BACKTGROUP.'</a>';

      }
      else
      {
      // get groupid
      $q = "SELECT a.group_id FROM #__gj_eventlist AS a"
      . "\nWHERE a.category_id = ".$catid;
      $database->setQuery($q);
      $gid = $database->loadResult();
      showgroup($gid);
      mosRedirect( 'index.php?option=com_groupjive&task=showgroup&groupid='.$gid.'&Itemid='.$itemid_active,
      GJ_EVENTS_ONLY_FOR_MEMBERS );

      ===================================================================
      the blue is what controls what is doing if they are not a member of the group is it sending them to a place that they are not a member of so keeps looping please help I know little about programming.

      this is from groupjive_eventlist.php
    • Last Edit: 16 years 7 months ago by James William.

Time to create page: 0.057 seconds