CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Front end profile does not show contact's picture
Pages: [1]

Author Topic: Front end profile does not show contact's picture  (Read 5889 times)

Ilan

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
Front end profile does not show contact's picture
January 04, 2008, 12:58:29 pm
I'm using Joomla 1.0.13 and Civicrm 1.9

I created a custom data field (of type file) to store a picture for each contact.

When looking at the contact form the administrator panel, the filename is showed and after clicking on it, the picture is displayed (I read in a post that civicrm detects the extencion jpg and gif and displays the image, but apparently is not so (i guess is in a different context).

The main problem is that we crated a profile to show our contacts as a list in the front end and when the contact is displayed (it's Visibility is "Public User Pages and Listings"), the name of the file is displayed but if we click on the file name we receive the error message:  You do not have permission to execute this url.

The profile is for unregistered users but I tried also with registered users and still no permission.

I have other custom data (of the same custom group) being shown in the same profile.

 So the question is: any idea what are we missing?

Thanks
Ilan

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Front end profile does not show contact's picture
January 04, 2008, 05:07:32 pm

Most likely this is a bug in the  civicrm joomla frontend. I'm pretty sure we dont allow frontend users access to the 'file' url. The picture not displayed is probably an issue with joomla an drupal. Can you try to reproduce this problem on our drupal demo site and if so please file an issue

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Ilan

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
Re: Front end profile does not show contact's picture
January 07, 2008, 07:17:21 pm
Ok,

I created a profile at the dupal demo site ID=35 (with the name Public_photo_test_profile), and created a household with the name: Photo test household  (Photo)

But I don't know who to create a public page (search/list) with this profile without administrator access.

How do I test it?

Ilan

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Front end profile does not show contact's picture
January 07, 2008, 08:40:43 pm
Working fine on demo
check http://demo.civicrm.org/drupal/civicrm/profile/view?reset=1&id=1176&gid=35

kurund
Found this reply helpful? Support CiviCRM

Ilan

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
Re: Front end profile does not show contact's picture
January 07, 2008, 09:18:37 pm
That's strange,

What type of file did you upload, because I uploaded a jpg and it shows the link instead of the image:

http://demo.civicrm.org/drupal/civicrm/profile/view?reset=1&id=1163&gid=35

But besides that, once clicked it does show the picture, so at least now we know that it must be a "bug" in the civicrm joomla frontend version.

So the question now is what do I report, one or two bugs?

Ilan

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Front end profile does not show contact's picture
January 07, 2008, 09:47:51 pm
Ilan:

i checked this on joomla:
http://demo.civicrm.org/joomla/index.php?option=com_civicrm&Itemid=40
http://demo.civicrm.org/joomla/index.php?option=com_civicrm&task=civicrm/profile/view&reset=1&id=975&gid=4

No issues..

I used jpeg and png both seems to work fine for me. Can you try uploading some other jpeg file..

kurund
Found this reply helpful? Support CiviCRM

Ilan

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
Re: Front end profile does not show contact's picture
January 07, 2008, 10:28:15 pm
I uploaded a few images of different sizes and weights (id's form 976 to 983).

All the gif images are shown fine

none of the jpg images are shown (instead the link is shown)

It would be good to find why I can't show jpg images when "kurund" was able, but more intriguing is why at the joomla demo site there is no problem of permissions and in my site there are, what could be wrong with my installation?

Where should I start checking?

Ilan

Ilan

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
Re: Front end profile does not show contact's picture
January 08, 2008, 09:06:09 pm
Is there a way I could see the configuration.php file of the joomla demo site?

I hope to find something different in my installation

Thanks
Ilan

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Front end profile does not show contact's picture
January 08, 2008, 09:38:28 pm
Ilan,

Since you can see gif images correctly, i don't think its some configuration problem. Might be some problem with your jpeg images.

kurund
Found this reply helpful? Support CiviCRM

Ilan

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
Re: Front end profile does not show contact's picture
January 09, 2008, 11:34:38 am
You are right, there must be something wrong with my jpg images, but besides that, I'm only able to see the gifs in the demo site, in our own site the gif image is not displayed (it shows the space for the image and a red X in it), and that is because of the permissions.

I'm thinking that since civicrm is the same than in the demo site, the only differences are the configuration of joomla and the configuration of our server itself.

So since the simplest and fastest thing to check is joomla's configuration file, I was wandering if some one could post it (removing the passowords in it).

Thanks
Ilan

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Front end profile does not show contact's picture
January 09, 2008, 11:42:50 pm
Can you check your, Administer CiviCRM >> Global Settings >> Upload Directories. Make sure its correctly set..

Not sure if it is related to Joomla configuration..

kurund
Found this reply helpful? Support CiviCRM

Ilan

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
Re: Front end profile does not show contact's picture
January 10, 2008, 06:44:05 am
I checked and I guess the settings are fine, since from the administrator panel I can see the gif pictures fine (and the jpg ones after clicking on them).

So is some kind of problem with the front end.

Also if I could overide the security checks for files in civicrm, I would do so.

Ilan

Ilan

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
Re: Front end profile does not show contact's picture
January 27, 2008, 07:41:02 pm
I'm still stuck on this one.

Expecting to find a problem with the installation, I backed up my site, then removed civicrm eliminating all its tables and files, and reinstalled the component, but still the same error, I can't show images at the front page (see first post of this thread).

I really think that could be a problem with my configuration of joomla, maybe someone has access to the config file of the demo site where the images are shown correctly in the front page.

Another option that I can think of, is to hack civicrm to open the security check for uploaded files (in our case the images are always public). Can someone point out to me where the security checks for file display is handled?

Thanks again
Ilan

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Front end profile does not show contact's picture

This forum was archived on 2017-11-26.