0
Welcome Guest! Login
0 items Join Now

Rokminievents3 Providing Wrong Links

  • Rokminievents3 Providing Wrong Links

    Posted 8 years 9 months ago
    • We're using Rokminievents3-3.0.0 with Joomla 3.3.6 and there is a huge problem with the way links are formed. If the links are formed for items in the initially displayed panel they're fine. If you use the timeline/arrows to retrieve another panel of dates via ajax the links contain erroneous pathing information where "modules/mod_rokminievents3/" is inserted between juri::base() and the parameterized data. We know this is attributable to the ajax process because if you shift a working event from the initially displayed panel where all the links work to a subsequent panel by reducing the number of items displayed, when you retrieve the same link via the timeline change the link is constructed erroneously and no longer works.

      So a working link looks like this:

      [...]site.com/index.php/events/icalrepeat.detail/2015/07/17title=nominations-accepted/0/-/-?rp_id=21

      When you retrieve the same link following an ajax request it's malformed and looks like this:

      [...]site.com/modules/mod_rokminievents3/index.php/events/icalrepeat.detail/2015/07/17title=nominations-accepted/0/-/-?rp_id=21

      Naturally the erroneous URL throws a 404.

      We put this module up early on in development and didn't fully populate the event list so this defect escaped us. Now that we're launching we experienced the error as soon as we filled out the event list.

      We searched this forum but couldn't find any reports of this, which is hard to believe because it's such a huge error.

      We're hoping someone knows the fix for this before we dive in, which we don't want to do but we'll have no choice.

      Any help or suggestions would be greatly appreciated.

      Thanks, Chris
    • Last Edit: 8 years 9 months ago by Christine Ewing.
  • Re: Rokminievents3 Providing Wrong Links

    Posted 8 years 9 months ago
    • Just so we're not gambling we went ahead and hacked /modules/mod_rokminievents3/tmpl/default_item.php inserting a str_replace to replace the offending URL portion with nothing around the middle of the code.


      <?php if (!$event->getLink()): ?>
      <span class="rme-title"><?php echo $event->getTitle(); ?></span>
      <?php else: ?>
      <?php
      $values = $event->getLink();
      $internal = $values;
      $link = $values;
      $link = str_replace("modules/mod_rokminievents3/", "", $link);
      ?>
      <a class="rme-title<?php echo $internal ? '' : ' rme-external-link'; ?>" href="<?php echo $link ?>"><?php echo $event->getTitle(); ?></a>
      <?php endif; ?>

      Naturally we'd prefer a fix.
  • Re: Rokminievents3 Providing Wrong Links

    Posted 6 years 11 months ago
    • Hi,

      The issue still exists.
      I'm using RokMiniEvents3 version 3.0.3 against Joomla 3.6.5

      After changing the module displaying 4 or more events and activating the navigation timeline and arrows, I was shocked when all of a sudden the visitors complained about getting a 404 error, trying to get the event details from the second panel and beyond.

      It took me a while, searching for similar issues until I found this post.

      RocketTheme crew could you please act on this issue and get us a fix for this extension?! That would be largly appreciated! ;-)

      Cheers,
      Patrick

Time to create page: 0.040 seconds