Closed (fixed)
Project:
Slickgrid
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Apr 2011 at 13:42 UTC
Updated:
24 Oct 2011 at 14:06 UTC
When i try to edit a field with Slickgrid, i get a warning "Sorry there was an error - please reload this page an try again." (See screenshot).
I'm logged in as Admin so rights can't be a problem.
The console gives an error: <b>Fatal error</b>: Cannot unset string offsets in <b>/Applications/XAMPP/xamppfiles/htdocs/dp-products/sites/all/modules/cck/includes/content.node_form.inc</b> on line <b>60</b>
I'm running
- XAMPP on Mac OSX 10.5
- drupal-6.20
- slickgrid-6.x-1.x-dev
- views-6.x-2.12
- Firefox 3.6.8 and Chrome 10.0.648.204
| Comment | File | Size | Author |
|---|---|---|---|
| Afbeelding 15.png | 213.62 KB | rzegwaard |
Comments
Comment #1
rzegwaard commentedIt seems not posible to update CCK-fields.
A standard title-fields works fine.
I guess i'l have to create a contenttype programmaticaly.
Robert
Comment #2
ben_scott commentedHi Robert -
Sorry about that, it should work with CCK fields as well as node fields. I'll have a look into this - what type of CCK field is it?
Cheers,
Ben
Comment #3
rzegwaard commentedHi Ben,
Until so far only used normal textfields.
Thanks,
Robert
Comment #4
hconnor commentedI am having the same issue when trying to save changed data. The fields I have are floating CCK fields with valid list items. The user is able to select from the list but the selected item does not get updated in the grid nor the database. All I get is warning errors. The same happens when I make multiple selections, edit the value in one cell and the error I get is the same number of items selected? Can't even get it to update text fields, help?
Comment #5
weizrd commentedHello, I discovered the problem on my system
On my table, I had 2 textfields, a date, an email and a text-radiobutton (default).
For any row, I was able to change the value of the radiobutton and the result was saved into the database.
However, only if i set the value of the radio button field to N/A(or was like that already), the 2 text fields were save-able again.(even if the radio button field was set to non-editable, the problem remained unless i set the value to N/A).
No relation on email field and date (editing those 2 worked no matter what). Also, checkbox works. Only problem here is the radio-button.
I know that seems extremely unlikely scenario, but i tested it into multiple browsers and I don't have other modules installed in the history of this site.
When I remove that field from the view, also, my text fields are save-able again and i don't get that error in status bar.
so i exported my data, and i imported it again using normal textfield, and not radiobutton/checkbox. this solved my urgent matter for the moment.
Aside from that, really great module, btw. awesome and extremely useful
Cheers
PS: I have clean brand new drupal install 6.20, Views 2.12, CCK 2.9, Email 1.x-dev, Date 2.7
Comment #6
weizrd commentedit seems to be the same problem when having text/select options:
any field of this type present in the view (editable or not) would render all the textfields un-editable.
I guess it's about checking if the value set is among alowed values when saving the node..
Any idea what is to be done?
Comment #7
ben_scott commentedHi -
Sorry for the slowness in sorting this out: seems to be some weirdness using CCK & drupal_execute, I'm still trying to fix it. In the meantime, it does only seems to be a bug when using the inline editor, so a workaround is to use the pop up editor. Not ideal I know, I'll investigate further...
Cheers,
Ben
Comment #8
iantresman commentedI'm getting something similar when I try to save data to a CCK Node reference field. I'm using the pop-up, which correctly displays a select list of all the available Node references, but when I click Save, I get:
Unfortunately there is no indication what is the cause of the error. Other fields update OK.
Comment #9
ben_scott commentedThis should be fixed in the latest release.
Comment #11
timmeh commentednon cck fields (node title) are not updating for me.
I'm getting this error in the recent log entries:
Missing argument 2 for slickgrid_node_form_pre_render(), called in /var/www/vhosts/mysite.com/subdomains/dev50/httpdocs/includes/common.inc on line 2926 and defined in /var/www/vhosts/mysite.com/subdomains/dev50/httpdocs/sites/all/modules/slickgrid/slickgrid.module on line 836.
Comment #12
chriz_k commentedI'm getting the same error in the recent log entries.
Comment #13
fzipi commentedSame error here. In my case I'm editing some CCK field.
559297 24/Oct 11:52 error php Missing argument 2 for slickgrid_node_form_pre_render(), called in /var/www/drupal/includes/common.inc on line 2974 and defined in /var/www/drupal/sites/all/modules/slickgrid/slickgrid.mod
559298 24/Oct 11:52 error php Missing argument 2 for slickgrid_node_form_pre_render(), called in /var/www/drupal/includes/common.inc on line 2974 and defined in /var/www/drupal/sites/all/modules/slickgrid/slickgrid.mod
559299 24/Oct 11:52 error form Illegal choice in Tipo element.
559300 24/Oct 11:52 error form Illegal choice in Tipo element.
559301 24/Oct 11:52 error slickgrid There was 1 error: Se ha detectado una opción ilegal. Por favor contacte al administrador del sitio
Comment #14
fzipi commentedIn slickgrid.module, $form_state isn't used at all: I'm deleting this variable.
Now error in logs about this aren't shown... but I can't save edited cell yet.
slickgrid.module: