guestbook module 0.6 trouble

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
pishkus

guestbook module 0.6 trouble

Post 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.
kishman155
Translator
Translator
Posts: 169
Joined: Sat Mar 12, 2005 12:30 pm
Location: Vienna

Re: guestbook module 0.6 trouble

Post 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
pishkus

Re: guestbook module 0.6 trouble

Post 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? :(
kishman155
Translator
Translator
Posts: 169
Joined: Sat Mar 12, 2005 12:30 pm
Location: Vienna

Re: guestbook module 0.6 trouble

Post 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]
pishkus

Re: guestbook module 0.6 trouble

Post 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
:(
kishman155
Translator
Translator
Posts: 169
Joined: Sat Mar 12, 2005 12:30 pm
Location: Vienna

Re: guestbook module 0.6 trouble

Post 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
pishkus

Re: guestbook module 0.6 trouble

Post 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! :)
kishman155
Translator
Translator
Posts: 169
Joined: Sat Mar 12, 2005 12:30 pm
Location: Vienna

Re: guestbook module 0.6 trouble

Post by kishman155 »

did you reseve any error message on inserting at your page?

kishman155
pishkus

Re: guestbook module 0.6 trouble

Post 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".
pishkus

Re: guestbook module 0.6 trouble

Post 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.
pishkus

Re: guestbook module 0.6 trouble

Post 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.
Last edited by pishkus on Fri Oct 07, 2005 9:50 am, edited 1 time in total.
Hans
Forum Members
Forum Members
Posts: 61
Joined: Sun Oct 09, 2005 10:49 am

Re: guestbook module 0.6 trouble

Post 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
   
Last edited by Hans on Sun Oct 09, 2005 6:31 pm, edited 1 time in total.
kishman155
Translator
Translator
Posts: 169
Joined: Sat Mar 12, 2005 12:30 pm
Location: Vienna

Re: guestbook module 0.6 trouble

Post 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
Locked

Return to “Modules/Add-Ons”