Q&A

php 관련된 에러 질문입니다 ㅠㅠ

2023.03.31 10:48
39,894
0
CMS/프레임워크 XE 1.x
개발 언어 PHP 7.2
문제 페이지 주소 비공개 (작성 후 5일 경과)

라이믹스 설치를 위해 php버전을 5.XX에서 7.24로 업데이트하였습니다.

(미리내 호스팅 사용중이며, 7이상 버전이 7.24를 서비스한다고 하네요)

 

그랬더니 메인페이지는 500 에러 코드가 하위 페이지는 404가 뜹니다.

검색했더니 https://xetown.com/questions/1447115 가 떠서

이글대로 해봐도 여전히 잘 안되는거 같네용.. 다른 방법이 있을까용 ㅠㅠ 

 

(제 홈페이지는 bundesmania.com/xe 입니다)

댓글 10

  • 2023.03.31 10:57 #1754901

    1680260048756.png.jpg

    에러로그입니다 ㅠㅠ

  • 2023.03.31 10:58 #1754906
    파일에 권한이 없다고 뜨는것 같네요..
  • 2023.03.31 11:29 #1754916
    Audit 부분은 무시할수 있어 보이고 실제 오류는 Object 관련 오류인것 같습니다.
    XE 최신버전 기준 BaseObject 문제가 패치되었으니... 구버전 사용중이신것 같습니다.
    XE 마지막 버전(1.11.6) 덮어씌우기 설치하시고 발생하는 문제점을 수정하시면 됩니다.

    타운이나 구글에 XE Object 문제라고 검색하시면 더 많은 정보를 얻으실수 있습니다.
  • 2023.03.31 14:09 #1754932

    네 xe를.1.6버전을 사용하고 있었습니다. 그래서 php업데이트해서 xe1.11.6버전을 설치한 뒤에 라이믹스를 설치할려고 했는데.. 홈페이지가 맛탱이가 가버려서 ㅠㅠ 일단 홈페이지가 열려야 덮어씌우기라도 할텐데요 ㅠㅠ

  • 2023.03.31 14:16 #1754937

    그냥 FTP로 1.11.6 덮어씌우세요. 홈페이지가 안 열려도 FTP는 사용할 수 있잖아요.
    위에 올려주신 에러를 보면, 일단 덮어씌워야 홈페이지가 열릴 겁니다.

  • 2023.04.02 11:51 #1755171
    1.11.6으로 덮어서 새로운 에러코드가 발생하였습니다.

    [Sun Apr 02 19:36:41.119959 2023] [php7:error] [pid 15704] [client 154.30.59.114:59375]

    PHP Fatal error: Uncaught Error: Class 'Object' not found in /web/home/chan999/html/xe/modules/loginlog/loginlog.controller.php:147nStack trace:n#0 /web/home/chan999/html/xe/classes/module/ModuleHandler.class.php(1337): loginlogController->triggerBeforeModuleInit()n#1 /web/home/chan999/html/xe/classes/module/ModuleHandler.class.php(399): ModuleHandler->triggerCall()n#2 /web/home/chan999/html/xe/index.php(57): ModuleHandler->init()n#3 {main}n thrown in /web/home/chan999/html/xe/modules/loginlog/loginlog.controller.php on line 147, referer: http://bundesmania.com/

    인데 찾아서 하나씩 하면 될까요..? ㅠㅠ
  • 2023.04.02 12:57 #1755177

    코어의 오류는 해결된 것 같으니, 이제 설치된 모듈 중 loginlog 모듈처럼 Object를 사용하는 오래된 것들을 모두 BaseObject로 찾아바꾸기 하시면 됩니다. XE BaseObject 오류라고 검색해 보시면 많이 나와요. 위젯도 가끔 오류나는 것이 있고요.

  • 2023.04.02 17:29 #1755198

    일단 메인페이지는 다시 살렸습니다 감사합니다.
    하위페이지가 열리지 않는 404를 이제 만났습니다.. ㅠㅠ

     

    [Mon Apr 03 02:49:59.054511 2023] [php7:error] [pid 28014] [client 158.101.151.135:57214] script '/web/home/chan999/html/style.php' not found or unable to stat, referer: www.google.com

    [Mon Apr 03 02:50:28.942313 2023] [php7:warn] [pid 28180] [client 2.248.149.129:42766] PHP Warning:  Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0, referer: http://bundesmania.com/xe/index.php?mid=fuss&l=mn&liststyle=viewer&m=0&order_type=asc&sort_index=readed_count&page=8&act=dispBoardWrite

  • 2023.04.03 12:08 #1755267

    서브페이지에서 모두 404 오류가 뜬다면 rewrite 문제일 가능성이 높습니다. 코어에 포함된 .htaccess 파일이 정상적으로 업로드되었는지 확인해 보세요. 파일명이 점으로 시작하는 바람에 누락되는 경우가 은근히 많아요.

     

    도메인/xe/게시판/글번호 형태의 주소는 404 오류가 뜨는데

    도메인/xe/index.php?mid=게시판&document_srl=글번호 형태로 바꿨을 때 정상 접속이 된다면

    빼박 rewrite 문제입니다.

  • 2023.04.04 05:28 #1755326
    빼박 rewrite 문제네용... 일단 .htaccess를 확인하고 다시 업로드하였는데

    RewriteEngine On

    # deny access to files that may contain sensitive information
    RewriteRule ^(.*/)?\.(editor|git|ht|jshint|travis) - [L,F]
    RewriteRule ^(codeception(.*)\.yml|composer(.*)\.(json|lock)|package\.json)$ - [L,F]
    RewriteRule ^files/(attach|config|cache/store)/.+\.(ph(p|t|ar)?[0-9]?|p?html?|cgi|pl|exe|(a|j)sp|inc)$ - [L,F]
    RewriteRule ^files/(env|member_extra_info/(new_message_flags|point))/ - [L,F]

    # reserve XE Layout Template Source File (*.html)
    RewriteRule ^(layouts|m.layouts|files/faceOff)/(.+)\.html$ - [L,F]
    # reserve XE Template Source Files (*.html)
    RewriteCond %{REQUEST_URI} !/modules/editor/
    RewriteRule /(skins|m.skins)/(.+)\.html$ - [L,F]

    # conf, query, schema
    RewriteRule ^(modules|addons|widgets)/(.+)/(conf|queries|schemas)/(.+)\.xml$ ./index.php [L]

    # static files
    RewriteCond %{SCRIPT_FILENAME} !-f
    RewriteRule ^(.+)/files/(member_extra_info|attach|cache|faceOff)/(.*) ./files/$2/$3 [L]
    RewriteCond %{SCRIPT_FILENAME} !-f
    RewriteRule ^(.+)/(files|modules|widgets|widgetstyles|layouts|m.layouts|addons)/(.*) ./$2/$3 [L]

    # rss , blogAPI
    RewriteRule ^(rss|atom)$ ./index.php?module=rss&act=$1 [L]
    RewriteRule ^([a-zA-Z0-9_]+)/(rss|atom|api)$ ./index.php?mid=$1&act=$2 [L]
    RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/(rss|atom|api)$ ./index.php?vid=$1&mid=$2&act=$3 [L]

    # trackback
    RewriteRule ^([0-9]+)/(.+)/trackback$ ./index.php?document_srl=$1&key=$2&act=trackback [L]
    RewriteRule ^([a-zA-Z0-9_]+)/([0-9]+)/(.+)/trackback$ ./index.php?mid=$1&document_srl=$2&key=$3&act=trackback [L]
    RewriteRule ^([a-zA-Z0-9_]+)/([0-9]+)/(.+)/trackback$ ./index.php?vid=$1&document_srl=$2&key=$3&act=trackback [L]
    RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/([0-9]+)/(.+)/trackback$ ./index.php?vid=$1&mid=$2&document_srl=$3&key=$4&act=trackback [L]

    # document permanent link
    RewriteRule ^([0-9]+)$ ./index.php?document_srl=$1 [L,QSA]

    # mid link
    RewriteCond %{SCRIPT_FILENAME} !-d
    RewriteRule ^([a-zA-Z0-9_]+)/?$ ./index.php?mid=$1 [L,QSA]
    # mid + document link
    RewriteRule ^([a-zA-Z0-9_]+)/([0-9]+)$ ./index.php?mid=$1&document_srl=$2 [L,QSA]

    # vid + mid link
    RewriteCond %{SCRIPT_FILENAME} !-d
    RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/?$ ./index.php?vid=$1&mid=$2 [L,QSA]
    # vid + mid + document link
    RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/([0-9]+)$ ./index.php?vid=$1&mid=$2&document_srl=$3 [L,QSA]

    # mid + entry title
    RewriteRule ^([a-zA-Z0-9_]+)/entry/(.+)$ ./index.php?mid=$1&entry=$2 [L,QSA]
    # vid + mid + entry title
    RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/entry/(.+)$ ./index.php?vid=$1&mid=$2&entry=$3 [L,QSA]

    #shop / vid / [category|product] / identifier
    RewriteCond %{SCRIPT_FILENAME} !-f
    RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/([a-zA-Z0-9_\.-]+)$ ./index.php?act=route&vid=$1&type=$2&identifier=$3 [L,QSA]

    말씀하신것처럼 도메인/xe/index.php?mid=게시판&document_srl=글번호 형태로만 열리니..
    검색해보니 라이믹스 상태에서의 rewrite 문제만 뜨니.. ㅠㅠ
    구글은 아파치로 붙인 rewrite글만 보이고.. 슬픕니다.. ㅠㅠ