[2017-11-16 17:19:07] (ERROR @ /home/server/public_html/core/xpdo/xpdo.class.php : 644) Could not load class: ArticlesContainer from mysql.articlescontainer.
This question has been answered by BobRay. See the first response.
[{"articles":{"path":"[[++core_path]]components/articles/model/"}}]
Check the extension_packages System Setting.
If this is all that's there, you can make it blank:
[{"articles":{"path":"[[++core_path]]components/articles/model/"}}]
That will try to make it load articles on every page load.
Look for a left over Articles-related plugin (e.g., articlestags).
Also, sometimes plugins get stuck in the cache and the only way to remove them is manually delete all the cache files.
Articles never show in the Resource Tree. If you right-click on the Blog Container (if it's still there) and select Manage Articles, you should see them.
[[!FixArticles]]
/* FixArticles Snippet */ $docs = $modx->getCollection('modResource', array('class_key' => 'Article')); $count = 0 foreach ($docs as $doc) { $count++; $doc->set('show_in_tree', true); $doc->set('hide_children_in_tree', false); $doc->set('deleted', true); // optional $doc->save(); } return '<h3>Altered ' . $count . ' Resources</h3>';
Let's back up. If you're using Collections, it may be using 'Article' for the class_key field, so make sure that's not the case before proceeding, or you may end up deleting things you wanted to keep.
This utility snippet (untested) might a simpler solution to making those pages visible:
[[!FixArticles]]
/* FixArticles Snippet */ $docs = $modx->getCollection('modResource', array('class_key:IN' => array('Article',ArticlesContainer))); $count = 0; foreach ($docs as $doc) { $count++; $doc->set('show_in_tree', true); $doc->set('hide_children_in_tree', false); $doc->set('deleted', true); // optional $doc->save(); } return '<h3>Altered ' . $count . ' Resources</h3>';
That should make them visible, and it should mark them for deletion, so you could delete all of them by emptying the trashcan.
/* FixArticles Snippet */ $docs = $modx->getCollection('modResource', array('class_key' => 'Article')); $count = 0; foreach ($docs as $doc) { $count++; $doc->set('show_in_tree', true); $doc->set('hide_children_in_tree', false); $doc->set('deleted', true); // optional $doc->save(); } return '<h3>Altered ' . $count . ' Resources</h3>';