Content View Disappears on 3.1.1 Migration and LP Reinstall

9 Messages Forum Options Options
Permalink
hpinson
Content View Disappears on 3.1.1 Migration and LP Reinstall
Reply Threaded More
Print post
Permalink
I migrated from Plone 2.5.3 to 3.5.1. .  

Upon re-installing LinguaPlone 2.1.1 and selecting the four languages we support, I loose access to all folder content from the Plone interface.  

For example, I have a "Library" folder with many layers of subfolders. Upon multi-selecting and saving the four languages using the ZMI portal_languages tool, the "Library" sub folders vanish from Content view, or any other view. The folders and their contents still exist in the ZMI, but from the Plone interface the top level folders now appear empty.  I cannot restore with undo from ZMI

This is true for all top level folders across my site.

I am completely baffled as to why this is happening or what to do about it.

Any help would be appreciated.
Maurits van Rees-3
Re: Content View Disappears on 3.1.1 Migration and LP Reinstall
Reply Threaded More
Print post
Permalink
hpinson, on 2008-05-22:

>
> I migrated from Plone 2.5.3 to 3.5.1. .  
>
> Upon re-installing LinguaPlone 2.1.1 and selecting the four languages we
> support, I loose access to all folder content from the Plone interface.  
>
> For example, I have a "Library" folder with many layers of subfolders. Upon
> multi-selecting and saving the four languages using the ZMI portal_languages
> tool, the "Library" sub folders vanish from Content view, or any other view.
> The folders and their contents still exist in the ZMI, but from the Plone
> interface the top level folders now appear empty.  I cannot restore with
> undo from ZMI
>
> This is true for all top level folders across my site.
>
> I am completely baffled as to why this is happening or what to do about it.
>
> Any help would be appreciated.

In the ZMI go to portal_catalog, then the Indexes tab and check what
kind of index is there for the Language property.  It should be a
LanguageIndex.  I suspect it may be a different index in your case and
the reinstall did not correctly replace it.

If that is the case, then you have two options to choose from:

1. Use LinguaPlone trunk and reinstall that as I did some fixes last
   week and one of them solves this.

2. Remove the Language index and reinstall your current LinguaPlone.

Both roads should give you a correct language index.

(Make a backup first.)

--
Maurits van Rees | http://maurits.vanrees.org/
            Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plone-i18n mailing list
Plone-i18n@...
https://lists.sourceforge.net/lists/listinfo/plone-i18n
hpinson
Re: Content View Disappears on 3.1.1 Migration and LP Reinstall
Reply Threaded More
Print post
Permalink
Hi Maurits.

You were right that the Language was a FieldIndex and not a Language
index. I removed then recreated as you suggested.

However,  I have tried both methods you describe, and each results in an
error on reinstall or install of LinguaPlone (2.2 trunk or 2.1):

AttributeError: 'NoneType' object has no attribute 'UID'

Any ideas?

Thanks.



--
Harlow Pinson
Indepth Learning
Email: hpinson@...
Phone: 505 994-2135
Fax: 505 994-3603


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plone-i18n mailing list
Plone-i18n@...
https://lists.sourceforge.net/lists/listinfo/plone-i18n
grahamperrin-ac.uk
Re: Content View Disappears on 3.1.1 Migration and LP Reinstall
Reply Threaded More
Print post
Permalink
On 22 May 2008, at 17:55, Maurits van Rees wrote:

>> … vanish from Content view, or any other view. The folders and  
>> their contents still exist in the ZMI, but from the Plone interface  
>> the top level folders now appear empty.  I cannot restore with undo  
>> from ZMI
>>
>> This is true for all top level folders across my site.
>>
>> I am completely baffled as to why this is happening or what to do  
>> about it.
>>
>> Any help would be appreciated.
>
> In the ZMI go to portal_catalog, then the Indexes tab and check what  
> kind of index is there for the Language property.  It should be a  
> LanguageIndex.  I suspect it may be a different index in your case  
> and the reinstall did not correctly replace it.
>
> If that is the case, then you have two options to choose from:
>
> 1. Use LinguaPlone trunk and reinstall that as I did some fixes last
>   week and one of them solves this.
>
> 2. Remove the Language index and reinstall your current LinguaPlone.
>
> Both roads should give you a correct language index.
>
> (Make a backup first.)

