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.

Problem viewing pictures

10 years 8 months ago
Licenses:
JomSocial Active

ISSUE SUMMARY:


STEPS TO REPLICATE:
Steps to replicate

Login with the jstest user

enter to the next section:
portales.inder.gov.co/intranet/familia-inder

Clic in some photos, as I show you in the attachment: clic-some-fotos1.png



As you can see... when you clic in every photo in the "fotos" modules, it show the photo in the pop up window...

BUT

when you enter with other user... like:
user: anderson.ospina
password: (password in under the misc information)





and you repeat the same procedure... you clic in some pictures... some pictures open normally, but there are other pictures that shows an error... like in the attachment: clic-some-fotos2-error.png


RESULT
EXPECTED RESULT
BROWSER

Attachments:
10 years 8 months ago
Licenses:

Hi,

could you please upgrade it to 4.1.5? many fixes there.
if the issue still exist, I need to access your FTP. not sure why I cant access it. seem there is IP blocker at server side.

Regards

10 years 8 months ago
Licenses:
JomSocial Active

Now you can access to FTP

Today I updated the jomsocial version to the 4.1.6

10 years 8 months ago
Licenses:

Hi Victor,

there is no issue with the code. I need to check the database. seem the issue only with "avatar" photo.
could you please give me the access into DB manager?

Regards

10 years 8 months ago
Licenses:
JomSocial Active

In this moment I cant give you access to the database, because of the firewall...

I write in the miscelaneus information... in the first post... the link to download the database... please use in your system... and then tell me what I should modify in my database to fix the problem

thanks!

10 years 8 months ago
Licenses:

Hi,

please give me time for this issue. still struggling with it.

Regards

10 years 8 months ago
Licenses:

Hi,

could you please give me write permission?
by using SFTP I only can read the files. buat cannot make any changes.

Regards

10 years 8 months ago
Licenses:
JomSocial Active

what files are you trying to write? I did a test with your users... and you belong to the same owner of the files (www-data) so you can do any changes on that folders and files...

can you be more specific please? (what folders or files?)

can you check again please?

10 years 8 months ago
Licenses:

Hi,

/var/www/html/intranet/components/com_community/helpers/access/photos.php
/var/www/html/intranet/components/com_community/controllers/photos.php

as you can see, if I tried to changing that files, the files onwer always changed into victorarango

and got this error message

Error:        	/var/www/html/intranet/components/com_community/helpers/access/photos.php: open for write: permission denied
Error:        	File transfer failed

Error:        	/var/www/html/intranet/components/com_community/controllers/photos.php: open for write: permission denied
Error:        	File transfer failed

Regards

10 years 8 months ago
Licenses:
JomSocial Active

you are right... I gave you the correct permissions... please check again...


thanks!

10 years 8 months ago
Licenses:

Hi,

please check it. I found small bug. there the fix that I put at:
/components/com_community/models/photos.php at line 300 I changing the code from

if (!is_null($permission)) {
    if(is_array($permission)){
        $permissions = implode(',', $permission);
        $where .= 'AND a.`permissions` IN ('.$permissions.') ';
    }else{
        $where .= ' AND a.`permissions`'
            . '=' . $db->Quote($permission);
    }
}
to
if (!is_null($permission)) {
    if(is_array($permission)){
        $permissions = implode(',', $permission);
        $where .= 'AND b.`permissions` IN ('.$permissions.') ';
    }else{
        $where .= ' AND b.`permissions`'
            . '=' . $db->Quote($permission);
    }
}

Regards

10 years 8 months ago
Licenses:
JomSocial Active

Thank you... great support!!!!

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