Issue #3226901 by chmez: Log-file location
Problem
Try to create a log file in the read-only file system on some hostings.
Solution
Use directory for tokens file.
Issue tracker
- https://www.drupal.org/project/zoho_crm_integration/issues/3226901
- https://getopensocial.atlassian.net/browse/YANG-6120
How to test
-
Deploy site on the Platform.sh hosting. -
When you fill in fields on the "Zoho CRM Integration Settings" page and press "Save configuration" then you should see the following error:
Warning: fopen(/app/ZCRMClientLibrary.log): failed to open stream: Read-only file system in zcrmsdk\crm\utility\Logger::writeToFile() (line 19 of /app/vendor/zohocrm/php-sdk-archive/src/crm/utility/Logger.php).
Edited by Oleksandr Horbatiuk