Debug (Versioned::get_latest_version() in line 918 of Versioned.php)

SELECT "SiteTree_versions"."ClassName", "SiteTree_versions"."Created", "SiteTree_versions"."LastEdited", "SiteTree_versions"."URLSegment", "SiteTree_versions"."Title", "SiteTree_versions"."MenuTitle", "SiteTree_versions"."Content", "SiteTree_versions"."MetaTitle", "SiteTree_versions"."MetaDescription", "SiteTree_versions"."MetaKeywords", "SiteTree_versions"."ExtraMeta", "SiteTree_versions"."ShowInMenus", "SiteTree_versions"."ShowInSearch", "SiteTree_versions"."HomepageForDomain", "SiteTree_versions"."ProvideComments", "SiteTree_versions"."Sort", "SiteTree_versions"."HasBrokenFile", "SiteTree_versions"."HasBrokenLink", "SiteTree_versions"."Status", "SiteTree_versions"."ReportClass", "SiteTree_versions"."CanViewType", "SiteTree_versions"."CanEditType", "SiteTree_versions"."ToDo", "SiteTree_versions"."Version", "SiteTree_versions"."Locale", "SiteTree_versions"."ParentID", "Forum_versions"."Abstract", "Forum_versions"."Type", "Forum_versions"."RequiredLogin", "Forum_versions"."ForumViewers", "Forum_versions"."ForumPosters", "Forum_versions"."ForumViewersGroup", "Forum_versions"."ForumPostersGroup", "Forum_versions"."CanAttachFiles", "Forum_versions"."ForumRefreshOn", "Forum_versions"."ForumRefreshTime", "Forum_versions"."ModeratorID", "Forum_versions"."GroupID", "Forum_versions"."CategoryID", "ForumHolder_versions"."HolderSubtitle", "ForumHolder_versions"."ProfileSubtitle", "ForumHolder_versions"."ForumSubtitle", "ForumHolder_versions"."HolderAbstract", "ForumHolder_versions"."ProfileAbstract", "ForumHolder_versions"."ForumAbstract", "ForumHolder_versions"."ProfileModify", "ForumHolder_versions"."ProfileAdd", "ForumHolder_versions"."DisplaySignatures", "ForumHolder_versions"."ShowInCategories", "ForumHolder_versions"."AllowGravatars", "ForumHolder_versions"."ForbiddenWords", CASE WHEN "SiteTree_versions"."ClassName" IN ('AnnouncementPage') THEN "AnnouncementPage_versions"."Date" WHEN "SiteTree_versions"."ClassName" IN ('EtkinlikSayfasi') THEN "EtkinlikSayfasi_versions"."Date" WHEN "SiteTree_versions"."ClassName" IN ('NewsPage') THEN "NewsPage_versions"."Date" ELSE NULL END AS "Date", CASE WHEN "SiteTree_versions"."ClassName" IN ('AnnouncementPage') THEN "AnnouncementPage_versions"."WebUrl" WHEN "SiteTree_versions"."ClassName" IN ('NewsPage') THEN "NewsPage_versions"."WebUrl" ELSE NULL END AS "WebUrl", CASE WHEN "SiteTree_versions"."ClassName" IN ('AnnouncementPage') THEN "AnnouncementPage_versions"."YoutubeUrl" WHEN "SiteTree_versions"."ClassName" IN ('EtkinlikSayfasi') THEN "EtkinlikSayfasi_versions"."YoutubeUrl" WHEN "SiteTree_versions"."ClassName" IN ('NewsPage') THEN "NewsPage_versions"."YoutubeUrl" ELSE NULL END AS "YoutubeUrl", CASE WHEN "SiteTree_versions"."ClassName" IN ('AnnouncementPage') THEN "AnnouncementPage_versions"."VimeoUrl" WHEN "SiteTree_versions"."ClassName" IN ('EtkinlikSayfasi') THEN "EtkinlikSayfasi_versions"."VimeoUrl" WHEN "SiteTree_versions"."ClassName" IN ('NewsPage') THEN "NewsPage_versions"."VimeoUrl" ELSE NULL END AS "VimeoUrl", CASE WHEN "SiteTree_versions"."ClassName" IN ('AnnouncementPage') THEN "AnnouncementPage_versions"."AttachmentID" WHEN "SiteTree_versions"."ClassName" IN ('EtkinlikSayfasi') THEN "EtkinlikSayfasi_versions"."AttachmentID" WHEN "SiteTree_versions"."ClassName" IN ('NewsPage') THEN "NewsPage_versions"."AttachmentID" ELSE NULL END AS "AttachmentID", "ErrorPage_versions"."ErrorCode", "RedirectorPage_versions"."RedirectionType", "RedirectorPage_versions"."ExternalURL", "RedirectorPage_versions"."LinkToID", "VirtualPage_versions"."VersionID", "VirtualPage_versions"."CopyContentFromID", "UserDefinedForm_versions"."SubmitButtonText", "UserDefinedForm_versions"."OnCompleteMessage", "UserDefinedForm_versions"."ShowClearButton", "UserDefinedForm_versions"."DisableSaveSubmissions", "SiteTree_versions"."ID", CASE WHEN "SiteTree_versions"."ClassName" IS NOT NULL THEN "SiteTree_versions"."ClassName" ELSE 'SiteTree' END AS "RecordClassName", "SiteTree_versions"."RecordID", "SiteTree_versions"."Version", "SiteTree_versions"."WasPublished", "SiteTree_versions"."AuthorID", "SiteTree_versions"."PublisherID", "SiteTree_versions"."RecordID" AS "ID" FROM "SiteTree_versions" LEFT JOIN "Forum_versions" ON "Forum_versions"."RecordID" = "SiteTree_versions"."RecordID" AND "Forum_versions"."Version" = "SiteTree_versions"."Version" LEFT JOIN "ForumHolder_versions" ON "ForumHolder_versions"."RecordID" = "SiteTree_versions"."RecordID" AND "ForumHolder_versions"."Version" = "SiteTree_versions"."Version" LEFT JOIN "AnnouncementPage_versions" ON "AnnouncementPage_versions"."RecordID" = "SiteTree_versions"."RecordID" AND "AnnouncementPage_versions"."Version" = "SiteTree_versions"."Version" LEFT JOIN "EtkinlikSayfasi_versions" ON "EtkinlikSayfasi_versions"."RecordID" = "SiteTree_versions"."RecordID" AND "EtkinlikSayfasi_versions"."Version" = "SiteTree_versions"."Version" LEFT JOIN "NewsPage_versions" ON "NewsPage_versions"."RecordID" = "SiteTree_versions"."RecordID" AND "NewsPage_versions"."Version" = "SiteTree_versions"."Version" LEFT JOIN "ErrorPage_versions" ON "ErrorPage_versions"."RecordID" = "SiteTree_versions"."RecordID" AND "ErrorPage_versions"."Version" = "SiteTree_versions"."Version" LEFT JOIN "RedirectorPage_versions" ON "RedirectorPage_versions"."RecordID" = "SiteTree_versions"."RecordID" AND "RedirectorPage_versions"."Version" = "SiteTree_versions"."Version" LEFT JOIN "VirtualPage_versions" ON "VirtualPage_versions"."RecordID" = "SiteTree_versions"."RecordID" AND "VirtualPage_versions"."Version" = "SiteTree_versions"."Version" LEFT JOIN "UserDefinedForm_versions" ON "UserDefinedForm_versions"."RecordID" = "SiteTree_versions"."RecordID" AND "UserDefinedForm_versions"."Version" = "SiteTree_versions"."Version" WHERE ("SiteTree_versions"."RecordID" = 423) AND ("SiteTree_versions"."Locale" = 'tr_TR') ORDER BY "SiteTree_versions"."Version" DESC LIMIT 1

Debug (Versioned::get_latest_version() in line 919 of Versioned.php)

GET /basin-odasi/duyurular/michael-huber-turkiye-ink-academy-uv-murekkepler-hakkinda-bilmek-istedikleriniz/

[User Error] Versioned::get_version: Couldn't get SiteTree.423

GET /basin-odasi/duyurular/michael-huber-turkiye-ink-academy-uv-murekkepler-hakkinda-bilmek-istedikleriniz/

Line 920 in /home/kasadorgox/www/sapphire/core/model/Versioned.php

Source

911 		$query = singleton($class)->buildVersionSQL("\"{$baseTable}\".\"RecordID\" = $id", "\"{$baseTable}\".\"Version\" DESC");
912 		$query->limit = 1;
913 		$record = $query->execute()->record();
914 		if(!$record) return;
915 		
916 		$className = $record['ClassName'];
917 		if(!$className) {
918 			Debug::show($query->sql());
919 			Debug::show($record);
920 			user_error("Versioned::get_version: Couldn't get $class.$id", E_USER_ERROR);
921 		}
922 
923 		Versioned::set_reading_mode($oldMode);
924 
925 		return new $className($record);
926 	}

Trace