Re: [Zope] CookieCrumbler, any new versions or replacement?

2012-02-02 Thread Richard Harley
What is the main advantage of PAS over cookie crumbler over SSL out of interest?
Cheers
Rich


On 2 Feb 2012, at 21:57, Shane Hathaway  wrote:

> On 02/02/2012 10:46 AM, Hugo Ramos wrote:
>> I need to reuse a web application I developed around 2005/2006. This
>> App was using CookieCrumbler as it's only authentication method but it
>> seems that after zope 2.11.x the product is broken as it has a few
>> imports from deprecated classes.
>> 
>> Anyone knows about CookieCrumbler versions above 1.2 or some other
>> replacement for this product?
> 
> Zope's pluggable authentication service replaces it.
> 
> Shane
> ___
> Zope maillist  -  Zope@zope.org
> https://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
> https://mail.zope.org/mailman/listinfo/zope-announce
> https://mail.zope.org/mailman/listinfo/zope-dev )
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] CookieCrumbler, any new versions or replacement?

2012-02-02 Thread Shane Hathaway

On 02/02/2012 10:46 AM, Hugo Ramos wrote:

I need to reuse a web application I developed around 2005/2006. This
App was using CookieCrumbler as it's only authentication method but it
seems that after zope 2.11.x the product is broken as it has a few
imports from deprecated classes.

Anyone knows about CookieCrumbler versions above 1.2 or some other
replacement for this product?


Zope's pluggable authentication service replaces it.

Shane
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] charset problems (utf-8)

2012-02-02 Thread Hugo Ramos
Yellow,

I've noticed charset problems displaying HTML pages.

Let's say I want to display a page using a DTML Method like this:



...



á Á à À ç



This page is ok and I can see the portuguese letters fine.

The problem starts when I do this:



...



á Á à À ç 




The first line of characters shows some strange characters and the
sometextfield shows up fine even if it has the same portuguese
characters.


sometextfield comes from a mySQL server using utf-8 as charset and collation.

zope.conf has the following:

rest-input-encoding utf-8
rest-output-encoding utf-8

The browsers also have UTF-8 as the encoding (safari, firefox and
chrome) all show me the same problem.

I also noticed some strange behavior...
If I create "á Á à À ç" as a property field using ustring and call it
as  also gets fine in the browser.

Anyone seen this??? Double encoding maybe???


TIA

-- 
Hugo Ramos - IT Project Manager
E: ram...@gmail.com
W: www.hugoramos.eu

"Nobody expects the Spanish Inquisition!" - Monty Python's

Para visualizar este email em 3D, bata com uma bola de snooker na
testa e fixe o ecrã durante 5 minutos a uma distância de 20cm.
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] CookieCrumbler, any new versions or replacement?

2012-02-02 Thread Hugo Ramos
Yellow,

I need to reuse a web application I developed around 2005/2006. This
App was using CookieCrumbler as it's only authentication method but it
seems that after zope 2.11.x the product is broken as it has a few
imports from deprecated classes.

Anyone knows about CookieCrumbler versions above 1.2 or some other
replacement for this product?


TIA

-- 
Hugo Ramos - IT Project Manager
E: ram...@gmail.com
W: www.hugoramos.eu

"Nobody expects the Spanish Inquisition!" - Monty Python's

Para visualizar este email em 3D, bata com uma bola de snooker na
testa e fixe o ecrã durante 5 minutos a uma distância de 20cm.
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope instance not serving website - Site Error

2012-02-02 Thread Matthew Moore

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/02/12 13:44, Niels Dettenbach (Syndicat IT&Internet) wrote:
>
>
>
>
> Matthew Moore  schrieb:
>
> >>> worked fine. It's only since the server crashed it's not worked.
>
> Just to make shure:
>
> Do you have any backup from the "var" stuff of the Zope Instance (i.e.
Data.fs* aso.)? Could you try to stop Zope, swap the backup in and try
to start (shure, make a current backup of var before you swap in...)?
May be Zope did something rolled within your ZODB and changed ZODB
content in any way i/you can't see on a first view...
>
> I'm not a Plone geek but one possibl point could be somekind of update
from/by zc.buildout you possibly runned in the past?
>
> Could you get any copy/backup of your full Zope instance (including
external / local fs dirs if happen) and try so start that (you have to
fiddle with proper pathes within etc, bin and your (former) local fs
objects within zodb?

I've already tried the following:

Secured current non working zope db and instance
Restored just the Data.fs* files (same error)
Restored whole instance (tried from two different backup sets in
desperation)

I think that pretty much covers it.

I have full backups of the whole server, so can try restoring other
sections, just don't really know enough about zope/plone to know what to
restore.  I store the instance in /usr/local/instances/zope-instance, so
I just copied the whole 'zope-instance' folder over.

I don't think the people who put the content on the website change it
very often, so I can go to even older backups if needed, but I don't
think it'll work.

Cheers,

- -- 
Matthew Moore
Surgical Materials Testing Laboratory
System Administrator
Telephone: +44 (0)1656 752165
Email: m...@smtl.co.uk
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPKpxZAAoJECNCOWbk0evtu0gIAMJsVphJLNhfT7LJIO8hu3Kn
97Y19q7y3W9uXXa1/CBB/UtJ2B74IuA/3lZKrtRfKa/LmZYmR0APsuYy0Rbq1yUj
zackOWNgRZhO4E5xxSrNc9GuQsThGx2hTOp56yMcybhjDujrGUKrTHyKBC7jG3cT
yrM0ntrXeGQX+LSR3jYzKK4qlHRkjHTfjdvDC+rhW9AS/1fR9JaQMNwhjkLEJ7mN
YhsQoymS8AtxWl6pLXc02s/j5NEPfyI9PilshaJSLQEXPDzP6zEln01urerAn17L
wHCiHd5/8cMflV0hhzjF8KmpqsDMkL5kA5xS6QD2of0mIR6NKt1d8rvHv57Vcyc=
=rqg2
-END PGP SIGNATURE-

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope instance not serving website - Site Error

2012-02-02 Thread
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256





Matthew Moore  schrieb:

>>> worked fine.  It's only since the server crashed it's not worked.

Just to make shure:

Do you have any backup from the "var" stuff of the Zope Instance (i.e. Data.fs* 
aso.)? Could you try to stop Zope, swap the backup in and try to start (shure, 
make a current backup of var before you swap in...)? May be Zope did something 
rolled within your ZODB and changed ZODB content in any way i/you can't see on 
a first view...

I'm not a Plone geek but one possibl point could be somekind of update from/by 
zc.buildout you possibly runned in the past?

Could you get any copy/backup of your full Zope instance (including external / 
local fs dirs if happen) and try so start that (you have to fiddle with proper 
pathes within etc, bin and your (former) local fs objects within zodb?


good luck,


Niels.
- --
Niels Dettenbach
Syndicat IT&Internet
http://www.syndicat.com
-BEGIN PGP SIGNATURE-
Version: APG v1.0.8

iIAEAREIAEEFAk8qk0E6HE5pZWxzIERldHRlbmJhY2ggKFN5bmRpY2F0IElUJklu
dGVybmV0KSA8bmRAc3luZGljYXQuY29tPgAKCRBU3ERlZRyiDfOqAJ4uyB1Ox9cy
WA5y7rmalnU2ZvCcSwCVElJDj52lQ1TdDK2Lr0BMGq/WEw==
=YyJg
-END PGP SIGNATURE-

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope instance not serving website - Site Error

2012-02-02 Thread Matthew Moore
On 02/02/12 11:43, Sascha Gottfried wrote:
> Matthew,
>> Sascha,
>>
>>>
>>> you probably need to know the concepts of Zope Through-the-web (TTW)
>>> and Filesystem (FS) Product Coding.
>>> Some templates, scripts are in the ZODB and editable via ZMI - the
>>> recommended style for a not so recent Zope version is using FS Zope
>>> Products. Please identify the zope version by using the
>>> ZMI-ControlPanel.
>> I'm reading up on the TTW and FS stuff.  Any articles/pages you
>> particulary recommend?
>>
> http://readthedocs.org/docs/collective-docs/en/latest/
>
>> I can't edit anything using the ZMI, when I click on the pages in
>> 'Content' I get the error message.
>>
>> The version line from the error log is this - 'Zope/(Zope
>> 2.9.4-final, python 2.4.3, linux2) ZServer/1.1 Plone/2.5'
>>
>>> Please compare the way you start the zope instance with the way your
>>> former colleague did it.
>>
>> I'm not sure what the previous guy did, but I've used the init script
>> (/etc/init.d/zope start) and the zopectl script in the bin/ in the
>> instance.  All methods of starting give the same errors.  I have had
>> to restart zope before now, and I've always used zopectl and that's
>> worked fine.  It's only since the server crashed it's not worked. 
>> I'd only used zopectl fg so I could see what was happening on
>> startup.  Currently the site (www.legulcerforum.org) is started using
>> the init script.
>>
>>> Identify if you are using a custom developed  Zope Product with
>>> templates and a 'main_template' and optionally a 'folder_listing'
>>> Zope Page Template or similar. Find them by searching in the
>>> filesystem ('Products' Folder is one option) and in the ZMI and tell
>>> us the location if you find them.
>> I don't think it's custom, I've put a list of the Products directory
>> on pastebin:
>>
>> http://pastebin.com/cftnjbgZ
>>
>> I think it's pretty much just plone.
>>
> Please go for portal_skins tool in ZMI , identify the current skin and
> check that the chosen skin lists several layers. These layers consist
> of several FS Directory View belonging to several products and their
> skin directories.
> If you are using Plone 2.5 use this book. There is also a HTML version
> free available in the web.
> http://plone.org/documentation/kb/definitive-guide
>
> Consult the chapter about skinning Plone, the 'custom' folder and the
> setup of skins and layers.

Thanks for all the links.

I'm not 100% as to exactly which one is the skin that's in use, but all
of the folders in plone_skins do have files and folders in them.  The
one that's most likely to be it (called custom and not changed since
2006, which is when the site was installed).  Has all the logos, a
main_template (which looks ok as far as I can tell) and a css file as
well as a base_properties directory.