This reminds me of
<http://plone.org/products/linguaplone/issues/168>

 > content becomes invisible after migrating
 > from LinguaPlone 2.0 to 2.1 (svn/unreleased)

(2008-02-22)

- is it the same, or similar?
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plone-i18n mailing list
Plone-i18n@...
https://lists.sourceforge.net/lists/listinfo/plone-i18n
Maurits van Rees-3
Re: Content View Disappears on 3.1.1 Migration and LP Reinstall
Reply Threaded More
Print post
Permalink
Graham Perrin, on 2008-05-22:

> On 22 May 2008, at 17:55, Maurits van Rees wrote:
>> In the ZMI go to portal_catalog, then the Indexes tab and check what  
>> kind of index is there for the Language property.  It should be a  
>> LanguageIndex.  I suspect it may be a different index in your case  
>> and the reinstall did not correctly replace it.
>>
>> If that is the case, then you have two options to choose from:
>>
>> 1. Use LinguaPlone trunk and reinstall that as I did some fixes last
>>   week and one of them solves this.
>>
>> 2. Remove the Language index and reinstall your current LinguaPlone.
>>
>> Both roads should give you a correct language index.
>>
>> (Make a backup first.)
>
> This reminds me of
><http://plone.org/products/linguaplone/issues/168>
>
> > content becomes invisible after migrating
> > from LinguaPlone 2.0 to 2.1 (svn/unreleased)
>
> (2008-02-22)
>
> - is it the same, or similar?

Looks the same/similar yes.  The above prodecure should hopefully
help.  Reinstalling LinguaPlone trunk should also rid you of this
error that I saw in your traceback:

ERROR GenericSetup Step linguaplone_various has an invalid import handler


The original poster still had a problem while reinstalling though;
maybe you are more lucky.

--
Maurits van Rees | http://maurits.vanrees.org/
            Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plone-i18n mailing list
Plone-i18n@...
https://lists.sourceforge.net/lists/listinfo/plone-i18n
Maurits van Rees-3
Re: Content View Disappears on 3.1.1 Migration and LP Reinstall
Reply Threaded More
Print post
Permalink
hpinson@..., on 2008-05-22:

> Hi Maurits.
>
> You were right that the Language was a FieldIndex and not a Language
> index. I removed then recreated as you suggested.
>
> However,  I have tried both methods you describe, and each results in an
> error on reinstall or install of LinguaPlone (2.2 trunk or 2.1):
>
> AttributeError: 'NoneType' object has no attribute 'UID'
>
> Any ideas?

I did get a similar error last week with the database of a client.  I
fixed that particular problem in LinguaPlone.

Can you post the complete traceback?

I forgot already: is this on Plone 3.0?  If so, do you have the
products that Tom Lazar lists on his blog?  See:

http://tomster.org/blog/archive/2008/03/07/the-state-of-the-union-wlinguaplone

On Plone 3.0 you need to install plone.browserlayer before
reinstalling LinguaPlone.  LinguaPlone will print a warning in the
logs when you have not done that yet.

Plain Plone 3.1.1 should be fine on its own, without needing extra
products or preinstalling some products.


--
Maurits van Rees | http://maurits.vanrees.org/
            Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plone-i18n mailing list
Plone-i18n@...
https://lists.sourceforge.net/lists/listinfo/plone-i18n
hpinson
Re: Content View Disappears on 3.1.1 Migration and LP Reinstall
Reply Threaded More
Print post
Permalink
Well... Plone 3.1.1/Zope 2.10.5 is the version. This is a direct migration
from Plone 2.5.3. Zope was installed using configure, make, and make
install. An instanace was created and the plone tar.gz downloaded and
installed to that instance.

