I recently tried integrating drupal 7 with alfresco 3.4.d. I had done so successfully wit version 6 of drupal but since 7 had some sync issues, i decided to wait a bit on it. i eventually found a patch on Properties + Versions support (inc. other patches) that fixed the syncing problem with alfresco. The problem i have though now is that i downloaded and enabled the cmis views module and created a cmis view of my alfresco repository.
Bi-directional synchronization is working and the view is working at run time(no need for CRON) but i receive the error below everytime i add or create content.
Notice: Undefined index: cmis:objectTypeId in CMISService->cacheEntryInfo() (line 428 of C:\wamp\www\demo\modules\cmis\cmis_common\lib\cmis_repository_wrapper.php).
Notice: Undefined index: cmis:objectTypeId in CMISService->cacheEntryInfo() (line 428 of C:\wamp\www\demo\modules\cmis\cmis_common\lib\cmis_repository_wrapper.php).
Notice: Undefined index: cmis:objectTypeId in CMISService->cacheEntryInfo() (line 428 of C:\wamp\www\demo\modules\cmis\cmis_common\lib\cmis_repository_wrapper.php).
Notice: Undefined index: cmis:objectTypeId in CMISService->cacheEntryInfo() (line 428 of C:\wamp\www\demo\modules\cmis\cmis_common\lib\cmis_repository_wrapper.php).
Notice: Undefined index: cmis:objectTypeId in CMISService->cacheEntryInfo() (line 428 of C:\wamp\www\demo\modules\cmis\cmis_common\lib\cmis_repository_wrapper.php).
And Even though the cmis View is showing the contents in the repository, i cannot seem to run CRON.
I have a feeling this has something to do with the mapping but i dont know how to fix it. Could anyone please help me ASAP. Any assistance would be greatly appreciated
Comments
Comment #1
IanNorton commentedHi,
I've hit this problem myself before, I don't think it's an issue with CMIS Views, more to do with the CMIS API module - commenting out line 384 '$this->_objTypeId_cache[$obj->id]=$obj->properties["cmis:objectTypeId"];' of cmis_repository_wrapper.php from the CMIS project seems to fix things.
I've not had time to test this beyond using it with CMIS Views - if you're using it with sync and browser I'd be interested to hear if you find that it breaks anything, if not I'll try to get the cmis api project patched and updated.
Thanks,
Ian
Comment #2
IanNorton commentedComment #3
Zimsil commentedYeh, i commented out that line shortly after posting the issue but i still have problems running CRON. Even the automated CRON jobs arent being carried out. As a result, i still have the content on the cmis views and content created on drupal is being synced to alfresco but since CRON isnt running, content created in alfresco isnt being sync into drupal
Comment #4
IanNorton commentedIs there anything in the logs? The cron / sync issue isn't to do with cmis views - I've found the sync module to be rather flaky in D7.
Comment #5
IanNorton commentedPostponed as I'd need info from the logs and this issue looks like it's related to the CMIS API project, rather than CMIS Views
Comment #6
IanNorton commentedRe-assigning to CMIS API
Comment #7
IanNorton commentedFixed in recent update
Comment #8.0
(not verified) commentedCRON not running