Cheers,

Matthew
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope instance not serving website - Site Error

2012-02-02 Thread Sascha Gottfried

Matthew,

Sascha,



you probably need to know the concepts of Zope Through-the-web (TTW) 
and Filesystem (FS) Product Coding.
Some templates, scripts are in the ZODB and editable via ZMI - the 
recommended style for a not so recent Zope version is using FS Zope 
Products. Please identify the zope version by using the ZMI-ControlPanel.
I'm reading up on the TTW and FS stuff.  Any articles/pages you 
particulary recommend?



http://readthedocs.org/docs/collective-docs/en/latest/

I can't edit anything using the ZMI, when I click on the pages in 
'Content' I get the error message.


The version line from the error log is this - 'Zope/(Zope 2.9.4-final, 
python 2.4.3, linux2) ZServer/1.1 Plone/2.5'


Please compare the way you start the zope instance with the way your 
former colleague did it.


I'm not sure what the previous guy did, but I've used the init script 
(/etc/init.d/zope start) and the zopectl script in the bin/ in the 
instance.  All methods of starting give the same errors.  I have had 
to restart zope before now, and I've always used zopectl and that's 
worked fine.  It's only since the server crashed it's not worked.  I'd 
only used zopectl fg so I could see what was happening on startup.  
Currently the site (www.legulcerforum.org) is started using the init 
script.


Identify if you are using a custom developed  Zope Product with 
templates and a 'main_template' and optionally a 'folder_listing' 
Zope Page Template or similar. Find them by searching in the 
filesystem ('Products' Folder is one option) and in the ZMI and tell 
us the location if you find them.
I don't think it's custom, I've put a list of the Products directory 
on pastebin:


http://pastebin.com/cftnjbgZ

I think it's pretty much just plone.

