How to remove the xPDO error::getService \ modRestCurlClient::__construct

modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.

modRestClient has been removed in MODX 3:


One of your installed extras still seems to use this class.
Try to find out what extra this is and check if there is a newer version available, that replaced modRestClient.

good evening. I use modx 2. I can’t imagine how to find out what modRestClient is

If you still use MODX 2.x, you can ignore the log message. It’s just a deprecation warning.

When upgrading to MODX 3, make sure that all extras using modRestClient have been updated to work with MODX 3.

modRestClient allows to make a request to an API in PHP. It’s used for example by the MODX core to query available extras, and by FormIt for the “spam” hook.