I don't see any references to plone.browserlayer in my ZMI. That may be
the problem, and I will look into what it takes to manually force installation
of that.

Here is the traceback.

Traceback (innermost last):

Module ZPublisher.Publish, line 119, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 42, in call_object
Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 574, in
installProducts
Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 511, in
installProduct
__traceback_info__: ('LinguaPlone',)
Module Products.GenericSetup.tool, line 390, in
runAllImportStepsFromProfile
__traceback_info__: profile-Products.LinguaPlone:LinguaPlone
Module Products.GenericSetup.tool, line 1179, in
_runImportStepsFromContext
Module Products.GenericSetup.tool, line 1093, in _doRunImportStep
__traceback_info__: linguaplone_reindex
Module Products.LinguaPlone.setuphandlers, line 38, in
importReindexLanguageIndex
Module Products.ZCatalog.ZCatalog, line 468, in reindexIndex
Module Products.CMFPlone.CatalogTool, line 385, in catalog_object
Module Products.ZCatalog.ZCatalog, line 535, in catalog_object
Module Products.ZCatalog.Catalog, line 360, in catalogObject
Module Products.LinguaPlone.LanguageIndex, line 140, in index_object
AttributeError: 'NoneType' object has no attribute 'UID'


--
Harlow Pinson
Indepth Learning
Email: hpinson@...
Phone: 505 994-2135
Fax: 505 994-3603


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plone-i18n mailing list
Plone-i18n@...
https://lists.sourceforge.net/lists/listinfo/plone-i18n
hpinson
Re: Content View Disappears on 3.1.1 Migration and LP Reinstall
Reply Threaded More
Print post
Permalink
Installed plone.browserlayer per the directions given in its
docs/INSTALL.txt  It seemed to install:

easy_install plone.browserlayer
Searching for plone.browserlayer
Reading http://pypi.python.org/simple/plone.browserlayer/
Reading http://plone.org
Best match: plone.browserlayer 1.0.0
Downloading
http://pypi.python.org/packages/2.4/p/plone.browserlayer/plone.browserlaye
r-1.0.0-py2.4.egg#md5=36291dc9844d68219f78525678837068
Processing plone.browserlayer-1.0.0-py2.4.egg
creating /usr/lib/python2.4/site-packages/plone.browserlayer-1.0.0-
py2.4.egg
Extracting plone.browserlayer-1.0.0-py2.4.egg to /usr/lib/python2.4/site-
packages
Adding plone.browserlayer 1.0.0 to easy-install.pth file

Installed /usr/lib/python2.4/site-packages/plone.browserlayer-1.0.0-
py2.4.egg
Processing dependencies for plone.browserlayer
Finished processing dependencies for plone.browserlayer


Then attempted to install LinguaPlone again.

Same error on install:

Traceback (innermost last):

