My PHP scripts to add user are working fine. No error whatsoever! But I don't get the user added even when I get 'User added' message and no error. I can clear the Local Cache but if I use the link in administration, I get 'Error 500: Error while clearing the cache'. WhenI click on Rebuild I get exactly same error. What is the problem? When I check in the EspoCRM error log, I get the following and I need help on that!
[2018-08-21 09:25:07] Espo.WARNING: E_WARNING: unlink(data/cache/templates/note-post-email-subject.php): Permission denied {"code":2,"message":"unlink(data/cache/templates/note-post-email-subject.php): Permission denied","file":"/home/twashuka/public_html/timsonline/application/Espo/Core/Utils/File/Manager.php","line":587,"context":{"dirPath":"data/cache/templates","removeWithDir":true,"fileList":["note-post-email-body.php","note-post-email-subject.php"],"result":0,"file":"note-post-email-subject.php","fullPath":"data/cache/templates/note-post-email-subject.php"}} []
[2018-08-21 09:25:07] Espo.ERROR: API [POST]:/Admin/clearCache, Params:Array ( ) , InputData: - Error while clearing cache [] []
[2018-08-21 09:25:07] Espo.ERROR: Display Error: Error while clearing cache, Code: 500 URL: /timsonline/api/v1/Admin/clearCache [] []
[2018-08-21 09:25:12] Espo.WARNING: E_WARNING: unlink(data/cache/templates/note-post-email-body.php): Permission denied {"code":2,"message":"unlink(data/cache/templates/note-post-email-body.php): Permission denied","file":"/home/twashuka/public_html/timsonline/application/Espo/Core/Utils/File/Manager.php","line":587,"context":{"dirPath":"data/cache/templates","removeWithDir":true,"fileList":["note-post-email-body.php","note-post-email-subject.php"],"result":true,"file":"note-post-email-body.php","fullPath":"data/cache/templates/note-post-email-body.php"}} []
[2018-08-21 09:25:12] Espo.WARNING: E_WARNING: unlink(data/cache/templates/note-post-email-subject.php): Permission denied {"code":2,"message":"unlink(data/cache/templates/note-post-email-subject.php): Permission denied","file":"/home/twashuka/public_html/timsonline/application/Espo/Core/Utils/File/Manager.php","line":587,"context":{"dirPath":"data/cache/templates","removeWithDir":true,"fileList":["note-post-email-body.php","note-post-email-subject.php"],"result":0,"file":"note-post-email-subject.php","fullPath":"data/cache/templates/note-post-email-subject.php"}} []
[2018-08-21 09:25:12] Espo.ERROR: API [POST]:/Admin/rebuild, Params:Array ( ) , InputData: - Error while clearing cache [] []
[2018-08-21 09:25:12] Espo.ERROR: Display Error: Error while clearing cache, Code: 500 URL: /timsonline/api/v1/Admin/rebuild [] []
Please senior programmers I need help... client will kill me!
[2018-08-21 09:25:07] Espo.WARNING: E_WARNING: unlink(data/cache/templates/note-post-email-subject.php): Permission denied {"code":2,"message":"unlink(data/cache/templates/note-post-email-subject.php): Permission denied","file":"/home/twashuka/public_html/timsonline/application/Espo/Core/Utils/File/Manager.php","line":587,"context":{"dirPath":"data/cache/templates","removeWithDir":true,"fileList":["note-post-email-body.php","note-post-email-subject.php"],"result":0,"file":"note-post-email-subject.php","fullPath":"data/cache/templates/note-post-email-subject.php"}} []
[2018-08-21 09:25:07] Espo.ERROR: API [POST]:/Admin/clearCache, Params:Array ( ) , InputData: - Error while clearing cache [] []
[2018-08-21 09:25:07] Espo.ERROR: Display Error: Error while clearing cache, Code: 500 URL: /timsonline/api/v1/Admin/clearCache [] []
[2018-08-21 09:25:12] Espo.WARNING: E_WARNING: unlink(data/cache/templates/note-post-email-body.php): Permission denied {"code":2,"message":"unlink(data/cache/templates/note-post-email-body.php): Permission denied","file":"/home/twashuka/public_html/timsonline/application/Espo/Core/Utils/File/Manager.php","line":587,"context":{"dirPath":"data/cache/templates","removeWithDir":true,"fileList":["note-post-email-body.php","note-post-email-subject.php"],"result":true,"file":"note-post-email-body.php","fullPath":"data/cache/templates/note-post-email-body.php"}} []
[2018-08-21 09:25:12] Espo.WARNING: E_WARNING: unlink(data/cache/templates/note-post-email-subject.php): Permission denied {"code":2,"message":"unlink(data/cache/templates/note-post-email-subject.php): Permission denied","file":"/home/twashuka/public_html/timsonline/application/Espo/Core/Utils/File/Manager.php","line":587,"context":{"dirPath":"data/cache/templates","removeWithDir":true,"fileList":["note-post-email-body.php","note-post-email-subject.php"],"result":0,"file":"note-post-email-subject.php","fullPath":"data/cache/templates/note-post-email-subject.php"}} []
[2018-08-21 09:25:12] Espo.ERROR: API [POST]:/Admin/rebuild, Params:Array ( ) , InputData: - Error while clearing cache [] []
[2018-08-21 09:25:12] Espo.ERROR: Display Error: Error while clearing cache, Code: 500 URL: /timsonline/api/v1/Admin/rebuild [] []
Please senior programmers I need help... client will kill me!
Comment