A
A
Alexander Verbitsky2021-09-04 17:13:36
Yii
Alexander Verbitsky, 2021-09-04 17:13:36

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
61337e87d7ca2474669120.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-09-10
@tomclancys

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 question

Ask a Question

731 491 924 answers to any question