在Joomla 2.5(1.6以來,所有版本)有一個用戶表# __assets,很大程度上是無形的,但如果資產值不當可能會導致嚴重的問題對你的網站。本文檔是要給解釋如何診斷一個資產問題然后一個方法解決它。這是最有可能發生由于從1.5版本升級過來的Joomla網站。
root
components
categories
articles
根應該記錄1和具有parent_id 0,0級。應該是唯一一項具有parent_id 0,0。
組件應該parent_id 1(根是父母)和1水平。
類別可以嵌套,但你的頂級類別應該有一個匹配的parent_id asset_id組件的一部分。他們應該有一個水平的
子類應該父母類別作為父母,3,4,5之類的價值為您的類別結構是有意義的。
如果你有一個類別的小于2(0,1)那你的assets表將破損。
文章應該有一個水平的不少于3但實際上他們應該大于一個類別。如果你有一篇文章的水平小于3(0,1,2)你有一個破碎的assets表。
如果你有任何文章或類別的資產表然后你有一個破碎的assets表。
修復Assets表
如果你已經確定,assets表是不正確的,你可以采取以下步驟來修復。
遵循這個過程您希望使用批量處理部件管理器頁面底部的文章。
去重建一個分類. 這將重建類別assets并確保任何正確嵌套的子類別。
看看你的內容,在做任何其他事情之前, 看看你的回收站中刪除的文章. 請參見下面的note刪除如果你有麻煩。
為每個分類,創建一個空分類調取臨時category名稱.
移動(do not copy) 這一類的文章到這個臨時category名稱 category.
(Note that you can change the number of items to All in the pagination drop down so that you can do this in one big step).
不要刪除這個分類
當你所有的文章,把他們移回正確的類別。
在這一點上你的表應該是正確的,除非你有其他問題。
Troubleshooting
If you get a message that says you have duplicate aliases and therefore cannot copy it means just that—you have duplicate aliases. You will need to find them and make them unique. You can do this in your database or by trial and error.
If you have trashed items you cannot delete, check to see if they have asset ids (that their value of asset_id in the content table is in the assets table).
Here's the trick, which works in Joomla 2.5.1:
Create a temporary category for the trashed items.
Edit each item (open the item) and move it to the new category.
In the new category, change the state to published.
Then trash and delete.





