Segmentation Fault While Parsing HTML Template

Discussion of the Meteohub software package

Moderator: Mattk

Post Reply
dgunnell
Junior Boarder
Junior Boarder
Posts: 22
Joined: Sat May 01, 2010 11:54 am

Segmentation Fault While Parsing HTML Template

Post by dgunnell »

Getting the following error while trying to parse my HTML template which is also attached so you can try and reproduce the problem.

May 2 07:40:33 meteohub kernel: meteohtml.cgi[3706]: segfault at bfb4f000 eip 08049aa1 esp bf9da830 error 4 [file name=testtags-d9a352acc7fd3ae66da8e0a7c7e1b04b.zip size=10622]http://www.meteohub.de/joomla/images/fb ... e1b04b.zip[/file]
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7879
Joined: Mon Oct 01, 2007 10:51 pm

Re:Segmentation Fault While Parsing HTML Template

Post by admin »

The "[#]" in your template killed the replacing mechanism. I fixed this. Please try new update referenced below.

Using the "blanktheunknown" directive might not be what you are looking for, because this strips all square bracket enclosures Meteohub doesn't have a value for. That will destroy your array references in your php/javascript. I would recommend to use [varname:default] constructor, where default gets returned when Meteohub variable "varname" is not there. [varname:] will return an empty string when no value found for "varname".

Link to update: http://www.meteohub.de/files/update-v4.6gx.upd
Post Reply