It seems UpiCRM gives this message in the Site Health
A PHP session was created by a session_start() function call. This interferes with REST API and loopback requests. The session should be closed by session_write_close() before making any HTTP requests.
When I deactivate UpiCRM this message is gone and the health is GOOD
So I assume it may be an issue in one of the sessions in UpiCRM
we’re checking this with the dev team.
can you please either here or through our web site – submit the complete error message, including indication of code lines etc ?
Such kind of errors are caused since the WordPress 5.2 and the introduction of a new tool called Site Health.
According to the statement of the WordPress team – WordPress does not use sessions in any way at all. All user states are controlled with cookies.
I use the plugin jQuery Migrate Helper till WordPress 5.6 solves more issues.
However UpiCRM still uses @session_start();
Line 28 of upicrm.php @session_start();
When remarked like //@session_start(); the health is GOOD
However the session referers from line 114 till line 160 are without the session_start, mostly utm referers, which I don’t use.
With jQuery Migrate Helper deprecations appear.
After uploading the changed upicrm.php UpiCRM gives the following errorlist, in my case, 27 lines of
/wp-content/plugins/upi-crm-universal-crm-solution/resources/js/app.js: jQuery.fn.size() is deprecated; use the .length property
Please make sure you are using the latest version of all of your plugins, and your theme. If you are, you may want to ask the developers of the code mentioned in the warnings for an update.
It’s still not certain UpiCRM conflicts this, but with the above mentioned line remarked, the issue disappears.
I hope this will give you an idea ?
@upi After the update of WordPress 5.6 I expected the error would disappears, but it’s still there.
After debugging and unplugging it certainly shows UpiCRM is the problem as mentioned before.
Having same issue (WP 5.7 / PHP 7.3.27) and it is probably really caused by @upi, since I tried to deactivate all the plugins (no issue in Site Health) then activated only UPI (two issues – 1) An active PHP session was detected 2) “The REST API encountered an error”).
Update: I tried to change PHP to 7.4, but the problem remains…
We’ve upgraded a version but it didn’t solve it.
We’re working on it. I hope to release a new version soon.
please see new version 126.96.36.199 – it should fix the REST API bug.
please check and let us know!
I just now saw this thread after submitting a report via the UPI Contact Us form.
I can confirm this issue is still happening with version 188.8.131.52 as well.
I have to use the RESTapi for inbound data. If that’s broken (and I don’t know if it is at this point) then I may need to try to find a different CRM. I really hope that is not the case, because I LOVE everything about this product.
Thank you for attending to this matter.
I also have / had this problem with several UPi CRM Versions.
I solved the problem always by changing in the file upicrm.php line 29 from “@session_start();” into “//@session_start();”.
For my website this workaround works, the site health warning disapppeared and the UPi CRM plugin ist still working without any problems.
The “session_start” problem appeared in UPi CRM version 184.108.40.206 again, after ist was solved in version 220.127.116.11.
I hope this will help to fix the bug for all upcoming versions.