Hello,
After upgrading PHP on my server (from 7.4 to 8.2), my CouchCMS site stopped working and displayed this error:
Fatal error: DISEVAL - Use of eval is forbidden in one of the CMS PHP files on line 1
The issue appears to be caused by the use of the `eval()` function, which is now commonly disabled in shared hosting environments for security reasons.
**Questions:**
- Is there an official or recommended way to replace `eval()` in this case?
- Has CouchCMS released an update or patch that removes `eval()` usage?
- What’s the best approach to remain compatible with hosting environments where `eval()` is disabled?
Any help or suggestions would be greatly appreciated.
Thanks!
After upgrading PHP on my server (from 7.4 to 8.2), my CouchCMS site stopped working and displayed this error:
Fatal error: DISEVAL - Use of eval is forbidden in one of the CMS PHP files on line 1
The issue appears to be caused by the use of the `eval()` function, which is now commonly disabled in shared hosting environments for security reasons.
**Questions:**
- Is there an official or recommended way to replace `eval()` in this case?
- Has CouchCMS released an update or patch that removes `eval()` usage?
- What’s the best approach to remain compatible with hosting environments where `eval()` is disabled?
Any help or suggestions would be greatly appreciated.
Thanks!