Steps to make this error appear:
1) Create a new group
2) In this new group create an album
3) Send photos to album.
4) Once done, view album. Make a comments and likes on photos.
5) Go to groups' wall.
6) Like and make replies to photos on wall.
7) Go back to new album. Delete entire album.
7) Visit groups's wall.
From this point you will see images still appearing even though album is gone.
8) Click one of the photos you deleted but still appear's on wall.
9) Page will Notice: "proper id to process after deleting photo albums"
Hi Arthur,
Ok seems this is bug, I will report to our developer.
thank you
I just wanted to add that this same bug applies to normal album creation/deletion. I made a video to show the process:
picturemeclubbing.smugmug.com/Other/Vide.../n-R4H7k/i-FKNJjXb/A
Any word on when this will be fixed? It's like I bought a broken product. I can't even launch until most of these things are bug free.
Hi Arthur,
Please you open this file components/com_community/models/activities.php, add this code :
/*
* @todo add in additional info if needed
* when removing photo app, we need to remove the likes and comments as well
*/
$additionalQuery = '';
switch($app){
case 'photos' :
//we should remove the likes and comments
$additionalQuery = '('.$db->quoteName('app') . '=' . $db->Quote($app). ' OR '.$db->quoteName('app').'='.$db->Quote('photos.comment'). ' OR '.$db->quoteName('app').'='.$db->Quote('photo.like').')';
break;
default :
// this is the default state
$additionalQuery = $db->quoteName('app') . '=' . $db->Quote($app);
}public function removeActivity($app, $uniqueId) {
$db = $this->getDBO();. 'WHERE ' . $db->quoteName('app') . '=' . $db->Quote($app) . ' '. 'WHERE ' . $additionalQuery . ' '
I tried this two different ways. But just so I'm clear....
I replaced this code:
. 'WHERE ' . $db->quoteName('app') . '=' . $db->Quote($app) . ' '. 'WHERE ' . $additionalQuery . ' '
Hi Arthur,
That code is from this function removeActivity(), if you still have problem with it, just provide me the FTP access.
You need remove the old stream manually, and I am sure this issue wont available again in future.
thank you
Hi Arthur,
Please check again, it should work fine now.
thank you
I forget to mentioned the another patch, but I already applied it to your site.. this issue wont be happened in next version :)
Sorry to open this back up, but that patch missed something.
The error above was caused if someone uploads one photo in an album, make a comment or like it. Then erased the album and it would still leave everything on the main wall.
But the same thing happens if the user clicks like on the album (instead of the photo in the album) See screen shots;
awesomescreenshot.com/0e73ctfa9f
deleted album, and it still shows on activity wall. If you click the image that isn't there, you will get this error:
awesomescreenshot.com/0b03ctfh34
There's one other bug I came across but I'll make a different post for it.
Hi, Arthur.
I tested it on my installation.
Yes, commented foto remained on the stream and after click it give a notice "Sorry..".
But then run cron job: Backend -> Components -> JomSocial -> Monitor -> mail Queue -> Execute cron (button upper right).
This action clears remaining photo.
hi Arthur,
I see, this is different issue with the previous one, the trigger is on album not on the photo, I will report this.
thank you for reporting.