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.

Users deleted photos but count won't change

11 years 6 months ago
  • Lisa's Avatar
    Topic Author
  • Lisa
  • Offline
  • Fresh Boarder
  • Thank you received: 0
Licenses:
JomSocial Expired

ISSUE SUMMARY: I have the photo count set to 10 max in the Photo Config. I added some pictures from the front end as a user, but then changed my mind and deleted them. When I went to add new pictures it says that I have hit my "Max" for picture uploads and below the 1 and only picture in the Album it says there are 10 pictures in the album but there is only 1.


login on front end as me; icaninvent/nov61987

This is where I try to add photos to the "Inventions" album

11 years 6 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Lisa,

Seems this is bug, thank you for reporting.

cheers

11 years 6 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

This is the patch
1. open this file components/com_community/controllers/photos.php, remove this code :

/**
             * Get CTableAlbum object
             * @todo should we move all of these into same library
             */
            $album = JTable::getInstance('Album', 'CTable');
            $album->load($photo->albumid);

2. open this file components/com_community/views/photos/view.html.php add this code after line 406 :
$albums[$i]->count = count($photoModel->getPhotos($albums[$i]->id));

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