Please go for portal_skins tool in ZMI , identify the current skin and 
check that the chosen skin lists several layers. These layers consist of 
several FS Directory View belonging to several products and their skin 
directories.
If you are using Plone 2.5 use this book. There is also a HTML version 
free available in the web.

http://plone.org/documentation/kb/definitive-guide

Consult the chapter about skinning Plone, the 'custom' folder and the 
setup of skins and layers.


It could be that the Filesystem Directory Views need to be created 
manually - if the product code is not doing that properly.

How can I check that?

I used the ATCT Tool to recatalog the site, not sure if that's the 
same thing.


Please check this stuff and come back. And the way with pastebin is 
right - the more (proper) information we have the better. At the 
moment the bits and pieces of your application are not complete to me 
- help me. Now its your turn.


I have started to see some more errors in the error_log eg:

http://pastebin.com/ZrhquAZH


I will have a look at that later - I need to go now.


Hopefully that's useful.  Thanks for you help.

Matthew


Sascha


Sascha

Am 02.02.2012 11:27, schrieb Matthew Moore:

On 02/02/12 10:19, Niels Dettenbach wrote:

Am Donnerstag, 2. Februar 2012, 10:15:44 schrieb Matthew Moore:

For more detailed information about the error, please refer to the error
log.

It highly makes sense to do that (and i.e. post the details here) ;)


The output from zopectl fg is on the pastebin link:

http://pastebin.com/bhBp7AXf

It's quite a lot of output, so I didn't really want to post it to 
the list.  But here's a selection:


1.
2012-02-01 16:02:16 ERROR root Exception while rendering an
error message
2.
Traceback (most recent call last):
3.
  File "/usr/local/zope/lib/python/OFS/SimpleItem.py", line 223,
in raise_standardErrorMessage
4.
v = s(**kwargs)
5.
  File
"/usr/local/instances/zope-voyager2/Products/CMFCore/FSPythonScript.py",
line 108, in __call__
6.
return Script.__call__(self, *args, **kw)
7.
  File
"/usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py", line
311, in __call__
8.
return self._bindAndExec(args, kw, None)
9.
  File
"/usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py", line
348, in _bindAndExec
10.
return self._exec(bound_data, args, kw)
11.
  File
"/usr/local/instances/zope-voyager2/Products/CMFCore/FSPythonScript.py",
line 164, in _exec
12.
result = f(*args, **kw)
13.
  File "Script (Python)", line 16, in standard_error_message
14.
  File
"/usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py", line
311, in __call__
15.
return self._bindAndExec(args, kw, None)
16.
  File
"/usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py", line
348, in _bindAndExec
17.
return self._exec(bound_data, args, kw)
18.
  File
"/usr/local/instances/zope-voyager2/Products/CMFCore/FSPageTemplate.py",
line 195, in _exec
19.
result = self.pt_render(extra_context=bound_names)
20.
  File
"/usr/local/instances/zope-voyager2/Products/CMFCore/FSPageTemplate.py",
line 134, in pt_r

Re: [Zope] Zope instance not serving website - Site Error

2012-02-02 Thread Matthew Moore
Sascha,

>
> you probably need to know the concepts of Zope Through-the-web (TTW)
> and Filesystem (FS) Product Coding.
> Some templates, scripts are in the ZODB and editable via ZMI - the
> recommended style for a not so recent Zope version is using FS Zope
> Products. Please identify the zope version by using the ZMI-ControlPanel.
I'm reading up on the TTW and FS stuff.  Any articles/pages you
particulary recommend?

I can't edit anything using the ZMI, when I click on the pages in
'Content' I get the error message.

The version line from the error log is this - 'Zope/(Zope 2.9.4-final,
python 2.4.3, linux2) ZServer/1.1 Plone/2.5'

> Please compare the way you start the zope instance with the way your
> former colleague did it.

I'm not sure what the previous guy did, but I've used the init script
(/etc/init.d/zope start) and the zopectl script in the bin/ in the
instance.  All methods of starting give the same errors.  I have had to
restart zope before now, and I've always used zopectl and that's worked
fine.  It's only since the server crashed it's not worked.  I'd only
used zopectl fg so I could see what was happening on startup.  Currently
the site (www.legulcerforum.org) is started using the init script.

