centos6 -> centos7, php5 -> php7 업그레이드 후 에러코드 처리
사이트명 mathedu4.com
centos6에서 돌리던 학습동영상 홈페이지를 centos7으로 시스템 업그레이드 후 에러가 마구 나옵니다.
나름 한다고 했으나 역부족이라 의뢰 합니다.
에러는 다음과 같습니다.
Deprecated: Non-static method Utility::set_session() should not be called statically in /home/mathedu4/public_html/classes/Page.class.php on line 60
Fatal error: Uncaught Error: Call to undefined function session_register() in /home/mathedu4/public_html/classes/Utility.class.php:398 Stack trace: #0 /home/mathedu4/public_html/classes/Page.class.php(60): Utility::set_session('cart_sess', NULL) #1 /home/mathedu4/public_html/index.php(11): Page->__construct() #2 /home/mathedu4/public_html/index.php(127): IndexPage->__construct() #3 {main} thrown in /home/mathedu4/public_html/classes/Utility.class.php on line 398
mathedu1.com 은 centos6 서버이고 정상입니다.
mathedu4,com 은 centos7 서버입니다. 에러방출하고 있습니다.
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 2개
에러 메시지는, warning이 안 나오게 처리하는 것,
이 부분을 참고하시고
session_register()함수는 다음을 참고하시고
https://www.php.net/manual/ro/function.session-register.php
그래도 힘드시면 rolojy@nate.com 연락주세요.
상담을 원하시면 010-9588-3757 연락 주시기 바랍니다.
상담 후 비용과 제작기간을 안내 드리겠습니다.
항상 고객님과 함께 소통 하면서 운영하는 유지보수 전문회사 웹솔드와 함께하시기 바랍니다.