Uncaught Error: Class "Relay\Relay" not found #14
-
DescriptionInstalled Relay, added the following to wp-config.php
Everything seemed to be working until running wp-cli
Expected BehaviorThere shouldn't be an error. Actual BehaviorThere's an error. Possible FixSteps to Reproduce
Additional contextEnvironment
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Your PHP version doesn't have Relay installed (or not loaded), otherwise the class would exist. Follow the installations instructions: https://relay.so/docs/installation |
Beta Was this translation helpful? Give feedback.
-
If anyone else stumbles upon this, php-relay was installed for php-fpm for PHP 7.4. The default php-cli version was set to PHP 8.0, which is what wp-cli was using, hence the error. @tillkruss would using try and then catch be a safer way of handling this? Versus a fatal error? Or does that not make sense at all in those case? |
Beta Was this translation helpful? Give feedback.
Your PHP version doesn't have Relay installed (or not loaded), otherwise the class would exist.
Follow the installations instructions: https://relay.so/docs/installation