sidebar menus
Brought to you by:
filofant
Hi again.
As per your request, now in Support :->
filofant=# select id, lang from templates where name='treescript';
id | lang
----+------
(0 rows)
So this is definitely wrong I guess, but I have no idea how that can happen. I did run all the mktempl stuff like in the manual, but apparently something went went haywire.
How best to redo this step ?
Thanks for your input!
Florian
Logged In: YES
user_id=1373179
Originator: NO
Hi!
You could just rerun the mktempl script, it will delete all templates
from the database before loading it again. If the reload fails again
(check it with the sql command yo did before), please tell me more
about your environment (db version, local or remote db, authentication
etc.)
Maybe you can reroute the output of mktempl to a file and attach it here?
regards, jakob
Logged In: YES
user_id=688319
Originator: YES
Hi again.
Rerunning mktempl doesnt solve the problem, the SQL query still returns 0 results. Attached is all the output from mktempl in my setup. This is a hint, I think:
en/treescript.html
./insertfiles.sh: line 5: 14994 Segmentation fault $TEMPLDR $1 `echo $FNAME|sed "s/$1\///g"|tr "/" "_"|sed "s/\..*//g"` $FNAME
Anyway, the box is a simple Debian Etch system. Database is a locally installed Postgres 8.1.11, authentication is password or ident based. User filofant is a root-user to postgres.
File Added: mktempl.output.txt
Logged In: YES
user_id=1373179
Originator: NO
Hi!
Does it also crash, when you start templdr direct:
templdr en treescript en/treescript.html
regards, jakob
Logged In: YES
user_id=688319
Originator: YES
Yup:
filofant@neon:~/templates$ templdr en treescript en/treescript.html
Segmentation fault
I've also made one dump core, and attached output of gdb 'bt full' just in case that helps..
File Added: filofant-templdr-core.txt
Logged In: YES
user_id=1373179
Originator: NO
Hi!
Could you please compile and install the file I attach
and capture the output (if any)?
Attached: src/lib/fftemplate.cpp
regards, jakob
File Added: fftemplate.cpp
source file with debug output
Logged In: YES
user_id=688319
Originator: YES
Hi Jacob,
sorry I didnt get around to this test yet. Your file does not compile on my box:
make[2]: Entering directory `/ext/src/filofant-1.1.6/src/lib'
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I/usr/include/postgresql -g -O2 -MT fftemplate.lo -MD -MP -MF ".deps/fftemplate.Tpo" -c -o fftemplate.lo fftemplate.cpp; \ then mv -f ".deps/fftemplate.Tpo" ".deps/fftemplate.Plo"; else rm -f ".deps/fftemplate.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I/usr/include/postgresql -g -O2 -MT fftemplate.lo -MD -MP -MF .deps/fftemplate.Tpo -c fftemplate.cpp -fPIC -DPIC -o .libs/fftemplate.o
fftemplate.cpp: In member function 'void filofant::ffTemplate::save(filofant::ffDbConnection*)':
fftemplate.cpp:80: error: 'class filofant::ffDbConnection' has no member named 'getQuotingPrefix'
fftemplate.cpp:100: error: 'class filofant::ffDbConnection' has no member named 'getQuotingPrefix'
make[2]: *** [fftemplate.lo] Error 1
make[2]: Leaving directory `/ext/src/filofant-1.1.6/src/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/ext/src/filofant-1.1.6/src'
make: *** [all] Error 2
I think you made some other changes I need as well...
Hi Florian,
sorry for my long silence, your last post reached me during my
holidays and I forgot to answer afterwards.
I you are still intrrested, you can download sources via
SVN (/branch/ffkoja) which should solve this issue
(See also bug with ID 2136254).
regards, jakob