2017-02-17 19 views
0

私は以前のJoomlaサイトからJReviewsデータベースを移管し、プラグインとの会話にデータベースを接続するのに本当に問題があります。Joomla Unknown column JReviews

ここには3つのエラーページのいずれかが記載されています。私はMySQLをうまく使いこなしていますが、誰かが簡単に修正できて本当に感謝してくれるのであれば、それは本当に混乱しています。

不明な列 'フィールドリスト' の 'Totals.media_count' Listing.listing_id AS SQL = SELECT Listing.id、Listing.slug AS Listing.alias、Listing.title AS Listing.title、Listing.summary AS Listing.introtext、Listing.description AS Listing.fulltext、リストListing.images、AS .images Listing.hits Listing.cat_id AS Listing.catid、Listing.user_id AS Listing.created_by、Listing.author_alias AS Listing.created_by_alias、Listing.created AS Listing.created、Listing.modified AS Listing.modified、Listing.access AS Listing.access、Listing.state、Listing.hits AS AS Listing.state、List.publish_up AS Listing.publish_up、List.publish_down AS Listing.publish_down、リスト.metakey Listing.metakeyListing.metadesc AS Listing.metadesc、Listing.extension AS 'com_content'、Listing.featured AS Field.featured、Listing.listing_type_id AS JreviewsCategory.criteriaid、Category.cat_id AS Category.id、Category.title AS Category.title、Category.slug AS Category.alias、Category.params AS Category.params AS 、Directory.id Directory.title、Directory.title AS Directory.slug AS Directory.dir_id、Directory.desc、User.id AS Claim.approved、合計AS User.email、Claim.approved AS User.username、User.email AS User.name、User.username AS User.user_id、User.name AS .user_rating AS Review.user_rating、Totals.user_rating_count AS Review.user_rating_count、Totals.user_criteria_rating AS Review.user_criteria_rating、合計Review.user_criteria_rating_count AS s.user_criteria_rating_count、Listing.media_count AS Review.review_count AS Totals.user_comment_count、Review.editor_rating AS Totals.editor_rating、Review.editor_rating_count AS Totals.editor_rating_count、Review.editor_criteria_rating AS Totals.editor_criteria_rating、Review.editor_criteria_rating_count AS Totals.editor_criteria_rating_count、Review.editor_review_count AS Totals.editor_comment_count、Totals.media_count、合計。 Listing.video_count_owner、AS - (Totals.video_count_user Totals.video_count)(Totals.photo_count Listing.media_count_owner AS - (Totals.media_count_user Totals.media_count)、VIDEO_COUNT Listing.photo_count AS Totals.photo_count、Listing.audio_count AS Totals.audio_count、Listing.attachment_count AS Totals.attachment_count、Listing.video_count AS - Totals.photo_count_user)AS Listing.photo_count_owner、(Totals.audio_count - Totals.audio_count_user)AS Listing.audio_count_owner(Totals.attachment_count - Totals.attachment_count_user)リストUSEキーとして#__content FROM Listing.attachment_count_user AS Listing.attachment_count_owner AS、AS Listing.media_count_user Totals.media_count_user、Listing.video_count_user AS Totals.video_count_user、Listing.photo_count_user AS Totals.photo_count_user、Listing.audio_count_user AS Totals.audio_count_user、Totals.attachment_count_user (jr_created)LEFT JOIN #__jreviews_listing_totals AS Totals.listing_id = List.id AND Totals.extension = 'com_content' LEFT JOIN #__jreviews_content ASフィールドONフィールド.contentid =リスト.id LEFT JOIN #__jreviews_categories AS JreviewsCategory ON JreviewsCategory.id =リスト.catidとJreviewsCategory。 option = 'com_content'左ジョイン#__categories ASカテゴリON Category.id = Category.extid = 'com_content'左ジョイン#__jreviews_directories ASディレクトリON Directory.id = JreviewsCategory.dirid LEFT JOIN #__users AS User ON User。 id = Listing.created_by LEFT JOIN#__jreviews_claimsはClaimsのリストを要求します。Listing_id = List.idおよびClaim.user_id =リストを作成し、AND Claim.approved = 1 WHERE 1 = 1 AND(Listing .catid IN(9)AND Listing.state > = 0 AND Listing。access IN(1,2,3))ORDER BYリスト。DESC LIMITを作成しました10