> Identify if you are using a custom developed  Zope Product with
> templates and a 'main_template' and optionally a 'folder_listing' Zope
> Page Template or similar. Find them by searching in the filesystem
> ('Products' Folder is one option) and in the ZMI and tell us the
> location if you find them.
I don't think it's custom, I've put a list of the Products directory on
pastebin:

http://pastebin.com/cftnjbgZ

I think it's pretty much just plone.

>
> It could be that the Filesystem Directory Views need to be created
> manually - if the product code is not doing that properly.
How can I check that? 

I used the ATCT Tool to recatalog the site, not sure if that's the same
thing.

> Please check this stuff and come back. And the way with pastebin is
> right - the more (proper) information we have the better. At the
> moment the bits and pieces of your application are not complete to me
> - help me. Now its your turn.

I have started to see some more errors in the error_log eg:

http://pastebin.com/ZrhquAZH

Hopefully that's useful.  Thanks for you help.

Matthew

>
> Sascha
>
> Am 02.02.2012 11:27, schrieb Matthew Moore:
>> On 02/02/12 10:19, Niels Dettenbach wrote:
>>> Am Donnerstag, 2. Februar 2012, 10:15:44 schrieb Matthew Moore:
 For more detailed information about the error, please refer to the error
 log.
>>> It highly makes sense to do that (and i.e. post the details here) ;)
>>>
>> The output from zopectl fg is on the pastebin link:
>>
>> http://pastebin.com/bhBp7AXf
>>
>> It's quite a lot of output, so I didn't really want to post it to the
>> list.  But here's a selection:
>>
>> 1.
>> 2012-02-01 16:02:16 ERROR root Exception while rendering an error
>> message
>> 2.
>> Traceback (most recent call last):
>> 3.
>>   File "/usr/local/zope/lib/python/OFS/SimpleItem.py", line 223,
>> in raise_standardErrorMessage
>> 4.
>> v = s(**kwargs)
>> 5.
>>   File
>> "/usr/local/instances/zope-voyager2/Products/CMFCore/FSPythonScript.py",
>> line 108, in __call__
>> 6.
>> return Script.__call__(self, *args, **kw)
>> 7.
>>   File
>> "/usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py", line
>> 311, in __call__
>> 8.
>> return self._bindAndExec(args, kw, None)
>> 9.
>>   File
>> "/usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py", line
>> 348, in _bindAndExec
>>10.
>> return self._exec(bound_data, args, kw)
>>11.
>>   File
>> "/usr/local/instances/zope-voyager2/Products/CMFCore/FSPythonScript.py",
>> line 164, in _exec
>>12.
>> result = f(*args, **kw)
>>13.
>>   File "Script (Python)", line 16, in standard_error_message
>>14.
>>   File
>> "/usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py", line
>> 311, in __call__
>>15.
>> return self._bindAndExec(args, kw, None)
>>16.
>>   File
>> "/usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py", line
>> 348, in _bindAndExec
>>17.
>> return self._exec(bound_data, args, kw)
>>18.
>>   File
>> "/usr/local/instances/zope-voyager2/Products/CMFCore/FSPageTemplate.py",
>> line 195, in _exec
>>19.
>> result = self.pt_render(extra_context=bound_names)
>>20.
>>   File
>> "/usr/local/instances/zope-voyager2/Products/CMFCore/FSPageTemplate.py",
>> line 134, in pt_render
>>21.
>> result = FSPageTemplate.inheritedAttribute('pt_render')(
>>22.
>>   File
>> "/usr/local/zope/lib/python/Products/PageTemplates/PageTemplate.py",
>> line 104, in pt_render
>>23.
>> tal=not source, strictinsert=0)()
>>24.
>>   File "/usr/local/zope/lib/python/TAL/TALInterpreter.py", line
>> 238, in __call__
>>25.
>> self.interpret(self.program)
>>

Re: [Zope] Zope instance not serving website - Site Error

2012-02-02 Thread Sascha Gottfried

Hi Matthew,

you probably need to know the concepts of Zope Through-the-web (TTW) and 
Filesystem (FS) Product Coding.
Some templates, scripts are in the ZODB and editable via ZMI - the 
recommended style for a not so recent Zope version is using FS Zope 
Products. Please identify the zope version by using the ZMI-ControlPanel.
Please compare the way you start the zope instance with the way your 
former colleague did it.
Identify if you are using a custom developed  Zope Product with 
templates and a 'main_template' and optionally a 'folder_listing' Zope 
Page Template or similar. Find them by searching in the filesystem 
('Products' Folder is one option) and in the ZMI and tell us the 
location if you find them.


It could be that the Filesystem Directory Views need to be created 
manually - if the product code is not doing that properly.
Please check this stuff and come back. And the way with pastebin is 
right - the more (proper) information we have the better. At the moment 
the bits and pieces of your application are not complete to me - help 
me. Now its your turn.


Sascha

Am 02.02.2012 11:27, schrieb Matthew Moore:

On 02/02/12 10:19, Niels Dettenbach wrote:

Am Donnerstag, 2. Februar 2012, 10:15:44 schrieb Matthew Moore:

For more detailed information about the error, please refer to the error
log.

It highly makes sense to do that (and i.e. post the details here) ;)


The output from zopectl fg is on the pastebin link:

http://pastebin.com/bhBp7AXf

It's quite a lot of output, so I didn't really want to post it to the 
list.  But here's a selection:


1.
2012-02-01 16:02:16 ERROR root Exception while rendering an error
message
2.
Traceback (most recent call last):
3.
  File "/usr/local/zope/lib/python/OFS/SimpleItem.py", line 223,
in raise_standardErrorMessage
4.
v = s(**kwargs)
5.
  File
"/usr/local/instances/zope-voyager2/Products/CMFCore/FSPythonScript.py",
line 108, in __call__
6.
return Script.__call__(self, *args, **kw)
7.
  File "/usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py",
line 311, in __call__
8.
return self._bindAndExec(args, kw, None)
9.
  File "/usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py",
line 348, in _bindAndExec
10.
return self._exec(bound_data, args, kw)
11.
  File
"/usr/local/instances/zope-voyager2/Products/CMFCore/FSPythonScript.py",
line 164, in _exec
12.
result = f(*args, **kw)
13.
  File "Script (Python)", line 16, in standard_error_message
14.
  File "/usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py",
line 311, in __call__
15.
return self._bindAndExec(args, kw, None)
16.
  File "/usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py",
line 348, in _bindAndExec
17.
return self._exec(bound_data, args, kw)
18.
  File
"/usr/local/instances/zope-voyager2/Products/CMFCore/FSPageTemplate.py",
line 195, in _exec
19.
result = self.pt_render(extra_context=bound_names)
20.
  File
"/usr/local/instances/zope-voyager2/Products/CMFCore/FSPageTemplate.py",
line 134, in pt_render
21.
result = FSPageTemplate.inheritedAttribute('pt_render')(
22.
  File
"/usr/local/zope/lib/python/Products/PageTemplates/PageTemplate.py",
line 104, in pt_render
23.
tal=not source, strictinsert=0)()
24.
  File "/usr/local/zope/lib/python/TAL/TALInterpreter.py", line
238, in __call__
25.
self.interpret(self.program)
26.
  File "/usr/local/zope/lib/python/TAL/TALInterpreter.py", line
281, in interpret
27.
handlers[opcode](self, args)
28.
  File "/usr/local/zope/lib/python/TAL/TALInterpreter.py", line
735, in do_useMacro
29.
macro = self.engine.evaluateMacro(macroExpr)
30.
  File
"/usr/local/zope/lib/python/Products/PageTemplates/TALES.py", line
221, in evaluate
31.
return expression(self)
32.
  File
"/usr/local/zope/lib/python/Products/PageTemplates/Expressions.py", line
185, in __call__
33.
return self._eval(econtext)
34.
  File
"/usr/local/zope/lib/python/Products/PageTemplates/Expressions.py", line
173, in _eval
35.
ob = self._subexprs[-1](econtext)
36.
  File
"/usr/local/zope/lib/python/Products/PageTemplates/Expressions.py", line
127, in _eval
37.
ob = restrictedTraverse(ob, path, getSecurityManager())
38.
  File
"/usr/local/zope/lib/python/Products/PageTemplates/Expressions.py", line
286, in restrictedTraverse
39.
o=t(REQUEST, name)
40.
  File "/usr/local/zope/lib/python/Products/Five/traversable.py",
line 115, in __bobo_traverse__
41.
raise AttributeError(name)
42.
AttributeError: main_template


The error_log that you can access through the management page is 
blank.  There's nothing in the syslogs/messages/apache logs.


Cheers,
--
Matthew Moore
Surgical Materials Testing Laboratory
System Administrator
Teleph

Re: [Zope] Zope instance not serving website - Site Error

2012-02-02 Thread Matthew Moore
On 02/02/12 10:19, Niels Dettenbach wrote:
> Am Donnerstag, 2. Februar 2012, 10:15:44 schrieb Matthew Moore:
>> For more detailed information about the error, please refer to the error
>> log.
> It highly makes sense to do that (and i.e. post the details here) ;)
>
The output from zopectl fg is on the pastebin link:

http://pastebin.com/bhBp7AXf

It's quite a lot of output, so I didn't really want to post it to the
list.  But here's a selection:

 1.
2012-02-01 16:02:16 ERROR root Exception while rendering an error
message
 2.
Traceback (most recent call last):
 3.
  File "/usr/local/zope/lib/python/OFS/SimpleItem.py", line 223, in
raise_standardErrorMessage
 4.
v = s(**kwargs)
 5.
  File
"/usr/local/instances/zope-voyager2/Products/CMFCore/FSPythonScript.py",
line 108, in __call__
 6.
return Script.__call__(self, *args, **kw)
 7.
  File "/usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py",
line 311, in __call__
 8.
return self._bindAndExec(args, kw, None)
 9.
  File "/usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py",
line 348, in _bindAndExec
10.
return self._exec(bound_data, args, kw)
11.
  File
"/usr/local/instances/zope-voyager2/Products/CMFCore/FSPythonScript.py",
line 164, in _exec
12.
result = f(*args, **kw)
13.
  File "Script (Python)", line 16, in standard_error_message
14.
  File "/usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py",
line 311, in __call__
15.
return self._bindAndExec(args, kw, None)
16.
  File "/usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py",
line 348, in _bindAndExec
17.
return self._exec(bound_data, args, kw)
18.
  File
"/usr/local/instances/zope-voyager2/Products/CMFCore/FSPageTemplate.py",
line 195, in _exec
19.
result = self.pt_render(extra_context=bound_names)
20.
  File
"/usr/local/instances/zope-voyager2/Products/CMFCore/FSPageTemplate.py",
line 134, in pt_render
21.
result = FSPageTemplate.inheritedAttribute('pt_render')(
22.
  File
"/usr/local/zope/lib/python/Products/PageTemplates/PageTemplate.py",
line 104, in pt_render
23.
tal=not source, strictinsert=0)()
24.
  File "/usr/local/zope/lib/python/TAL/TALInterpreter.py", line 238,
in __call__
25.
self.interpret(self.program)
26.
  File "/usr/local/zope/lib/python/TAL/TALInterpreter.py", line 281,
in interpret
27.
handlers[opcode](self, args)
28.
  File "/usr/local/zope/lib/python/TAL/TALInterpreter.py", line 735,
in do_useMacro
29.
macro = self.engine.evaluateMacro(macroExpr)
30.
  File "/usr/local/zope/lib/python/Products/PageTemplates/TALES.py",
line 221, in evaluate
31.
return expression(self)
32.
  File
