Page 1 of 1

OBSOLETE: Custom Ordering a collection is no longer working

Posted: Thu Jul 28, 2016 5:28 pm
by flyers3003
I used custom ordering for my collection because I don't always name my decks the same way as they're entered. Within the past 2-3 months, this feature appears to have been broken, as any time I try to save after moving a deck I get an error "Sorry, there was a problem". Would really like to see this working again.

Re: Custom Ordering a collection is no longer working

Posted: Thu Jul 28, 2016 8:35 pm
by 4.of.Clubs
Maybe there's something with the collection, a bad node maybe? I use the custom ordering almost everyday (moving and saving order) without an issue.

Re: Custom Ordering a collection is no longer working

Posted: Thu Jul 28, 2016 9:30 pm
by flyers3003
Could be, but I don't know that I could easily find/fix it.

Re: Custom Ordering a collection is no longer working

Posted: Thu Jul 28, 2016 10:25 pm
by ecNate
I couldn't see any obvious broken node problems and the prior intermittent problem behavior we had in the past with reserved SQL characters ( like ' & etc) should be fully resolved with our move to the new platform on P52. I do see you have a bunch of decks with the 'NOT YET RELEASED' prefix which may have since been deleted or at least renamed, but that shouldn't cause the problem. I guess you could try manually removing those and try again, then re-add, but shot in the dark only. The other thing might be you have a huge collection of 1175 so it's possible there is an upper limit in the code/math somewhere, but I don't think that's possible with this new platform either. If somebody who has that many or more confirms it works then I guess that could be ruled out too. Perhaps a cache or file space issue on server or your browser side? I would try using another browser, increase cache space and clear it, clear logins/cookies, etc.... or just try a new browser to start with.

Re: Custom Ordering a collection is no longer working

Posted: Fri Jul 29, 2016 1:02 am
by flyers3003
I'm inclined to believe it has something to do with the size of my collection. When I first enter the Custom Order Collection screen, 200 decks are present. If I hit Save Ordering at this point, I don't receive an error. I then hit Load More Decks, which loads an additional 100 decks and again hit Save Ordering with no error. I kept doing this until I had 1000 decks shown. Still no error. Once I loaded the next 100 to get to 1100 and hit Save Ordering, the error occurred. Trying to rule out that one of the 100 (1001-1100) decks was the issue, I went through each one, removed it from my collection and got to the point where 1100 decks were shown. Every time I got the error. If I had 1000 shown, no error. This would also make sense as it was about 2-3 months ago when I eclipsed 1000 decks. If someone with a collection > 1000 decks can confirm that they're able to use Custom Ordering with 1000+ on the screen at the time, that would prove me wrong.

Re: Custom Ordering a collection is no longer working

Posted: Fri Jul 29, 2016 9:46 am
by 4.of.Clubs
flyers3003 wrote:I'm inclined to believe it has something to do with the size of my collection. When I first enter the Custom Order Collection screen, 200 decks are present. If I hit Save Ordering at this point, I don't receive an error. I then hit Load More Decks, which loads an additional 100 decks and again hit Save Ordering with no error. I kept doing this until I had 1000 decks shown. Still no error. Once I loaded the next 100 to get to 1100 and hit Save Ordering, the error occurred. Trying to rule out that one of the 100 (1001-1100) decks was the issue, I went through each one, removed it from my collection and got to the point where 1100 decks were shown. Every time I got the error. If I had 1000 shown, no error. This would also make sense as it was about 2-3 months ago when I eclipsed 1000 decks. If someone with a collection > 1000 decks can confirm that they're able to use Custom Ordering with 1000+ on the screen at the time, that would prove me wrong.
AT 940... I'll let you know in a couple months. :D

One thing to note, I've always loaded all the decks THEN hit save ordering. One time I accidentally hit the save ordering before loading everything and the ordering of the decks that weren't loaded got messed up.

Re: Custom Ordering a collection is no longer working

Posted: Fri Jul 29, 2016 10:33 am
by flyers3003
4.of.Clubs wrote:One thing to note, I've always loaded all the decks THEN hit save ordering. One time I accidentally hit the save ordering before loading everything and the ordering of the decks that weren't loaded got messed up.
Yeah, I observed that too. I was ok with sacrificing the order to try and determine the cause of the error :-)

Re: Custom Ordering a collection is no longer working

Posted: Fri Jul 29, 2016 11:04 am
by ecNate
I did a bunch of digging around, but bottom line I don't have full server access to see all the configs and logs. My guess is it's a memory limitation and could possibly be fixed by updating the memory allocated to PHP, but it's also possible it's a bug fixed in a later version of the platform or modules.

I searched for a number of terms in the issues and change log, but couldn't find anything obvious

http://cgit.drupalcode.org/drupal/plain ... NGELOG.txt
https://www.drupal.org/project/issues/draggableviews
https://www.drupal.org/project/issues/paging


At this point there's only 2 things I can do. The first is if you can try it again now and see if you get the error, then let me know when you got it. I can check the logs I have access to and see if there is anything helpful there (it only retains the last 2 hours since we still have spam/bot use that generate pages of 404 errors from trying to spider around to non-existent pages). The other thing I can do is let Alex know and see if he can have the dev guy look into it or at least be sure to review again after the next version and hopefully get all versions up to date.

Re: Custom Ordering a collection is no longer working

Posted: Fri Jul 29, 2016 2:23 pm
by flyers3003
Just got the error again at ~3:22pm EST.

