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

CommentFileSizeAuthor
Afbeelding 15.png213.62 KBrzegwaard

Comments

rzegwaard’s picture

It seems not posible to update CCK-fields.
A standard title-fields works fine.

I guess i'l have to create a contenttype programmaticaly.

Robert

ben_scott’s picture

Hi 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

rzegwaard’s picture

Hi Ben,

Until so far only used normal textfields.

Thanks,

Robert

hconnor’s picture

I 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?

weizrd’s picture

Hello, 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

weizrd’s picture

it 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?

ben_scott’s picture

Hi -

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

iantresman’s picture

I'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:

Warning: There was 1 error

Unfortunately there is no indication what is the cause of the error. Other fields update OK.

ben_scott’s picture

Status: Active » Fixed

This should be fixed in the latest release.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

timmeh’s picture

non 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.

chriz_k’s picture

I'm getting the same error in the recent log entries.

fzipi’s picture

Same 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

fzipi’s picture

In 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:

836c836
< function slickgrid_node_form_pre_render(&$form, &$form_state){
---
> function slickgrid_node_form_pre_render(&$form){