Quote from: OpenGeek at May 28, 2009, 01:35 PM
Quote from: trulss at May 28, 2009, 11:31 AM
On a site with long medical articles I have run into a problem with PHx quitting when the data in the content field is too big. The event log indicates that PHx quits halfway through the second parsing of the content field. Anyone else run into this?
Do you have out of memory errors in your php error log (or the apache error log)? I suspect you are simply running PHP with a very low memory_limit. Try increasing that.
No error messages. I have tried PHP setting memory_limit both higher and with no limit without any change. I suppose it is my use of a chunck common to all templates, where I use multipe PHx calls to check for template that causes the problem:
[tt][+phx:if=`[*template*]`:is=`3`:then=`<!--- side --->
[+phx:if=`[*id*]`:is=`1`:then=`{{forsidenyheter}}{{forsidefagstoff}}`:else=`{{side}}`+]
`+]
[+phx:if=`[*template*]`:is=`4`:then=`<!--- nyhet --->
[+phx:if=`[*id:level*]`:is=`1`:then=`{{nyhetsarkiv}}`+]
[+phx:if=`[*id:level*]`:is=`2`:then=`{{artikkel}}`+]
`+]
[+phx:if=`[*template*]`:is=`6`:then=`<!--- arrangement --->
[+phx:if=`[*id:level*]`:is=`1`:then=`{{arrangementsoversikt}}`+]
[+phx:if=`[*id:level*]`:is=`2`:then=`{{arrangement}}`+]
`+]
[+phx:if=`[*template*]`:is=`7`:then=`<!--- forening --->
Ikke implementert enda
`+]
[+phx:if=`[*template*]`:is=`8`:then=`<!--- stilling --->
Ikke implementert enda
`+]
[+phx:if=`[*template*]`:is=`9`:then=`<!--- link --->
Ikke implementert enda
`+][/tt]
When i divide the chunck into the separate templates everything work ok.