Closed (won't fix)
Project:
Sheetnode
Version:
6.x-1.x-dev
Component:
Core
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Feb 2010 at 13:43 UTC
Updated:
23 Nov 2013 at 02:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
infojunkieDo you get that error when attempting to open a sheetnode that you had previously saved?
Concerning the observation that "there are no tabs displayed on the spreadsheet", what do you mean? Your screenshot in the other issue did show tabs in the spreadsheet control.
Do you have a test site that I can visit to see this error in action?
Comment #2
Dave Kinchlea commentedYes, after saving from the Drupal form and trying to "Edit" the node.
So, the "tabs" I was speaking of are probably not supposed to be there (I've not seen a picture of a working version, I was going by the /sites/all/modules/sheetnode/socialcalc/ssctrltest1.html, I think I now know that those aren't part of it). I was expecting them to "save" the worksheet. I now think I understand that the regular Save button is supposed to be used and the "Format" save button is just for saving state (but perhaps should do the same thing?).
When I save I see the Revision Log being populated with content like:
but those are not showing up in the node revision table. In any case, there is nothing being populated in {sheetnode}.
I have created an account on http://www.gatedev.com -- infojunkie/sheetnode ---- this is my devel server so the account won't last long but it has all the privs required to /node/add/sheetnode.
Comment #3
Dave Kinchlea commentedIt's not THE problem I am seeing but I did find A problem where "sheetnode" wasn't wrapped in curly brackets in sheetnode_update(). Patch attached.
Comment #4
infojunkieThanks for the patch. It doesn't affect your case though since this code kicks in when updating a node.
Concerning your problem, I can confirm that the value isn't getting saved, but I don't know why yet. For starters, can you please disable the Javascript optimizer? I never tested with it so I'd like to rule that out before continuing.
Comment #5
Dave Kinchlea commentedShoot, sorry, I had restored my DB and forgot to turn that off again ... it does make debugging difficult doesn't it? I'll happily do anything else you ask as well, just ask!
Comment #6
infojunkieCan you please place the following script in sheetnode.js, function
Drupal.sheetnode.save:right after the line
When you save, you should get a message box with the value of the sheetnode. What do you see?
Comment #7
infojunkieAlso, please turn off the Ajax module and test without it. It seems to be hooking on many form events and it might be clashing with Sheetnode.
Comment #8
Dave Kinchlea commentedAjax was disabled successfully. [ok]
Ajax plugin - comment was disabled successfully. [ok]
Ajax plugin - disable_redirect was disabled successfully. [ok]
Ajax plugin - quicktabs was disabled successfully. [ok]
Ajax ui was disabled successfully. [ok]
Ajax plugin - wysiwyg was disabled successfully. [ok]
Alert is in place ... and I have successfully saved and re-edited a spreadsheet. Removing the alert stopped the saving from happening, putting it back it got it back to working. I didn't expect that.
Comment #9
infojunkieThere is a module that seems to cause a race condition with Sheetnode. It is most probably a client-side module that performs some Javascript logic on the form. If we can isolate which module causes the failure to save, then I can work locally to fix that issue.
Comment #10
Dave Kinchlea commentedOkay, thanks for your help ... I'll let you know when I find the module, it is great to have this working!
Comment #11
Dave Kinchlea commentedAnd the winner is.... http://drupal.org/project/ajax ... specifically ajax_ui ... I'm not sure why disabling it last night didn't seem to work, I guess there must have been some caching going on... in any case, I have all my modules but ajax_ui enabled and it works ... I think that's okay for me as I can work around it in a similar fashion as I do with http://drupal.org/project/form. So its a bug if you say its a bug; my problem is solved.
Thanks for your help!
Comment #12
infojunkieThanks Dave for your patience and feedback! I definitely need to try ajax_ui and figure out why it clashes with sheetnode. Cheers!
PS. Don't forget to remove my username/password from your dev site :-)
Comment #13
infojunkieComment #14
infojunkieClosing old issues. Reopen if needed.