"/usr/local/zope/lib/python/Products/PageTemplates/Expressions.py",
line 185, in __call__
33.
return self._eval(econtext)
34.
  File
"/usr/local/zope/lib/python/Products/PageTemplates/Expressions.py",
line 173, in _eval
35.
ob = self._subexprs[-1](econtext)
36.
  File
"/usr/local/zope/lib/python/Products/PageTemplates/Expressions.py",
line 127, in _eval
37.
ob = restrictedTraverse(ob, path, getSecurityManager())
38.
  File
"/usr/local/zope/lib/python/Products/PageTemplates/Expressions.py",
line 286, in restrictedTraverse
39.
o=t(REQUEST, name)
40.
  File "/usr/local/zope/lib/python/Products/Five/traversable.py",
line 115, in __bobo_traverse__
41.
raise AttributeError(name)
42.
AttributeError: main_template


The error_log that you can access through the management page is blank. 
There's nothing in the syslogs/messages/apache logs.

Cheers,

-- 
Matthew Moore
Surgical Materials Testing Laboratory
System Administrator
Telephone: +44 (0)1656 752165
Email: m...@smtl.co.uk

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope instance not serving website - Site Error

2012-02-02 Thread Niels Dettenbach
Am Donnerstag, 2. Februar 2012, 11:19:36 schrieb Niels Dettenbach:
> It highly makes sense to do that (and i.e. post the details here)

...aaaeh, sorry for the nopise - found it in your pastebin.


>raise AttributeError(name)
> AttributeError: main_template
It seems main_template could not be found by Zope / Aquisition (anymore?). Not 
shure why...


cheers,

Niels.
-- 
---
Niels Dettenbach
Syndicat IT&Internet
http://www.syndicat.com/

signature.asc
Description: This is a digitally signed message part.
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope instance not serving website - Site Error

2012-02-02 Thread Niels Dettenbach
Am Donnerstag, 2. Februar 2012, 10:15:44 schrieb Matthew Moore:
> For more detailed information about the error, please refer to the error
> log.

It highly makes sense to do that (and i.e. post the details here) ;)


cheeers,

Niels.
-- 
---
Niels Dettenbach
Syndicat IT&Internet
http://www.syndicat.com/

signature.asc
Description: This is a digitally signed message part.
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Zope instance not serving website - Site Error

2012-02-02 Thread Matthew Moore
Hi,

My rather old Zope2 server crashed yesterday and took down the one
website that it was still serving.  The site now just throws out the
following error:

"Site Error

An error was encountered while publishing this resource.

Debugging Notice
Zope has encountered a problem publishing your object.

Cannot locate object at: http://www.legulcerforum.org/news/folder_listing

Troubleshooting Suggestions

The URL may be incorrect.
The parameters passed to this resource may be incorrect.
A resource that this resource relies on may be encountering an error.

For more detailed information about the error, please refer to the error
log.

If the error persists please contact the site maintainer. Thank you for
your patience.
(Also, the following error occurred while attempting to render the
standard error message, please see the event log for full details:
main_template)"

Part of the site is accessible, a zope based photo gallery and the ZMI
(management interface), but the main part of the site isn't working, it
just throws out the above error.

I've restored the whole instance from backups and I still get the same
error, so I don't think the problem is with the instance (but I'm
totally new to zope, so willing to be told I'm wrong).  When running the
instance in the foreground - zopectl fg, I get the following -
http://pastebin.com/bhBp7AXf

I'm honestly not sure exactly what version of zope it is, because when I
start poking around in the ZMI, I get the above error.  Python is
2.4.3.  The server is Ubuntu 8.04 LTS.  Zope hasn't been installed
through the package manager.

I've never really used zope before, this is something I've inherited
from a previous sysadmin.  I'm happy to RTFM and try things out (this is
the only site on this server and I have fairly decent backups) but my
zope/python knowledge is pretty minimal, so sorry if I'm missing
something obvious.

Thanks,

-- 
Matthew Moore
Surgical Materials Testing Laboratory
System Administrator
Telephone: +44 (0)1656 752165
Email: m...@smtl.co.uk

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )