This page contains tips regarding troubleshooting Go Mobile installations.

ImportError: initLevenshtein

If you get example:

ImportError: dynamic module does not define init function (initLevenshtein)

It usually means that you have manually copied python-Levenshtein package from a computer to another. It must be recompiled to be compatible with new OS/Python binary format.

  • Remove src/python-Levenshtein
  • Rerun buildout

plone_view.mark_view(view) exception


# Line 3, Column 0
Expression: <PythonExpr plone_view.mark_view(view)>

{'container': <CampaignPage at /mfabrik/front-page>,
 'context': <CampaignPage at /mfabrik/front-page>,
 'default': <object object at 0x10030a200>,
 'here': <CampaignPage at /mfabrik/front-page>,
 'loop': {},
 'nothing': None,
 'options': {'args': (<Products.Five.metaclass.SimpleViewClass from /Users/moo/twinapex/twinapex/src/ object at 0x10e2fa9d0>,)},
 'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x11117d488>,
 'request': <HTTPRequest, URL=http://m.localhost:8080/mfabrik/front-page/campaignpageview>,
 'root': <Application at >,
 'template': <ImplicitAcquirerWrapper object at 0x111185bd0>,
 'traverse_subpath': [],
 'user': <SpecialUser 'Anonymous User'>,
 'view': <Products.Five.metaclass.SimpleViewClass from /Users/moo/twinapex/twinapex/src/ object at 0x10e2fa9d0>,
 'views': < object at 0x111185c90>}

# Module Products.PageTemplates.ZRPythonExpr, line 49, in __call__
__traceback_info__: plone_view.mark_view(view)
# Module PythonExpr, line 1, in <expression>

You are trying to use Plone 4 on Plone 3 site. Please see installation instructions how to fix this.

Too many redirects error on mobile device when using NGINX

If you set up NGINX to run in front of Zope, and set up a virtual host with it like this:

server {

server_name; location / {

rewrite ^/(.*)$ /VirtualHostBase/http/$1 break; proxy_pass;



the site won't work on a mobile device. The mobile browser will return with a too many redirects error. This is because Zope will always get the request from and not from the actual host, due to the redirection. To solve this problem correct your configuration to be like this:

server {

server_name; location / {

rewrite ^/(.*)$ /VirtualHostBase/http/$1 break; proxy_pass; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;