정의되지 않은 함수 create_function() 호출
P粉198670603
P粉198670603 2023-11-16 19:00:36
0
1
765

웹사이트 홈페이지에서 다음 메시지를 받았습니다:

치명적인 오류: 잡히지 않는 오류: /customers/7/e/7/jovobytes.be/httpd.www/wp-content/themes/inovado/framework/inc/widgets/custommenu에서 정의되지 않은 함수 create_function()에 대한 호출. php:67 스택 추적: #0 /customers/7/e/7/jovobytes.be/httpd.www/wp-content/themes/inovado/functions.php(39): include_once() #1 /customers/7/ e/7/jovobytes.be/httpd.www/wp-settings.php(566): include('/customers/7/e/...') #2 /customers/7/e/7/jovobytes.be /httpd.www/wp-config.php(96): require_once('/customers/7/e/...') #3 /customers/7/e/7/jovobytes.be/httpd.www/wp- load.php(50): require_once('/customers/7/e/...') #4 /customers/7/e/7/jovobytes.be/httpd.www/wp-blog-header.php(13 ): require_once('/customers/7/e/...') #5 /customers/7/e/7/jovobytes.be/httpd.www/index.php(17): require('/customers/7 /e/...') #6 {main}은 /customers/7/e/7/jovobytes.be/httpd.www/wp-content/themes/inovado/framework/inc/widgets/custommenu.php에 표시됩니다. 67행까지

그래서 테마에 해당하는 파일을 찾아서 PHP 8.0과 호환되도록 코드를 다시 작성해야 했습니다. 어떤 도움이라도 대단히 감사하겠습니다! ! !

으아악


P粉198670603
P粉198670603

모든 응답(1)
P粉921130067

이 매우 구체적인 작업은 다음과 같이 다시 작성할 수 있습니다.

으아아아

그러나 위젯 자체는 이전 스타일의 생성자 구문을 사용하므로 이 구문도 변경해야 합니다.

으아아아

생성자 구문을 본 지 꽤 오래되었기 때문에 더 많은 코드가 깨져도 놀라지 않을 것입니다. 테마/플러그인을 최신 버전으로 업그레이드하거나 PHP 버전을 업그레이드하지 않으세요

.
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!