1

我最近从旧的 PHP5xx 迁移到 PHP7.4.23 版本,下面是测试 localhost URL 时的错误消息。我可以确认 index.php 已引用包含来自同一文件夹目标的 rightbar.php。如果我删除对 rightbar.php 的引用,那么该网站将完美加载。我不是编码员,但在这方面需要一些很大的帮助。网站错误:`PHP致命错误:

未捕获的错误:调用 C:\inetpub\wwwroot\tamilmelisai\rightbar.php:169 中未定义的函数 getResultBYkeyword() 堆栈跟踪:#0 C:\inetpub\wwwroot\tamilmelisai\index.php(28): include() # 1 {main} 在第 169 行的 C:\inetpub\wwwroot\tamilmelisai\rightbar.php 中抛出`

rightbar.php 的第 169 行代码如下:

<?php $videoDetailstops = getResultBYkeyword("latest tamil trailers",3); if(count($videoDetailstops)):?>
                  
4

1 回答 1

0

经过大量试验和错误后,即使我不是编码员,下面也是我制定的解决方案。感谢所有查看查询并做出回应的人。形成这个:

<?php $videoDetailstops = getResultBYkeyword("latest tamil trailers",3); if(count($videoDetailstops)):?>

对此:

<?php if (isset ($videoDetailstops) && $videoDetailstops = getResultBYkeyword("latest tamil trailers",3));?>
于 2021-09-13T06:48:23.580 回答