I have been helping a client upgrade his Windows 10 suitecrm server from version 7.11.5 to 7.14.2. Everything went well till I upgraded from 7.13.4 with PHP 8.0.30 to 7.14.2, PHP 8.0.30.
I got a warning -
Deprecated: Using php-function âkeyâ as a modifier is deprecated and will be removed in a future release. Use Smarty::registerPlugin to explicitly register a custom modifier. in C:\xampp8-0-30-CRM-7-14\htdocs\suitecrm\vendor\smarty\smarty\libs\sysplugins\smarty_internal_compile_private_modifier.php on line 114
Everything appears to be working fine except if a user searches for a contact and then clicks on the âeditâ icon to make changes to the contactâs details. Then, the user is returned to the XAMPP dashboard with no errors on screen or in the suitecrm error log. However, the following is logged in the PHP error log-
[04-Feb-2024 10:19:07 Europe/Berlin] PHP Warning: sugar_file_put_contents_atomic() : fatal rename failure âC:\xampp8-0-30-CRM-7-14\htdocs\suitecrm\cache\modules\Employees\temFA78.tmpâ â âcache/modules/Employees/Employeevardefs.phpâ in C:\xampp8-0-30-CRM-7-14\htdocs\suitecrm\include\utils\sugar_file_utils.php on line 232
[04-Feb-2024 10:20:14 Europe/Berlin] PHP Warning: sugar_file_put_contents_atomic() : fatal rename failure âC:\xampp8-0-30-CRM-7-14\htdocs\suitecrm\cache\modules\Employees\tem21D.tmpâ â âcache/modules/Employees/Employeevardefs.phpâ in C:\xampp8-0-30-CRM-7-14\htdocs\suitecrm\include\utils\sugar_file_utils.php on line 232
[04-Feb-2024 10:20:14 Europe/Berlin] PHP Warning: sugar_file_put_contents_atomic() : fatal rename failure âC:\xampp8-0-30-CRM-7-14\htdocs\suitecrm\cache\modules\Users\tem24E.tmpâ â âcache/modules/Users/Uservardefs.phpâ in C:\xampp8-0-30-CRM-7-14\htdocs\suitecrm\include\utils\sugar_file_utils.php on line 232
I am not a developer and Iâm not sure where to start troubleshooting this issue. I would be grateful for any suggestions.
Thank you for the suggestion. Editing php.ini does supress the warnings, but clicking the âeditâ next to a contact name still brings up the XAMPP dashboard rather than the contactâs details edit form.
I noticed that there is a new folder âsyspluginsâ in the Smarty folder in suitecrm 7.14.x that wasnât in 7.13, so itâs the suitecrm upgrade that is causing the malfunction.
If I understood you correctly, I deleted Employeevardefs.php and Uservardef.php in the cache directory. Did a search for a contact and tried to edit the contact in the search results, but still ended up with the XAMPP dashboard. The deleted files were indeed regenerated.
Iâm running on a Windows 10 box. Obviously, chmod is inapplicable, but I just set Everyone â Full Access for testingâŚ
The upgrade went without issue, but again, if I try to search for a contact and then try to edit that contact in the returned list, it takes me back to the XAMPP dashboard.