每当我运行php testRabbitMQClient.php时,我都会不断收到此未捕获的错误

时间:2019-10-16 05:26:12

标签: php rabbitmq

每次运行php testRabbitMQClient.php

时,我都会不断收到此错误
testRMQClientPHP Fatal error:  Uncaught Error: Call to undefined function getCredentials() in /home/andrew/git/rabbitmqphp_example/testRabbitMQClient.php:20
Stack trace:
\#0 {main}
  thrown in /home/andrew/git/rabbitmqphp_example/testRabbitMQClient.php on line 20
$type = getCredentials($username,$password);

1 个答案:

答案 0 :(得分:0)

您在gulp.task('images', () => { return gulp.src('assets/images/**/*') .pipe($.cache($.imagemin())) .pipe(chown(1000, 82)) .pipe(gulp.dest('public/build/images')); }); 处调用的函数不存在。 据我所知,该函数testRabbitMQClient.php on line 20是一个自定义函数,不属于您所使用的库。如果您尝试直接连接,它将起作用