PHP вызов к неопределенной функции $ name = call_user_funcPhp

Кемеровские программисты php общаются здесь
Ответить
Anonymous
 PHP вызов к неопределенной функции $ name = call_user_func

Сообщение Anonymous »

Привет, у меня есть эта проблема, но я не выяснил, почему
Ошибка: вызов к неопределенной функции wachat () в /home/hexahos4/public_html/modules/addons/wachat/classs/wachatgateway.php:112
stack: prace: < * p> p>
p> psgre>
prace: < * p> prace: < * p> prace: prace:
prace: < * p> prace. /home/hexahos4/public_html/modules/addons/wachat/controller/whatsappconfig.php(70):wachatgateway::gatewaylist()образно WhatsAppConfig-> index ()
#2 /home/hexahos4/public_html/modules/addons/wachat/wachat.php(156):Require('/home/hexahos4/...') /home/hexahos4/public_html/lakonage/addonmodules.php(0): wachat_output (массив)
#4 {main}
93. public static function GatewayList()
94. {
95. if(!function_exists("moduleConfigFieldOutput")) {
96. require_once ROOTDIR . "/includes/modulefunctions.php";
97. }
98. if(is_dir(ROOTDIR . "/modules/addons/wachat/classes/")) {
99. $handle = opendir(ROOTDIR . "/modules/addons/wachat/gateways/");
100. $return_array = [];
101. while ($file = readdir($handle)) {
102. $file = str_replace(".php", "", $file);
103. if($file != "index") {
104. $modfilename = ROOTDIR . "/modules/addons/wachat/gateways/" . $file . ".php";
105. if(is_file($modfilename)) {
106. if(!function_exists("gateway_" . $file . "_send")) {
107. require $modfilename;
108. }
109. if(function_exists("gateway_" . $file . "_send")) {
110. $name = $file;
111. if(function_exists("gateway_" . $file . "_name")) {
112. $name = call_user_func("gateway_" . $file . "_name")();
113. }
114. $return_array[$file] = $name;
115. }
116. }
117. }
118. }
119. return $return_array;
120 }
121. }

gateway wachat.php


Подробнее здесь: https://stackoverflow.com/questions/796 ... -user-func
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Php»