문제

현재 Silverstripe 프로젝트에서 일하고 있으며 모든 것이 부드럽게 실행되는 것 같습니다. 하지만 그런 다음 상황이 바뀌 었습니다. 오늘 아침에 로그인하려고했고 오류가 발생했음을 알려 줬습니다. 개발 모드에서 실행은 다음과 같은 errormessage를주었습니다.

[사용자 오류] 쿼리를 실행할 수 없습니다. "siteTree_Live"를 선택하십시오. "classname", "siteTree_Live" ""생성 ","siteTree_Live "."지속되었다 ", "siteTree_Live". "URLSEGNENT", "SITETREE_LIVE" "TITLE", "siteTree_Live". "menutitle", "siteTree_Live". "콘텐츠", "siteTree_Live". "Metatitle", "siteTree_Live". "Metadescription", "siteTree_Live". "metakeywords", "siteTree_Live". "extrameta", "siteTree_Live". "showinmenus", "siteTree_Live". "showinsearch", "siteTree_Live". "homepagefordomain", "siteTree_Live" "provideComments", "siteTree_Live". "정렬", "siteTree_Live". "hasbrokenfile", "siteTree_Live". "hasbrokenLink", "siteTree_Live". "상태", "siteTree_Live" "ReportClass", "siteTree_Live". "canViewType", "siteTree_Live". "canedittype", "siteTree_Live". "Todo", "siteTree_Live". "버전", "siteTree_Live". "parentid",

읽기 전체 오류 메시지 : http://pastebin.com/trjrezun / P>

... WHERE ("SiteTree_Live"."ClassName" IN ('Page','BlogEntry','BlogTree','DienstHolder','DienstPage','FaqHolder','FaqPage','FrontPage','MemberPage','TeamPage','ErrorPage','RedirectorPage','VirtualPage','UserDefinedForm','BlogHolder')) AND (ParentID = ) ORDER BY "Sort" You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY "Sort"' at line 1 
GET /Security/login?BackURL=%2Fadmin

Line 525 in /home/admin/domains/stargroup.nl/public_html/sapphire/core/model/MySQLDatabase.php
.

나는 빈 클래스 이름에 MySQL을 확인했지만, 일부는 발견되었지만 적절한 클래스 이름을 얻었습니다. 누구 든지이 오류를 극복하고 로그인을 다시 작업하도록 다시 가져 오는 방법에 대한 제안이 있습니까?

사전에 thnx!

도움이 되었습니까?

해결책 2

버그는 SilverStripe IRC 채널에서 Bollig | Designcity 덕분에 고정되어 있습니다.

모든 코드는 페이지에서 몇 가지 코드와 관련이 있어야합니다.

틀린 코드

    function Siblings() { 
       $whereStatement = "ParentID = ".$this->ParentID; 
    return DataObject::get("Page", $whereStatement); 
    }
.

고정 코드 자아에 대한주의 사항 : 항상 이와 같은 작은 실수를 알고 있습니다.

    function Siblings() { 
       $whereStatement = "ParentID = '".$this->ParentID."'"; 
    return DataObject::get("Page", $whereStatement); 
    }
.

다른 팁

게시 된 쿼리의 문제점은 매개 변수 중 하나가 값을 누락 한 것입니다.

AND (ParentID = ) ORDER BY "Sort"
.

SilverStripe를 알지 못하고, 나는 귀하의 기사 / 게시물 중 하나가 어떻게 든 ID 또는 비대화가 누락 된 것으로 추측합니다.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top