Collection share AJAX not working properly (Release version 4354)

54 views
Skip to first unread message

TimC

unread,
May 16, 2013, 7:10:38 AM5/16/13
to resour...@googlegroups.com
Choosing 'Share' link for a collection causes the CentralSpace area to redraw with another copy of the page header, menu and simple search inside it as well as the share/email page below it. It also leaves the 'Loading...' script on the page indefinitely. I have tested in 4419 and the current 4470 and the problem still exists. Somewhat puzzled why this has not been reported before?

I've temporarily fixed the problem by adding (as below) collection_share.php to the CentralSpaceLoad exceptions list in global.js. This causes the whole browser to refresh and thus avoids the AJAX but I need some help figuring out how to fix the actual AJAX issue.

if (
basename(anchor.href).substr(0,11)=="preview.php"
||
basename(anchor.href).substr(0,15)=="preview_all.php"
||
basename(anchor.href).substr(0,9)=="index.php" 
||
basename(anchor.href).substr(0,19)=="search_advanced.php" 
||
basename(anchor.href).substr(0,20)=="collection_share.php" 
) {
tonoheader=true;
}

TimC

unread,
May 16, 2013, 7:21:16 AM5/16/13
to resour...@googlegroups.com
P.S. This happens in latest Chrome, FF and IE9 versions. IE8 on the other hand displays a blank CentralSpace.

TimC

unread,
May 17, 2013, 11:11:18 AM5/17/13
to resour...@googlegroups.com
Any developer have a comment on this please I've tested now in release 5.2 and the issue still exists for me. I've added it to the bug tracker.

Jeff Harmon

unread,
May 17, 2013, 12:43:34 PM5/17/13
to resour...@googlegroups.com, resour...@googlegroups.com
We are unable to reproduce either of the bugs you've recently reported. Are you confident an SVN issue is not at play again here?

Jeff

--
Jeff Harmon
Chief Executive Officer
Colorhythm LLC

Main Office:  +1 415-399-9921
Mobile:  +1 510-710-9590

--
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to resourcespac...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

TimC

unread,
May 20, 2013, 5:27:22 AM5/20/13
to resour...@googlegroups.com
Thanks for your reply, We've only ever edited download.php and collection_download to fix some proxy server issues which constantly caused resets in the connection when downloading. Apart from that I have no clue how this issue with Share has arisen. I've updated to 5.2 now and if I comment out my line of code below the issue returns. Attached is an example screen shot. If you have any pointers where I should look to track down this problem I'd appreciate it.


On Thursday, 16 May 2013 12:10:38 UTC+1, TimC wrote:
RS share.jpg

Dan Huby

unread,
May 20, 2013, 5:39:20 AM5/20/13
to resour...@googlegroups.com

We're not seeing this either. We support many systems running the latest release code and have had no reports of this behaviour.

Have you tried a completely fresh installation?

Dan

Tom Gleason

unread,
May 20, 2013, 9:03:50 AM5/20/13
to ResourceSpace

Any JavaScript errors?

--

TimC

unread,
May 20, 2013, 9:06:25 AM5/20/13
to resour...@googlegroups.com
Have you got this config option enabled, if not can you try please and see what effect it has...

#Bypass share.php and go straight to e-mail
$bypass_share_screen = true;

As for what else I've tried, did svn diff and found none but expected differences. So I have done a complete new checkout and was replacing files in test site a few at a time to see the effect but nothing cured the problem until I came across the above in my config. When I set it false (default) the problem disappears. We've always had it set True as a preference.
- show quoted text -

Dan Huby

unread,
May 20, 2013, 9:23:44 AM5/20/13
to resour...@googlegroups.com
Hi Tim,

Thanks for the extra detail - it's really useful to know how your system might vary from the base configuration.

The '$bypass_share_screen' had not been updated to work with the new AJAX functionality. I've just fixed that in r4483.

Dan
> --
> You received this message because you are subscribed to a topic in the Google Groups "ResourceSpace" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/resourcespace/jWsqpNCBSBo/unsubscribe?hl=en-GB.
> To unsubscribe from this group and all of its topics, send an email to resourcespac...@googlegroups.com.

TimC

unread,
May 20, 2013, 9:35:38 AM5/20/13
to resour...@googlegroups.com

Brilliant, thanks Dan you’re a star. Glad we got to the bottom of it.

Tim

Reply all
Reply to author
Forward
0 new messages