+0

ようこそ。あなたはあなたの質問の書式設定に取り組むことができますか?かなり読めません。または、多分それを少し下げてください。あなたの問題を説明するためには、これらすべてのフィールドが本当に必要ですか? – Gray

答えて

0

@Grayは上記のとおりですので、ようこそ。テーブル「#__jreviews_listing_totals」に問題があるようです。このページでCtrl + Fを押して "AS合計"を検索すると、そのテーブルを表すためにエイリアス "合計"がどこにあるかがわかります。その表の構造を見ることなく、なぜエラーが出ているのかはっきりとは分かりませんが、「media_count」というフィールドはその内部に存在しないようです。次のように

+0

"media_count"をテーブル構造体に追加することで上記のエラーを修正できましたが、まだ何百ものエラーがあります。 –

+0

これはアップグレードに関する既知の問題でしたか、アップグレードしたときにのみ発生したエラーですか? –

0

参照先テーブルの構造は次のようになります。

 
CREATE TABLE IF NOT EXISTS `#__jreviews_listing_totals` (
    `listing_id` int(11) NOT NULL, 
    `extension` varchar(50) NOT NULL, 
    `user_rating` DECIMAL(9, 4) NOT NULL, 
    `user_rating_count` int(11) NOT NULL, 
    `user_rating_rank` DECIMAL(9,4) NOT NULL, 
    `user_criteria_rating` text NOT NULL, 
    `user_criteria_rating_count` text NOT NULL, 
    `user_comment_count` int(11) NOT NULL, 
    `editor_rating` DECIMAL(9, 4) NOT NULL, 
    `editor_rating_count` int(11) NOT NULL, 
    `editor_rating_rank` DECIMAL(9,4) NOT NULL, 
    `editor_criteria_rating` text NOT NULL, 
    `editor_criteria_rating_count` text NOT NULL, 
    `editor_comment_count` int(11) NOT NULL, 
    `media_count` int(10) NOT NULL DEFAULT '0', 
    `video_count` int(10) NOT NULL DEFAULT '0', 
    `photo_count` int(10) NOT NULL DEFAULT '0', 
    `audio_count` int(10) NOT NULL DEFAULT '0', 
    `attachment_count` int(10) NOT NULL DEFAULT '0', 
    `media_count_user` int(10) NOT NULL DEFAULT '0', 
    `video_count_user` int(10) NOT NULL DEFAULT '0', 
    `photo_count_user` int(10) NOT NULL DEFAULT '0', 
    `audio_count_user` int(10) NOT NULL DEFAULT '0', 
    `attachment_count_user` int(10) NOT NULL DEFAULT '0', 
    PRIMARY KEY (`listing_id`, `extension`), 
    INDEX `user_rating` ( `user_rating` , `user_rating_count`), 
    INDEX `editor_rating` ( `editor_rating` , `editor_rating_count`), 
    INDEX ( `user_rating_rank`), 
    INDEX ( `editor_rating_rank`), 
    INDEX ( `user_comment_count`), 
    INDEX ( `media_count`), 
    INDEX ( `video_count`), 
    INDEX ( `photo_count`), 
    INDEX ( `audio_count`), 
    INDEX ( `attachment_count`), 
    INDEX ( `media_count_user`), 
    INDEX ( `video_count_user`), 
    INDEX ( `photo_count_user`), 
    INDEX ( `audio_count_user`), 
    INDEX ( `attachment_count_user`), 
    INDEX `user_editor_photo_counts` (`user_comment_count`,`editor_comment_count`,`photo_count`) 
) DEFAULT CHARSET=utf8; 

また、Joomlaの中JReviewsコンポーネントまたはjreviews.sqlでワードプレスでJReviewsのプラグインフォルダにJReviewsのための完全なデータベーススキーマを見つけることができますファイル。

JReviewsの開発者として、私はそれがJoomlaとWordPressの両方にとって非常にうまくサポートされている解決策であることを伝えることができます。積極的なサポートをお持ちのお客様は、当社のウェブサイトでチケットを提出するだけで済みます。

+0

ありがとう、私はこの段階にそれを得ることができた... –

+0

素晴らしい。これを解決策としてマークしてください。 – Alejandro

関連する問題