Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

[BUG] On pages with Photo albums there is an 403 HTML error

1 year 1 month ago
  • Vladimir's Avatar
    Topic Author
  • Vladimir
  • Offline
  • Junior Boarder
  • Posts: 283
  • Thank you received: 40
Licenses:
JomSocial Active

...\components\com_community\templates\jomsocial\layouts\album\list.php
line 194:

<?php echo '<svg viewBox="0 0 20 20" class="joms-icon"><use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-camera"></use></svg> ' . $album->count . ' ‧ ' . '<svg viewBox="0 0 20 20" class="joms-icon"><use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-eye"></use></svg>' . $album->hits . ' ‧ ' . '<svg viewBox="0 0 20 20" class="joms-icon"><use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-bubble"></use></svg> ' . $album->totalComments . ' ‧ ' . '<svg viewBox="0 0 20 20" class="joms-icon"><use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-thumbs-up"></use></svg> ' . $album->likeCount;
                                    ?>
there are multiple <?php echo CRoute::getURI(); ?> inside <?php ... ?> and this results in 403 error on pages with albums.
Correct code is:
<?php echo '<svg viewBox="0 0 20 20" class="joms-icon"><use xlink:href="' . CRoute::getURI() . '#joms-icon-camera"></use></svg> ' . $album->count . ' ‧ ' . '<svg viewBox="0 0 20 20" class="joms-icon"><use xlink:href="' . CRoute::getURI() . '#joms-icon-eye"></use></svg>' . $album->hits . ' ‧ ' . '<svg viewBox="0 0 20 20" class="joms-icon"><use xlink:href="' . CRoute::getURI() . '#joms-icon-bubble"></use></svg> ' . $album->totalComments . ' ‧ ' . '<svg viewBox="0 0 20 20" class="joms-icon"><use xlink:href="' . CRoute::getURI() . '#joms-icon-thumbs-up"></use></svg> ' . $album->likeCount;
                                    ?>

1 year 1 month ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi,

I need to check this issue on your site, because this issue is not happening on our local. well, Please always provide us backend and FTP access when create new topic.

thank you

1 year 4 weeks ago
  • Vladimir's Avatar
    Topic Author
  • Vladimir
  • Offline
  • Junior Boarder
  • Posts: 283
  • Thank you received: 40
Licenses:
JomSocial Active

Indeed the error does not appear on demo themes. Strange. Still, the error is in list.php

1 year 4 weeks ago
  • Vladimir's Avatar
    Topic Author
  • Vladimir
  • Offline
  • Junior Boarder
  • Posts: 283
  • Thank you received: 40
Licenses:
JomSocial Active

After update to 4.4.5 same code is still present and same error appears. On JomSocial demo there is no error on same page. How come?
Line 204:

<?php echo '<svg viewBox="0 0 20 20" class="joms-icon"><use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-camera"></use></svg> ' . $album->count . ' ‧ ' . '<svg viewBox="0 0 20 20" class="joms-icon"><use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-eye"></use></svg>' . $album->hits . ' ‧ ' . '<svg viewBox="0 0 20 20" class="joms-icon"><use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-bubble"></use></svg> ' . $album->totalComments . ' ‧ ' . '<svg viewBox="0 0 20 20" class="joms-icon"><use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-thumbs-up"></use></svg> ' . $album->likeCount;
                                    ?>
There is <?php echo CRoute::getURI(); ?> inside <?php ... ?>!
On demo site there are no icons bellow image for each gallery for number of photos, views, comments and likes. That is the part of code that generates 403 error.

1 year 4 weeks ago
  • Vladimir's Avatar
    Topic Author
  • Vladimir
  • Offline
  • Junior Boarder
  • Posts: 283
  • Thank you received: 40
Licenses:
JomSocial Active

This error cannot be seen with (Web)Inspect but should be looked in page source:
demo.jomsocial.com/906-customer/photos
look at page source line 1002 or search for "<?php echo CRoute::getURI(); ?>" in page source

1 year 4 weeks ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

gotcha, I found it..

thank you!

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW