Missing all product images

Hi,

Since uptade to 7.10.9 the product images are not being displayed neither in product module or when I print a quote using PDF Template.

PHP version: 5.6.30

I have tried to do a “Quick Repair and Rebuild” and at the end I can see the message “Database tables are synced with vardefs”

no error on suitecrm.log

Does anybody have a clue about this?

Thanks.

David

I think this is a known issue where the URL’s for the images get a “type=account” for example, when they should be “type=products” or something. The wrong module gets inserted there, I believe it’s the parent module.

https://github.com/salesagility/SuiteCRM/issues/6511

You can confirm it by paying attention to the URL and then switching it to something that works, and you should see your image.

Hi pgr,

Maybe is related with the bug you’ve mentioned, but can’t be solved as you suggest, for example when I go to the product (into the products module) I can’t see the image and the code is like this:

<div class="col-xs-12 col-sm-10 detail-view-field inlineEdit" type="varchar" field="product_image" colspan="3">
<span id="product_image" class="sugar_field"><img src="http://crm.prof-it.me/upload/GrandstreamGXP2140.JPG"></span>
<div class="inlineEditIcon col-xs-hidden">
<span class="suitepicon suitepicon-action-edit"></span>
</div>
</div>

As you can see there is no type parameter to change.

And the other problem is on quotes module, when I print the quote to a PDF, the PDF document lack the images.

Should I open a issue?.

Regards.

David

My way so easily then ! go to UPLOAD folder at root --> find out .htaccess file --> delete or rename (this would work for you!)

Try it !

I don’t know about that htaccess solution, never tried it, but I do agree it must be a problem with permissions or web server access. You should first determine which case it is, and then do the appropriate fix.

Apart from making sure your system is well set up in terms of ownership and permissions, you should check your default_permissions array in config.php.

Hi,

@hoasenvang7799, I delete …upload/.htaccess file and create it again like this:

Order Deny,Allow
Deny from all
<Files ~ "(?i)\.(png|jpg|jpeg|bmp)$">
   allow from all
</Files>

Did a quick repair, didn’t work. Then delete the file, quick repair again and it still is not working.

@pgr, this is my default_permissions array:

  'default_permissions' =>
  array (
    'dir_mode' => 1517,
    'file_mode' => 420,
    'user' => 'apache',
    'group' => 'apache',
  ),

All the files into uploads folder are like this:

-rwxrwxr-x  1 apache apache 206K Jun 26 18:00 018FE560-39F2-61BC-AD89-BFE3D4608B23_X6.png*

Is this correct or not?

Also I’ve noticed that I have a PDF template with static images, and there are some images that are being printed into the PDF and others not, I havent found a difference, the permissions are the same, and both images are jpg.

I can’t find a reason why one is being displayed and the other one not.

Thanks.

David, that all looks ok.

I don’t have to touch any htaccess, though, to get this to work on my system. Maybe there is something peculiar about your set up.