plomino / Plomino

Powerful and flexible web-based application builder
33 stars 37 forks source link

@@search KeyError: 'main_template' #316

Open kyholdings opened 11 years ago

kyholdings commented 11 years ago

Hi

We are runing plomino 1.17.2 in plone 4.3 When I import design from xml file, it show error:

2013-04-28 10:00:27 INFO Plomino Import allitem 2013-04-28 10:00:27 ERROR Zope.SiteErrorLog 1367143227.710.802155517531 http://blog.buyerclub.cn/@@search Traceback (innermost last): Module ZPublisher.Publish, line 126, in publish Module ZPublisher.mapply, line 77, in mapply Module ZPublisher.Publish, line 46, in call_object Module Products.Five.browser.metaconfigure, line 476, in call Module Products.Five.browser.pagetemplatefile, line 125, in call Module Products.Five.browser.pagetemplatefile, line 59, in call Module zope.pagetemplate.pagetemplate, line 132, in pt_render

Please let me know if it was caused by plone vision different? How to fix it?

Thanks Alex

ebrehault commented 11 years ago

it sounds like a name conflict

maybe something in your db uses an identifier that is also used by Plone and it mess up the import

kyholdings commented 11 years ago

Could you please help me to check which name caused such conflict? Is it could be show in error message?

Yours Sincerely Alex Zhang KY HOLDINGS LIMITED 10/F INT'L BLDG(E) 369 SHUANGXI WEST RD. JINHUA ZHEJIANG CHINA P.C.:321017 TEL: +86 579 8239 0958; 8239 8500 FAX: +86 579 823 8501 E-mail: buyerclub.cn@gmail.com http://freeplone3.openia.net/expander http://kyholdings.objectis.net http://www.kyholdings.com skype: zjsources

2013/4/29 Eric BREHAULT notifications@github.com

it sounds like a name conflict

maybe something in your db uses an identifier that is also used by Plone and it mess up the import

— Reply to this email directly or view it on GitHubhttps://github.com/plomino/Plomino/issues/316#issuecomment-17168238 .

kyholdings commented 11 years ago

Yes Here is the error showed again when re-computer the database:

We’re sorry, but there seems to be an error… Here is the full error message:

Display traceback as text

Traceback (innermost last):

Module ZPublisher.Publish, line 126, in publish Module ZPublisher.mapply, line 77, in mapply Module ZPublisher.Publish, line 46, in call_object Module , line 4, in recomputeAllDocuments Module AccessControl.requestmethod, line 70, in _curried Module Products.CMFPlomino.PlominoDesignManager, line 329, in recomputeAllDocuments Module Products.CMFPlomino.PlominoDatabase, line 320, in setStatus Module ZODB.Connection, line 979, in register Module ZODB.Connection, line 989, in _register Module transaction._transaction, line 213, in join Module transaction._transaction, line 209, in _prior_operation_failed TransactionFailedError: An operation previously failed, with traceback: File "/home/kyholdings/webapps/subaru/buildout-cache/eggs/Zope2-2.13.19-py2.7.egg/ZServer/PubCore/ZServerPublisher.py", line 31, in init response=b) File "/home/kyholdings/webapps/subaru/buildout-cache/eggs/Zope2-2.13.19-py2.7.egg/ZPublisher/Publish.py", line 443, in publish_module environ, debug, request, response) File "/home/kyholdings/webapps/subaru/buildout-cache/eggs/Zope2-2.13.19-py2.7.egg/ZPublisher/Publish.py", line 237, in publish_module_standard response = publish(request, module_name, after_list, debug=debug) File "/home/kyholdings/webapps/subaru/buildout-cache/eggs/Zope2-2.13.19-py2.7.egg/ZPublisher/Publish.py", line 126, in publish request, bind=1) File "/home/kyholdings/webapps/subaru/buildout-cache/eggs/Zope2-2.13.19-py2.7.egg/ZPublisher/mapply.py", line 77, in mapply if debug is not None: return debug(object,args,context) File "/home/kyholdings/webapps/subaru/buildout-cache/eggs/Zope2-2.13.19-py2.7.egg/ZPublisher/Publish.py", line 46, in call_object result=apply(object,args) # Type s to step into published object. File "", line 4, in recomputeAllDocuments File "/home/kyholdings/webapps/subaru/buildout-cache/eggs/AccessControl-3.0.6-py2.7-linux-x86_64.egg/AccessControl/requestmethod.py", line 70, in _curried return callable(_args, *_kw) File "/home/kyholdings/webapps/subaru/buildout-cache/eggs/Products.CMFPlomino-1.17.2-py2.7.egg/Products/CMFPlomino/PlominoDesignManager.py", line 320, in recomputeAllDocuments txn.commit() File "/home/kyholdings/webapps/subaru/buildout-cache/eggs/transaction-1.1.1-py2.7.egg/transaction/_transaction.py", line 336, in commit t, v, tb = self._saveAndGetCommitishError() File "/home/kyholdings/webapps/subaru/buildout-cache/eggs/transaction-1.1.1-py2.7.egg/transaction/_transaction.py", line 329, in commit self._commitResources() File "/home/kyholdings/webapps/subaru/buildout-cache/eggs/transaction-1.1.1-py2.7.egg/transaction/_transaction.py", line 443, in _commitResources rm.commit(self) File "/home/kyholdings/webapps/subaru/buildout-cache/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZODB/Connection.py", line 567, in commit self._commit(transaction) File "/home/kyholdings/webapps/subaru/buildout-cache/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZODB/Connection.py", line 615, in _commit raise ConflictError(object=obj) ConflictError: database conflict error (oid 0x140a, class Products.CMFPlomino.PlominoDatabase.PlominoDatabase)

ebrehault commented 11 years ago

do not recompute the doc before refreshing the db

go to Design tab, then Others then click Refresh database

kyholdings commented 11 years ago

Is it possiable the problem is caused of different theme base? I import desgin from site with Plone classic theme New site is defult theme setting. After I change the new site theme setting as Plone classic theme, the error disappare.

If so, please let me know how to export design XML file to different theme setting site without such error?

Thanks Alex

ebrehault commented 11 years ago

I have no idea, it is more about your theme than about Plomino.