In studio i add image field to account and contact. Field did show up and i can upload image.
But image i not showing in detail view.
Console give me Failed to load resource: the server responded with a status of 500 (Internal Server Error) for image url.
However, that would be only for subpanels, not for detail views like in your case. And your URL seems to correctly include the âtype=Contactsâ part.
Have you checked file permissions for the folder and image file? Maybe itâs simply not getting access to the file.
What browser are you using? Can you try with another? There was also a bug that images werenât showing in Edge browser and IE. (but that one is supposedly fixed now)
Now that I think of it, error 500 is not a missing file (like it would get if it was a permissions problem), itâs an internal error, so you should be able to check your logs and see what going wrong.
Thatâs
suitecrm.log
on the root of your SuiteCRM install
and
php_errors.log
that you have to turn on in your php.ini to make it work. Google has plenty of pages explaining how to do it.
Call to undefined function mime_content_type() in /home/domain/public_html/crm/download.php on line 174
and in sugarcrm.log
Thu Jul 28 15:35:32 2016 [804595][-none-][FATAL] Query Failed: SELECT id FROM aow_workflow WHERE aow_workflow.flow_module = âACLActionsâ AND aow_workflow.status = âActiveâ AND (aow_workflow.run_when = âAlwaysâ OR aow_workflow.run_when = âOn_Saveâ OR aow_workflow.run_when = âCreateâ) AND aow_workflow.deleted = 0 : MySQL error 1146: Table âdomain_crm.aow_workflowâ doesnât exist
Do those errors match the moments when you refresh the page? (I just want to make sure because itâs easy to go chasing wrong clues from the logs, but it wonât help muchâŚ)
And do you have php_errors.log? The one you set up in php.ini.
I investigated your error and it seems that a call to mime_content_type() was recently added to that location (to fix that Edge bug I mentioned!) but that function is deprecated in some versions of PHP (like 5.5) but now is un-deprecated in PHP 7.0! Which version of PHP do you have?
Update
When i remove fix in download.php I can see image.
// Fix for issue 1506 and issue 1304 : IE11 and Microsoft Edge cannot display generic âapplication/octet-streamâ (which is defined as âarbitrary binary dataâ in RFC 2046).
So it seems that fix broke image display and should be corected.
But with all this deprecating and un-deprecating itâs understandable that the fix was tested correctly but now turns out to be problematic for some setups.
Maybe you could open an issue in SuiteCRMâs Github explaining all this?
What OS are you working from? If it is Windows this is more likely down to the PHP package you installed. We had a very similar issue which was resolved by checking your PHP installation if it has fileinfo included - which fo some reason some Windows packages did not.
Hello,
I have the same problem in custom modules on Linux (Mysql, PHP 5.6).
SuIte 7.5.1
FireFox report its Broken Images, in Upload folder have file with same name as in link.
Link:
index.php?entryPoint=download&id=b74cdb47-6355-70d5-d011-57c7f2cb70fc_foto01&type=BDON
dont loaded.
Steps with Q repair & rebuild and other well done, but dont took a result.
Plz help, i have only one week to finish this module.
Thank you.
@Yug, do you have the same errors in the logs (and browser console) as the original poster? I just want to make sure weâre seeing the exact same issue. Thanks.