Re: Custom Ordering a collection is no longer working

Posted: Fri Jul 29, 2016 3:27 pm
by ecNate
So I'm just going to dump the errors here. Basically you got quite a few created, but others have had some with smaller collections and no known actual problems, but really I have no idea the impact of these. Still after reviewing them I dug into 3 of them more, 2 were on your custom page and the 3rd was more of anomaly and perhaps the root cause. I'll direct Alex to this thread and maybe he can have the dev take a look.

php 07/29/2016 - 20:13 User error: "total_decks_collected" is an invalid… flyers3003
php 07/29/2016 - 20:13 User error: "total_unique_decks" is an invalid render… flyers3003
php 07/29/2016 - 20:13 User error: "total_unique_images" is an invalid render… flyers3003
php 07/29/2016 - 20:13 User error: "recently_collected_decks" is an invalid… flyers3003
php 07/29/2016 - 20:13 User error: "newly_archived_decks" is an invalid render… flyers3003
php 07/29/2016 - 20:14 Warning: apc_store(): GC cache entry 'M34VdBeTDBssJ8XxE… flyers3003
php 07/29/2016 - 20:14 User error: "total_decks_collected" is an invalid… flyers3003
php 07/29/2016 - 20:14 User error: "total_unique_decks" is an invalid render… flyers3003
php 07/29/2016 - 20:14 User error: "total_unique_images" is an invalid render… flyers3003
php 07/29/2016 - 20:14 User error: "recently_collected_decks" is an invalid… flyers3003
php 07/29/2016 - 20:14 User error: "newly_archived_decks" is an invalid render… flyers3003
php 07/29/2016 - 20:20 User error: "total_decks_collected" is an invalid… flyers3003
php 07/29/2016 - 20:20 User error: "total_unique_decks" is an invalid render… flyers3003
php 07/29/2016 - 20:20 User error: "total_unique_images" is an invalid render… flyers3003
php 07/29/2016 - 20:20 User error: "recently_collected_decks" is an invalid… flyers3003
php 07/29/2016 - 20:20 User error: "newly_archived_decks" is an invalid render… flyers3003
php 07/29/2016 - 20:20 Notice: Undefined variable: cache in Drupal… flyers3003
php 07/29/2016 - 20:20 Notice: Undefined variable: data in Drupal\mycollection… flyers3003
php 07/29/2016 - 20:20 Notice: Undefined variable: cache in Drupal… flyers3003
php 07/29/2016 - 20:20 Notice: Undefined variable: data in Drupal\mycollection… flyers3003




Type php
Date Friday, July 29, 2016 - 20:20
User flyers3003
Location http://www.portfolio52.com/collection/52/images/custom" onclick="window.open(this.href);return false;" onclick="window.open(this.href);return false;
Referrer http://www.portfolio52.com/collection/52/images" onclick="window.open(this.href);return false;" onclick="window.open(this.href);return false;
Message <em class="placeholder">Notice</em>: Undefined variable: data in <em class="placeholder">Drupal\mycollection\Controller\ViewcollectionController->displayCollection()</em> (line <em class="placeholder">96</em> of <em class="placeholder">/var/www/html/releases/20151122194555/modules/mycollection/src/Controller/ViewcollectionController.php</em>).
Severity Notice


Type php
Date Friday, July 29, 2016 - 20:20
User flyers3003
Location http://www.portfolio52.com/collection/52/images/custom" onclick="window.open(this.href);return false;" onclick="window.open(this.href);return false;
Referrer http://www.portfolio52.com/collection/52/images" onclick="window.open(this.href);return false;" onclick="window.open(this.href);return false;
Message <em class="placeholder">Notice</em>: Undefined variable: cache in <em class="placeholder">Drupal\mycollection\Controller\ViewcollectionController->displayCollection()</em> (line <em class="placeholder">44</em> of <em class="placeholder">/var/www/html/releases/20151122194555/modules/mycollection/src/Controller/ViewcollectionController.php</em>).
Severity Notice


Type php
Date Friday, July 29, 2016 - 20:14
User flyers3003
Location http://www.portfolio52.com/user/52" onclick="window.open(this.href);return false;" onclick="window.open(this.href);return false;
Referrer http://www.portfolio52.com/" onclick="window.open(this.href);return false;" onclick="window.open(this.href);return false;
Message <em class="placeholder">Warning</em>: apc_store(): GC cache entry 'M34VdBeTDBssJ8XxE_lmVzIFW6sPBbbqwUbtk3yUoeg::config::rdf.mapping.node.deck' was on gc-list for 3607 seconds in <em class="placeholder">Drupal\Core\Cache\ApcuBackend->set()</em> (line <em class="placeholder">188</em> of <em class="placeholder">/var/www/html/releases/20151122194555/core/lib/Drupal/Core/Cache/ApcuBackend.php</em>).
Severity Warning

Re: Custom Ordering a collection is no longer working

Posted: Mon Aug 01, 2016 12:07 pm
by ecNate
Update - I talked to Alex about this and shared the details, but apparently the new site is really close (I got a direct sneak peek and indeed it is very close and pretty awesome). As a result it doesn't make sense to invest time/effort (aka $) into debugging this more since the new one will be a new platform and such issues should be automatically resolved.

Re: Custom Ordering a collection is no longer working

Posted: Mon Aug 01, 2016 1:20 pm
by flyers3003
No worries. Looking forward to the updated site. Thanks for taking a look at it anyway.