Just getting started with this in Drupal 7, and I have everything connected, and can see the Alfresco repositories.
but i can't seem to get the synchronization of content created on drupal onto Aflresco, even after running CRON(which i'm not sure has any effect on that direction of sync).
This is how my code on the settings.php file looks
$conf['cmis_sync_map'] = array(
'page' => array(
'enabled' => TRUE,
'deletes' => TRUE,
'full_sync_next_cron' =>TRUE,
'cmis_folderPath' => '/Muni',
'content_field' => 'body',
'fields' => array(
'content_field' => 'body',
'title' => 'cmis:name',
//'body'=>'cmis:document',
'field_cmis_url' => 'cmis:objectId',
'field_cmis_mime_type' => "cmis:contentStreamMimeType",
'field_cmis_updated' => 'cmis:lastModificationDate',
),
),
when i create content or run CRON, I get weird error messages... Another thing is that any content created in alfresco has a title but no body when i want to view it on Drupal.
Notice: Undefined property: stdClass::$field_cmis_url in _cmis_sync_drupal_node_field_value() (line 285 of C:\wamp\www\dpl7\modules\cmis\cmis_sync\cmis_sync.drupal.inc).
Notice: Undefined property: stdClass::$field_cmis_mime_type in _cmis_sync_drupal_node_field_value() (line 285 of C:\wamp\www\dpl7\modules\cmis\cmis_sync\cmis_sync.drupal.inc).
Notice: Undefined property: stdClass::$field_cmis_updated in _cmis_sync_drupal_node_field_value() (line 285 of C:\wamp\www\dpl7\modules\cmis\cmis_sync\cmis_sync.drupal.inc).
Notice: Undefined index: widget_type in _cmis_sync_drupal_node_field_value() (line 206 of C:\wamp\www\dpl7\modules\cmis\cmis_sync\cmis_sync.drupal.inc).
Notice: Undefined variable: content_type in _cmis_sync_drupal_node_field_value() (line 277 of C:\wamp\www\dpl7\modules\cmis\cmis_sync\cmis_sync.drupal.inc).
Unsupported sync drupal content field type [] for field [body]. Please review your configuration.
The last line is what gives me the biggest headache.
Any help would be greatly recieved...
By the way, if anyone could help me with 'custom_drupal_content_type', i would be so greatful
thanks
Comments
Comment #1
tcmug commentedTry if the patch here http://drupal.org/node/1291988 fixes it
Comment #2
Zimsil commentedthanks, i will try it out. Not to sound like a blithering idiot, but how do i apply the patch?
Comment #3
tcmug commentedSorry for the delay :)
If you have checked out the project via git:
git apply patchfilename
If not, you can do:
patch -p1 < patchfilename
Comment #4
Zimsil commentedhey, i've install git onto my machine but i dont know what to do next. may i please have a step-by-step guide on how to apply the patch via git or the alternative on Windows. i am kind of a newbie at this.
Comment #5
RMani commentedNotice: Undefined index: widget_type in _cmis_sync_drupal_node_field_value() (line 206 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined variable: content_type in _cmis_sync_drupal_node_field_value() (line 277 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined index: widget_type in _cmis_sync_drupal_node_field_value() (line 206 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined variable: content_type in _cmis_sync_drupal_node_field_value() (line 277 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined index: widget_type in _cmis_sync_drupal_node_field_value() (line 206 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined variable: content_type in _cmis_sync_drupal_node_field_value() (line 277 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined index: widget_type in _cmis_sync_drupal_node_field_value() (line 206 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined variable: content_type in _cmis_sync_drupal_node_field_value() (line 277 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined index: widget_type in _cmis_sync_drupal_node_field_value() (line 206 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined variable: content_type in _cmis_sync_drupal_node_field_value() (line 277 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined index: widget_type in _cmis_sync_drupal_node_field_value() (line 206 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined variable: content_type in _cmis_sync_drupal_node_field_value() (line 277 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined index: widget_type in _cmis_sync_drupal_node_field_value() (line 206 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined variable: content_type in _cmis_sync_drupal_node_field_value() (line 277 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined index: widget_type in _cmis_sync_drupal_node_field_value() (line 206 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined variable: content_type in _cmis_sync_drupal_node_field_value() (line 277 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined index: widget_type in _cmis_sync_drupal_node_field_value() (line 206 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined variable: content_type in _cmis_sync_drupal_node_field_value() (line 277 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined index: widget_type in _cmis_sync_drupal_node_field_value() (line 206 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined variable: content_type in _cmis_sync_drupal_node_field_value() (line 277 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined index: widget_type in _cmis_sync_drupal_node_field_value() (line 206 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined variable: content_type in _cmis_sync_drupal_node_field_value() (line 277 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined index: widget_type in _cmis_sync_drupal_node_field_value() (line 206 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined variable: content_type in _cmis_sync_drupal_node_field_value() (line 277 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined index: widget_type in _cmis_sync_drupal_node_field_value() (line 206 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined variable: content_type in _cmis_sync_drupal_node_field_value() (line 277 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined index: widget_type in _cmis_sync_drupal_node_field_value() (line 206 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined variable: content_type in _cmis_sync_drupal_node_field_value() (line 277 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined index: widget_type in _cmis_sync_drupal_node_field_value() (line 206 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined variable: content_type in _cmis_sync_drupal_node_field_value() (line 277 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined index: widget_type in _cmis_sync_drupal_node_field_value() (line 206 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined variable: content_type in _cmis_sync_drupal_node_field_value() (line 277 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined index: cm:content in _cmis_sync_cmis_drupal_prepare() (line 209 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.cmis.inc).
Notice: Undefined index: widget_type in _cmis_sync_drupal_node_field_value() (line 206 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Notice: Undefined variable: content_type in _cmis_sync_drupal_node_field_value() (line 277 of /var/www/sites/all/modules/cmis/cmis_sync/cmis_sync.drupal.inc).
Unsupported sync drupal content field type [] for field [field_recognitions_image]. Please review your configuration.
i am trying to sync images help please
Comment #6
IanNorton commentedHi Zimsil,
This should be fixed after the patch was applied - please let me know if you're still having problems.
Regards