Page 1 of 1
guestbook module 0.6 trouble
Posted: Wed Oct 05, 2005 5:03 pm
by pishkus
hi,
i tried the gastbuch (guestbook) module from wiki today, but i always get an error:
Code: Select all
Fatal error: Call to a member function on a non-object in ../modules/gastbuch/gastbuch.module.php on line 717
i thought this could be the problem, that i'm still on 0.10 cmsms version, so i grabbed 0.10.3 version, but the problem is still there...
i found something in the forums about 0.5 related bugs, tried to do as an offered solution, but it still does not work...
the line 717 is: $max=$dbresultmax->RowCount();
when i delete it, there's no error.
i also can't add any comments to the site as a page visitor, and if i add comments as admin, they are not shown on page.
could anyone help me?
thanks in advance.
Re: guestbook module 0.6 trouble
Posted: Thu Oct 06, 2005 12:40 pm
by kishman155
Sorry I could not rebuild this problem.
I have uploaded the complete version once to wiki.
try this one and report me if it works or not.
the best thing you put it into a page is to add it as an contenttype.
Push add content.
change contenttype to gastbuch and make the configurations you want.
kishman155
Re: guestbook module 0.6 trouble
Posted: Thu Oct 06, 2005 1:09 pm
by pishkus
hi,
i downloaded the latest version from wiki, but problems are still there. now on modules page i get a warning:
Code: Select all
Warning: vsprintf(): Too few arguments in /home/www/(...)/www/test/lib/classes/class.module.inc.php on line 1529
anh the 'Help' link is absent.
even if i try to insert a guestbook as a content page, i get an error:
Code: Select all
Fatal error: Call to a member function on a non-object in /home/www/(...)/www/test/modules/gastbuch/gastbuch.module.php on line 722
am i the only one who can't get this module running?

Re: guestbook module 0.6 trouble
Posted: Thu Oct 06, 2005 2:03 pm
by kishman155
delete en_US.php and replace it with this one i atached.
remove the .txt extention from the filename it should work.
kishman155
[attachment deleted by admin]
Re: guestbook module 0.6 trouble
Posted: Thu Oct 06, 2005 2:25 pm
by pishkus
Code: Select all
Fatal error: Call to a member function on a non-object in /home/www/(...)/www/test/modules/gastbuch/gastbuch.module.php on line 722

Re: guestbook module 0.6 trouble
Posted: Thu Oct 06, 2005 2:50 pm
by kishman155
replace this
from line 722
Code: Select all
$max=$dbresultmax->RowCount();
$offset=$start;
$nrows=$anzeigen1;
$dbresult = $db->SelectLimit($query,$nrows,$offset);
$durch = $anzeigen1;
$seite = $max / $durch;
$seiteceil = ceil($seite);
$textmax = "$max $eintragauf ";
if($seiteceil==1)
{
$textmax .= "$einerseit";
}
else
{
$textmax .= "$seiteceil $seitpage";
}
with
this
Code: Select all
if($dbresultmax && $dbresultmax->RowCount() > 0)
{
$max=$dbresultmax->RowCount();
$offset=$start;
$nrows=$anzeigen1;
$dbresult = $db->SelectLimit($query,$nrows,$offset);
$durch = $anzeigen1;
$seite = $max / $durch;
$seiteceil = ceil($seite);
$textmax = "$max $eintragauf ";
if($seiteceil==1)
{
$textmax .= "$einerseit";
}
else
{
$textmax .= "$seiteceil $seitpage";
}
}
kishman155
Re: guestbook module 0.6 trouble
Posted: Thu Oct 06, 2005 3:02 pm
by pishkus
hi,
yes this piece if code solved some problem, but anyway, i can't add any comment neither as page visitor nor as admin

maybe i'm doing something wrong? besides, if i make guestbook as content page, the maximum characters of message does not show
but i see things getting better!

Re: guestbook module 0.6 trouble
Posted: Thu Oct 06, 2005 3:11 pm
by kishman155
did you reseve any error message on inserting at your page?
kishman155
Re: guestbook module 0.6 trouble
Posted: Thu Oct 06, 2005 3:18 pm
by pishkus
hi,
no erros when inserting as admin.
as inserting as page visitor, when the module is called as page content, when i submit my comment i get " Your Message was insert" and when the module is called as {cms_module...} i get a message "After your message is validate it will be shown in the guestbook".
Re: guestbook module 0.6 trouble
Posted: Thu Oct 06, 2005 7:50 pm
by pishkus
hi,
how is it going? if you're busy i will try to look into code myself and try to find out why the records are not inserted. btw, records do get inserted into cms_module_gastbuch_post, but not into other tables.
one more thing i found - when i uninstall gastbuch module, table 'cms_module_gastbuch_post' does not get deleted.
good luck.
Re: guestbook module 0.6 trouble
Posted: Fri Oct 07, 2005 9:47 am
by pishkus
hi,
i found the problem:
when installing 0.6 version there was missing one line into table gastbuch: 'country C(64)'
i added it, and everything seems to be working just fine.
Re: guestbook module 0.6 trouble
Posted: Sun Oct 09, 2005 6:29 pm
by Hans
Same here, can't get it to work, same warning: Too few arguments in /home/dernjen/public_html/cmsms/lib/classes/class.module.inc.php on line 1529.
This is already before I install the module.
I am unable to alter the tables, could you please post a fix for this ('Help' is missing here too)
Thanks Hans
Re: guestbook module 0.6 trouble
Posted: Wed Oct 12, 2005 6:40 pm
by kishman155
Sorry that i was away so long.
Long nights much work and so on.
I have found the bug and update it on the wiki.
I havn't got time to finish some dokumentation but i added how you could change the dateformat.
Country was added to the installation.
report me some bugs.
sorry for the long time you are waiting for this.
kishman155