Hi,

Notice: Undefined property: stdClass::$type in workbench_access_prepare_field_save() (line 724 of /data/drupal7/sites/mysite/site/sites/all/modules/contrib/workbench_access/workbench_access.module).

I get this error when batch updating nodes via the core content admin main, ie selecting a node (or any group of nodes) then selecting 'set editorial section'

If it helps, I'm using taxonomy to manage workbench.

The problem seems to stem from:
workbench_access_mass_update()

Which passes a "node" object to workbench_access_node_update(), however it is not a fully qualified node. I attempted to patch this by adding a node_load() prior to this point; this circumvents the error, but still does not appear to set the workbench taxonomy field properly.

Any ideas?
Thanks

Comments

agentrickard’s picture

Oh. That core content admin doesn't work with Field API, so it's possible that we've missed something. You are using a custom field for your taxonomy, correct?

rich.3po’s picture

Hi - yes i'm using a term reference field

agentrickard’s picture

Thanks.

hwasem’s picture

Issue summary: View changes

I'm configuring Moderation Access with existing content and trying to update the workbench taxonomy field on my existing nodes, as well. I'm running into the exact same error as OP. I'm curious if you were able to get this to work.

I'm in admin/content and in the Views Bulk Operations "Update Options" section, I see the option to "Set editorial section" and choose the correct one. I get the error. I'm using workbench access 7.x-1.2.

I am logged in as user 1 and have batch update access permissions.

agentrickard’s picture

If you are using a taxonomy field, probably better to use the bulk operations for setting that specific field, not the WA=provided one.

hwasem’s picture

I will try that next time. I was able to change them all individually this time. This can probably be closed for now?

Thanks,
Heidi

agentrickard’s picture

Status: Active » Closed (won't fix)
lindaweb’s picture

Hi

I have my settings.php setup as :

$databases = array();
$databases['default']['default'] = array(
'driver' => 'mysql',
'database' => 'main_development',
'username' => 'un',
'password' => 'pw',
'host' => 'localhost',
'prefix' => '',
);

$db_prefix['externaltable'] = 'externaldb.';

$databases['externaldb']['default'] = array(
'driver' => 'mysql',
'database' => 'externaldb',
'username' => 'un2',
'password' => 'pw2',
'host' => 'externalhost',
'prefix' => '',
'port' => '',
);

I keep getting the following error :

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'main_development.externaltable' doesn't exist: SELECT COUNT(*) FROM {externaltable}; Array ( ) in data_ui_view() (line 18 of /var/www/html/jenny/jennydev/modules/data/data_ui/data_ui.admin.inc).

When i try to access the view record and the edit view section.

What am i doing wrong ?

How do i get this to access : Table 'main_externaldb.externaltable' ?

I am unable to see any of the records in the table, but I can see the table framework ?