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.