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.

Sorry, the system needs a proper id to process after deleting photo albums

12 years 2 months ago
  • Arthur's Avatar
    Topic Author
  • Arthur
  • Offline
  • Fresh Boarder
  • Posts: 70
  • Thank you received: 7
Licenses:
JomSocial Expired AdAgency Expired iSEO Expired

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"

12 years 2 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi Arthur,

Ok seems this is bug, I will report to our developer.

thank you

12 years 2 months ago
  • Arthur's Avatar
    Topic Author
  • Arthur
  • Offline
  • Fresh Boarder
  • Posts: 70
  • Thank you received: 7
Licenses:
JomSocial Expired AdAgency Expired iSEO Expired

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.

12 years 2 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

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);
            }

after this code :
public function removeActivity($app, $uniqueId) {
             $db = $this->getDBO();

and then find this code :
. 'WHERE ' . $db->quoteName('app') . '=' . $db->Quote($app) . ' '
replace to :
. 'WHERE ' . $additionalQuery . ' '

please let me know if this issue helps.

thank you

12 years 2 months ago
  • Arthur's Avatar
    Topic Author
  • Arthur
  • Offline
  • Fresh Boarder
  • Posts: 70
  • Thank you received: 7
Licenses:
JomSocial Expired AdAgency Expired iSEO Expired

I tried this two different ways. But just so I'm clear....

I replaced this code:

. 'WHERE ' . $db->quoteName('app') . '=' . $db->Quote($app) . ' '

with this:
. 'WHERE ' . $additionalQuery . ' '

But the the above code had many instances. So replaced all of them (I believe 4)

I also tried just replacing the first one that came up in search, and left the others how they were.

In any case, neither of them worked far as removing blank space in the activity wall. I also noticed one other thing while testing. There is no option to hide comments on the activity wall. So now I have a bunch of boxes that I can't remove manually. Is this supposed to be? See screen shot:

awesomescreenshot.com/01c3bwdl3f

12 years 2 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

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

12 years 2 months ago
  • Arthur's Avatar
    Topic Author
  • Arthur
  • Offline
  • Fresh Boarder
  • Posts: 70
  • Thank you received: 7
Licenses:
JomSocial Expired AdAgency Expired iSEO Expired

I added the FTP details, thank you/

12 years 2 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi Arthur,

Please check again, it should work fine now.

thank you

12 years 2 months ago
  • Arthur's Avatar
    Topic Author
  • Arthur
  • Offline
  • Fresh Boarder
  • Posts: 70
  • Thank you received: 7
Licenses:
JomSocial Expired AdAgency Expired iSEO Expired

Seems to be working fine now. What did I do wrong in the code? Or was something missing?

12 years 2 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

I forget to mentioned the another patch, but I already applied it to your site.. this issue wont be happened in next version :)

12 years 2 months ago
  • Arthur's Avatar
    Topic Author
  • Arthur
  • Offline
  • Fresh Boarder
  • Posts: 70
  • Thank you received: 7
Licenses:
JomSocial Expired AdAgency Expired iSEO Expired

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.

12 years 2 months ago
Licenses:

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.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
12 years 2 months ago
  • Arthur's Avatar
    Topic Author
  • Arthur
  • Offline
  • Fresh Boarder
  • Posts: 70
  • Thank you received: 7
Licenses:
JomSocial Expired AdAgency Expired iSEO Expired

Cron job did not help my situation. Can you please check? And doesn't this supposed to happen automatically?

12 years 2 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

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.

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