Submitted by : cstark at: 2006-08-16T14:48:12+00:00 (11 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

Details:

Error Type
   NameError
Error Value
global name 'logger' is not defined
Request made at
2006/08/16 17:17:37.555 GMT-4

. Plone version: 2.5 Zope version: (Zope 2.9.3-, python 2.4.3, linux2) Apache version: CMF version (if known): CMF-1.6.1 Browser(s) and version(s): Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6 Operating system: linux2 Python version: 2.4.3 (#1, Aug 15 2006, 10:58:15) [GCC 3.4.4 20050721 (Red Hat 3.4.4-2)]? Debug mode: No . ATBiblioList? 0.8 installed ATContentTypes? 1.1.1-final installed ATExtensions? 0.7.1 installed ATReferenceBrowserWidget? 1.4 installed Archetypes 1.4.0-final installed BTreeFolder2? BTreeFolder2?-1.0.2 CMFActionIcons? CMF-1.6.1 installed CMFBibliographyAT? 0.8.0 installed CMFCalendar? CMF-1.6.1 installed CMFCore CMF-1.6.1 CMFDefault? CMF-1.6.1 CMFDynamicViewFTI? 2.0.0 CMFFormController? 2.0.4 installed CMFPhoto? 0.5.0 CMFPhotoAlbum? 0.5.0 CMFPlacefulWorkflow? 1.0.0-final installed CMFPlone? 2.5 CMFQuickInstallerTool 1.5.9 installed CMFSetup? CMF-1.6.1 CMFSquidTool? 1.3.0 installed CMFTopic? CMF-1.6.1 CMFUid? CMF-1.6.1 CacheSetup? 1.0 installed CalendarX? 0.4.15(stable) 2005-03-12 installed DCWorkflow? CMF-1.6.1 Epoz 2.0.0 ExtendedPathIndex? 2.3 ExternalEditor 0.9.1 ExternalMethod External Method-1-0-0 FCKeditor? 2.0.2 Five Five 1.3.5 GenericSetup? GenericSetup?-1.1 GroupUserFolder? 3.52 installed Hotfix_20060705 Hotfix_20060705 MIMETools? MailHost MailHost-1-3-0 Marshall 0.6.5-final MemcachedManager? MimetypesRegistry? 1.4.0-final installed OFSP OFSP-1-0-0 PageCacheManager? 1.0 PageTemplates PageTemplates-1-4-0 PasswordResetTool? 0.4 installed PlacelessTranslationService? 1.3.1 PloneErrorReporting? 0.11 installed PloneLanguageTool? 1.3 installed PlonePAS? 2.0.1 installed PloneTestCase? 0.8.2 PloneTranslations? 2.5.0 PloneiCalendar? 1.5 installed PluggableAuthService? PluggableAuthService?-1.2 PluginIndexes? PluginRegistry? 1.1 PolicyHTTPCacheManager? 1.0.0 PortalTransforms? 1.4.0-final installed PythonScripts? PythonScripts?-2-0-0 ResourceRegistries? 1.3 installed SecureMailHost? 1.0.4 Sessions SiteAccess? SiteAccess?-2-0-0 SiteErrorLog? StagingAddOn? 1.0 installed StandardCacheManagers? StandardCacheManagers?-1-1-0 TemporaryFolder? TextIndexNG3? 3.1.9 Transience ZCTextIndex? ZCatalog ZCatalog-2-2-0 ZGadflyDA? ZODBMountPoint? ZReST 1.1 ZSQLMethods? ZWiki ZWiki-0-55-0 installed ZopeTutorial? Zope Tutorial 1.2 kupu kupu 1.3.7-plone installed statusmessages 2.0 validation 1.4.0-final

Traceback (innermost last):

Module ZPublisher.Publish, line 115, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 41, in call_object
Module Products.ZWiki.Editing, line 304, in edit
Module Products.ZWiki.Editing, line 431, in handleRename
Module Products.ZWiki.Editing, line 538, in rename
Module Products.ZWiki.Editing, line 580, in changeIdPreservingCreator
Module Products.ATContentTypes.lib.autosort, line 150, in manage_renameObject
Module Products.Archetypes.OrderedBaseFolder, line 165, in moveObjectToPosition
Module Products.ATContentTypes.lib.autosort, line 139, in moveObjectsByDelta
Module Products.CacheSetup.patch, line 98, in moveObjectsByDelta
Module Products.CacheSetup.patch, line 74, in _purge
Module Products.CMFSquidTool.queue, line 120, in queue
Module Products.CMFSquidTool.SquidTool, line 140, in getUrlsToPurge
NameError: global name 'logger' is not defined

Same problem with Zwiki-0.56 --silvio schloeffel, Sun, 03 Sep 2006 06:03:39 -0700 reply

I have the same problem with Zwiki-0.56.

Traceback (innermost last):

Module ZPublisher.Publish, line 115, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 41, in call_object
Module Products.ZWiki.Editing, line 309, in edit
Module Products.ZWiki.Editing, line 436, in handleRename
Module Products.ZWiki.Editing, line 543, in rename
Module Products.ZWiki.Editing, line 585, in changeIdPreservingCreator
Module Products.ATContentTypes.lib.autosort, line 150, in manage_renameObject
Module Products.Archetypes.OrderedBaseFolder, line 165, in moveObjectToPosition
Module Products.ATContentTypes.lib.autosort, line 139, in moveObjectsByDelta
Module Products.CacheSetup.patch, line 98, in moveObjectsByDelta
Module Products.CacheSetup.patch, line 74, in _purge
Module Products.CMFSquidTool.queue, line 120, in queue
Module Products.CMFSquidTool.SquidTool, line 140, in getUrlsToPurge
NameError: global name 'logger' is not defined

Python-2.4.3, Zope-2.9.4 and Plone-2.5 on a Mandriva 2007 machine.

... --simon, Sun, 03 Sep 2006 14:17:43 -0700 reply

Status: open => closed

Hi.. it is CMFSquidTool?.SquidTool? that's breaking, in getUrlsToPurge, line 140. You should report it to the CST maintainer.

further info on ticket 1285 --nd51, Tue, 26 Sep 2006 08:36:12 -0700 reply

I can confirm the same problem with Plone 2.1.3 (+ CacheFu? from 2.1.3 bundle), ZWiki 0.53 on Zope 2.8.5.

Looks like the original submitter of this ticket reported it on plone.org : http://plone.org/products/cachefu/issues/64

If there's any workaround ZWiki's end that'd be good because regrettably the plone/CacheFu? guys may well not consider this a high priority as they're uninterested in ZWiki and meanwhile, people now have production sites where they cannot add ZWiki pages to new folders (it still works adding pages to existing Wikis).

Enfold --EmmaLaurijssens, Tue, 26 Sep 2006 09:10:24 -0700 reply

A customer asked me to implement a wiki on Enfold Server 2.9. If the above is correct, it should break there as well, and then I should be able to draw a bit of attention from the folks at Enfold. After all, my customer paid them quite a few $$ for the product.

Enfold --Simon Michael, Tue, 26 Sep 2006 10:10:47 -0700 reply

Sounds good Frank - let us know what you find.

I have only glanced at the traceback, but imho this is not something Zwiki should be trying to work around. You can do far too much of that and end up complicating your product to nobody's benefit in the long run. This seems like an obvious coding error in SquidTool?.py which should be fixed without hemming and hawing. :)

CMFSquidTool? --nd51, Thu, 28 Sep 2006 04:13:24 -0700 reply

Fair point about ZWiki shouldn't have to hack around this bug. This situation is quite bad though. We now have a choice - either run your Plone site without CacheFu?, which means its back to the bad old slow days, or, leave it with CacheFu? installed but no-one can create a new wiki page in a new folder.

I only hope that bug in CMFSquidTool? is general enough for them to consider "worth fixing". The problem is certain Plone people still don't like ZWiki and might not be bothered to support it, especially if they want to push Wicked instead. (Personally I think there's space for, and much usefulness in, both ZWiki and Wicked).

I tried BTW uninstalling CMFSquidTool? on its own, leaving CacheFu?. But then when you go to Cache configuration, CacheFu? blows up with "attribute error : portal_squid" . I really think it should handle that more gracefully.

Hopefully people will respond by accepting a patch for this bug instead of saying "don't use ZWiki". I wait with curiousity. ;-)

sorted :-) --nd51, Thu, 28 Sep 2006 07:25:11 -0700 reply

Got this very helpful response from Wichert Akkerman:

"You can fix that by adding this line at the top of SquidTool?.py:

from Products.CMFSquidTool?.utils import logger

I have fixed that in the subversion repository."

I just tried that and it works. Much as I don't like patching a live system - a single line import statement seems fairly harmless.

Or if you don't want that, at least you know it'll now find its way into the next CacheFu? release.

So, major kudos to Wichert.

sorted :-) --Simon Michael, Thu, 28 Sep 2006 09:04:25 -0700 reply

Thanks for following this up.