phplist3 icon indicating copy to clipboard operation
phplist3 copied to clipboard

API broken after Update to 3.6.4

Open Steffeng5 opened this issue 4 years ago • 2 comments

After Updating to 3.6.4 the API is not working anymore:

curl --request POST --url https://xxxxx.de/lists/api/v2/sessions --header 'Content-Type: application/json' --data '{"login_name": "admin","password": "xxxxx"}'

results in: <br /> <b>Warning</b>: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in <b>/www/htdocs/XYZ/YYYYY/lists/base/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php</b> on line <b>2636</b><br /> <br /> <b>Warning</b>: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in <b>/www/htdocs/XYZ/YYYYY/lists/base/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php</b> on line <b>2665</b><br /> {"code":500,"message":"Internal Server Error"}

Steffeng5 avatar Sep 01 '21 07:09 Steffeng5

After updating the API was disabled :(

Steffeng5 avatar Sep 01 '21 08:09 Steffeng5

Thanks for reporting this. I will re-open this as this needs attention. But it seems you have notices enabled, which will be good to disable.

But it looks like it's a broken dependency, so we should look into that.

michield avatar Sep 01 '21 08:09 michield