【发布时间】:2021-11-03 05:21:39
【问题描述】:
我最近从旧的 PHP5xx 迁移到 PHP7.4.23 版本,下面是测试 localhost URL 时的错误消息。我可以确认 index.php 已引用包含来自同一文件夹目标的 rightbar.php。如果我删除对 rightbar.php 的引用,那么该网站将完美加载。我不是编码员,但在这方面需要一些很大的帮助。 网站错误:`PHP致命错误:
未捕获的错误:调用未定义的函数 getResultBYkeyword() C:\inetpub\wwwroot\tamilmelisai\rightbar.php:169 堆栈跟踪: #0 C:\inetpub\wwwroot\tamilmelisai\index.php(28): 包含() #1 {main} 在第 169 行的 C:\inetpub\wwwroot\tamilmelisai\rightbar.php 中抛出`
rightbar.php第169行代码如下:
<?php $videoDetailstops = getResultBYkeyword("latest tamil trailers",3); if(count($videoDetailstops)):?>
【问题讨论】:
-
不确定是不是问题,但请检查:
getResultBYkeyword的大小写。Y是大写的。应该是getResultByKeyword? -
谢谢伊万,还是同样的错误。应该是升级PHP的问题,看不懂命令。
标签: php fatal-error uncaught-reference-error