Module ZPublisher.Publish, line 119, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 42, in call_object
Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 574, in
installProducts
Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 511, in
installProduct
__traceback_info__: ('LinguaPlone',)
Module Products.GenericSetup.tool, line 390, in
runAllImportStepsFromProfile
__traceback_info__: profile-Products.LinguaPlone:LinguaPlone
Module Products.GenericSetup.tool, line 1179, in
_runImportStepsFromContext
Module Products.GenericSetup.tool, line 1093, in _doRunImportStep
__traceback_info__: linguaplone_reindex
Module Products.LinguaPlone.setuphandlers, line 38, in
importReindexLanguageIndex
Module Products.ZCatalog.ZCatalog, line 468, in reindexIndex
Module Products.CMFPlone.CatalogTool, line 385, in catalog_object
Module Products.ZCatalog.ZCatalog, line 535, in catalog_object
Module Products.ZCatalog.Catalog, line 360, in catalogObject
Module Products.LinguaPlone.LanguageIndex, line 140, in index_object
AttributeError: 'NoneType' object has no attribute 'UID'
--
Harlow Pinson
Indepth Learning
Email: hpinson@...
Phone: 505 994-2135
Fax: 505 994-3603


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plone-i18n mailing list
Plone-i18n@...
https://lists.sourceforge.net/lists/listinfo/plone-i18n
Maurits van Rees-3
Re: Content View Disappears on 3.1.1 Migration and LP Reinstall
Reply Threaded More
Print post
Permalink
hpinson@..., on 2008-05-22:
> Well... Plone 3.1.1/Zope 2.10.5 is the version. This is a direct migration
> from Plone 2.5.3. Zope was installed using configure, make, and make
> install. An instanace was created and the plone tar.gz downloaded and
> installed to that instance.
>
> I don't see any references to plone.browserlayer in my ZMI. That may
> be the problem, and I will look into what it takes to manually force
> installation of that.

The plone.browserlayer that comes with Plone 3.1.1 does not show up in
the ZMI, at least not in portal_quickinstaller, so that should be fine.

> Here is the traceback.
>
> Traceback (innermost last):
>
> Module ZPublisher.Publish, line 119, in publish
> Module ZPublisher.mapply, line 88, in mapply
> Module ZPublisher.Publish, line 42, in call_object
> Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 574, in
> installProducts
> Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 511, in
> installProduct
> __traceback_info__: ('LinguaPlone',)
> Module Products.GenericSetup.tool, line 390, in
> runAllImportStepsFromProfile
> __traceback_info__: profile-Products.LinguaPlone:LinguaPlone
> Module Products.GenericSetup.tool, line 1179, in
> _runImportStepsFromContext
> Module Products.GenericSetup.tool, line 1093, in _doRunImportStep
> __traceback_info__: linguaplone_reindex
> Module Products.LinguaPlone.setuphandlers, line 38, in
> importReindexLanguageIndex
> Module Products.ZCatalog.ZCatalog, line 468, in reindexIndex
> Module Products.CMFPlone.CatalogTool, line 385, in catalog_object
> Module Products.ZCatalog.ZCatalog, line 535, in catalog_object
> Module Products.ZCatalog.Catalog, line 360, in catalogObject
> Module Products.LinguaPlone.LanguageIndex, line 140, in index_object
> AttributeError: 'NoneType' object has no attribute 'UID'

Hm, that line 140 is this:

    cid = obj.getCanonical().UID()

So that last AttributeError means that obj.getCanonical() is None: the
object has no canonical object (the original language) associated with
it and is itself also not the canonical object.  That sounds like
something that is not supposed to happen.  Perhaps the
reference_catalog has been damaged somehow.  That is where the
relations between objects of different languages are stored.

So in the ZMI you could go to reference_catalog and see if anything
seems wrong.  I think it should be safe to rebuild the catalog by
clicking on the "Rebuild catalog" tab.  Then try reinstalling
LinguaPlone again.  Or on the Advanced tab click 'Update catalog'.

Do not click 'Clear catalog' is you will lose all references between
objects then.

Whatever you try, be prepared to restore your backups.


What you could try in code is to change these lines from
Products/LinguaPlone/LanguageIndex.py:

        if ITranslatable.isImplementedBy(obj):
            cid = obj.getCanonical().UID()

into:

        if ITranslatable.isImplementedBy(obj):
            canonical = obj.getCanonical()
            if canonical is None:
                cid = documentId
            else:
                cid = canonical.UID()

Then restart your zope instance and reinstall LinguaPlone.  (Or if you
are comfortable with the pdb you could put a set_trace there and
investigate.)


--
Maurits van Rees | http://maurits.vanrees.org/
            Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plone-i18n mailing list
Plone-i18n@...
https://lists.sourceforge.net/lists/listinfo/plone-i18n