I have a local installation of sugarcrm. i can archive attachments to the notes section and the file appears in the cache/upload/ folder as say e.g. e4dcddef-409a-c48b-5244-4d2d809b2a82
when i go to download the attachment from viewing the note record it attempts to load this url http://server/crm/index.php?entryPoi...a82&type=Notes and rather than downloading the attachment just redirects me to the home screen.
The attachment is in the uploads folder and when i rename the file to say e4dcddef-409a-c48b-5244-4d2d809b2a82.png it opens up fine just unable to download from sugar.
how can i go about troubleshooting this issue? or trace the issue in the download entry point
i have attached the error log for viewing the note record and attempting to download it.
I do not know when this stopped working, so i cannot determine if a logic hook or some other customisation might have caused it.
I have tried downloading the document from the account that uploaded it as well as uploaded many using the admin account. i have done a quick repair and rebuild.
UPDATE:
I delete \custom\include\MVC\Controller\entry_point_registr y.php which i created a while back to allow some ajax to work in some of the modules eg looking up a postcode database. the code inside the entry point file above was:
$entry_point_registry = array(
'get_suburb' => array('file' => 'get_suburb.php', 'auth' => true),
'get_steps' => array('file' => 'get_steps.php', 'auth' => true),
'get_contact' => array('file' => 'get_contact.php', 'auth' => true),
'get_account' => array('file' => 'get_account.php', 'auth' => true),
);
When i delete the entry_point_registry.php file my problem above with download attachments is fixed. Is there a reason why the above entry_point_registry.php code would have this effect? - by using the $entry_point_registry am i erasing the existing entry points and thus the download entry point?


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks