Answer the question
In order to leave comments, you need to log in
Why does a function connection error occur?
in extensions.php I registered alias for GuzzleHttp. The default_user_agent function is connected, which is located in functions.php. But for some reason it's an error. Why is that? Immediately I will say the version of php 7.4
Answer the question
In order to leave comments, you need to log in
Error because there is no such function in GuzzleHttp.
If you have the default_user_agent() function in the same file where the error is on the screen, then you need to do this:
return $this->default_user_agent() ..........
or
return self::default_user_agent() .... ......
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question