You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The server responds with an http 500 error status and does not return a session_id. On the server, I see the following error in /var/log/apache2/error.log:
[Tue Dec 17 14:01:49.212696 2024] [php:error] [pid 981:tid 981] [client 192.168.113.4:52174] PHP Fatal error: Cannot declare class LanguageManager, because the name is already in use in /var/www/html/public/legacy/include/SugarObjects/LanguageManager.php on line 50
Possible Fix
To make the login method work and return a session_id I needed to fix the class re-declaration errors in /public/legacy/include/entryPoint.php and json decoding errors in /public/legacy/include/utils.php when clean_incoming_data() processes http rest api request data.
Issue
When I call the
login
api method with the data that url percent encodes:The server responds with an http 500 error status and does not return a
session_id
. On the server, I see the following error in/var/log/apache2/error.log
:Possible Fix
To make the
login
method work and return asession_id
I needed to fix the class re-declaration errors in/public/legacy/include/entryPoint.php
and json decoding errors in/public/legacy/include/utils.php
whenclean_incoming_data()
processes http rest api request data.The changes are in the code fork here.
Steps to Reproduce the Issue
Context
No response
Version
8.7.1
What browser are you currently using?
Chrome
Browser Version
No response
Environment Information
PHP 8.2.26
Operating System and Version
Debian 12.8.0
The text was updated successfully, but these errors were encountered: