Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After update all collections empty #299

Open
navtsi opened this issue Sep 10, 2019 · 11 comments
Open

After update all collections empty #299

navtsi opened this issue Sep 10, 2019 · 11 comments

Comments

@navtsi
Copy link

navtsi commented Sep 10, 2019

I updated all my websites on different servers from 3.6 to 3.7. (MODx 2.7.1). Now I have a lot of problems. Most of my customers says that the lists of collections are empty. In some I can see the items but some are deffinetally empty.

In most cases I created some of own collection templates. And this seams the problem. If I go to the the collection templates the list is empty, but if I wan't to create a new template and use a name of a previous template, it says this template still exists.

If I Unistall the plugin and reinstall it I got the same message.

If I create a new template with different name, I got the error: collections.template_err_save.

In some installations I change the renderer, but I cannot say if I did it in the installations with errors, because these old files seams gone.

@Spheerys
Copy link
Contributor

I get the same error when I tried to create a new template : collections.template_err_save

@theboxer
Copy link
Member

Try and clear your browsers cache. If it won't help check error logs.

@navtsi
Copy link
Author

navtsi commented Sep 30, 2019

Doesn't help. I uninstalled the plugin completely and reinstall with basic configurations. Than creating my templates again. I belive that something in the configuration was wrong and the new version cannot work with it. It appears just in two of my 22 installations, so it was not a great problem.

@theboxer
Copy link
Member

So what errors you got?

@sepiariver
Copy link
Contributor

I got the same issue but it was due to CDN caching (Cloudflare). What is the effect of disabling all CDN/caches and aggressively clearing browser cache (hard reload)?

@smg6511
Copy link

smg6511 commented Oct 17, 2019

I experienced this same problem after the 3.7.1 update (running on modx 2.7.2), where child documents no longer appeared for collections (both existing and newly created). However, I did not see any errors in the log. I can confirm that clearing browser cache (files and cookies) cleared up the issue and collections are now displaying as expected.

@52eins
Copy link

52eins commented Oct 31, 2019

For me problem like @smg6511 : child documents disappear (visually) with Collections 3.7.1 on modx 2.7.2-pl, server with PHP 7.3.11. With web developer tools in Chrome I can see this JS error:

Uncaught TypeError: Cannot read property 'bind' of undefined
    at collections.grid.ContainerCollections.wrapRenderer (collections.grid.resources.js:151)
    at collections.grid.ContainerCollections.getColumns (collections.grid.resources.js:163)
    at new collections.grid.ContainerCollections (collections.grid.resources.js:32)
    at Object.create (ext-all.js:21)
    at S.createComponent (ext-all.js:21)
    at S.lookupComponent (ext-all.js:21)
    at S.add (ext-all.js:21)
    at S.<anonymous> (ext-all.js:21)
    at Object.each (ext-base.js:21)
    at S.add (ext-all.js:21)

Tried to deactivate addons, uninstalled TinyMCE RTE, cleared cache in core and browser … nothing helps.
No entries in error logs.

@52eins
Copy link

52eins commented Nov 3, 2019

I tried this now:

  • an older installation of modx with version 2.6.5 and Collections 3.6.0: works fine
  • updated modx to 2.7.1 and tried with Collections 3.6.0: works fine
  • updated Collections to 3.7.1: works fine with modx 2.7.1
  • updated modx to 2.7.2, tried it with Collections 3.7.1: works fine too!

What's the difference between a twice updated modx (2.6.5 -> 2.7.1 -> 2.7.2) with current version of Collections and a clean install of modx 2.7.2 where Collections doesn't work as expected?

Update: installed modx 2.7.1 over 2.7.2 (doesn't helped) and reinstalled 2.7.2: no changes. Collections doesn't work, right area empty, JS error in the console.

@52eins
Copy link

52eins commented Nov 3, 2019

Now tried some back and forth changes.

Last I uninstalled collections, removed all files manually via FTP, cleared the cache in modx, in browser and cleared the core/cache manually via FTP on the server.
After this I reinstalled collections and was wondering why I found my self defined collection view (maybe because it’s saved in database and will not deleted while uninstalling the addon).

Now (because I deleted the standard blog collection view after creating my own view) I exported the blog view from an other site and imported it in my troublesome site, then deleted my own view.

And now I can change a document resource to collection and can see the content, tabs and so on. And the JS error is gone too.

Next step will be creating a new self-defined collection view and I will see if this makes new trouble or not.

@52eins
Copy link

52eins commented Nov 3, 2019

Of course it was not the solution I'd hoped for. Now I have the same problem like in this thread in modx forums: https://community.modx.com/t/collections-children-not-visible-for-account/1677/9

No childrens are visible, the collection says: This resource doesn’t have any children (respectively "Diese Ressource hat keine Unterressourcen." in German). It doesn't matter if I've created a news child or copied an existing resource into the collection's document. The document "disappears" and the collections seems empty. Changing the resource from collection to document shows the children in the tree.

In the chrome console are no errors or warnings.

@janice171
Copy link

janice171 commented May 12, 2020

I am getting this after an upgrade to 2.7.3.
No errors in the log apart from the deprecated modAction support one..
ERROR in modMenu::getSubMenus @ /home/website/public_html/core/model/modx/modmenu.class.php : 148)
Cleared browser and site caches but still nothing displaying for Collection pages.

I've rolled back to collections to 3.6.0 and changed the Parent resource to a Document and now i can see all the child pages below as resources. This will have to suffice for now.
Errors following this change are as follows:

[2020-05-12 11:43:20] (ERROR @ /home/website/public_html/core/model/modx/rest/modrestclient.class.php : 240) PHP warning: simplexml_load_string(): {&quot;status&quot;:500,&quot;code&quot;:2,&quot;message&quot;:&quot;DOMDocument::createTextNode() expects paramete
[2020-05-12 11:43:20] (ERROR @ /home/website/public_html/core/model/modx/rest/modrestclient.class.php : 240) PHP warning: simplexml_load_string(): ^
[2020-05-12 11:43:20] (ERROR @ /home/website/public_html/core/model/modx/rest/modrestclient.class.php : 245) Could not connect to provider at: https://rest.modx.com/extras/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants