Page 1 of 1

[SOLVED] Guestbook not displaying properly

Posted: Thu Aug 18, 2011 7:18 pm
by djkirstyjay
Hi there,

Appologies if this has been mentioned elsewhere, however I did seash before posting and nothing came up.

The guestbook on one of the sites I have CMSMS on is not working.
Basically, it is causing the page to show as if it has no CSS.

HERE is a link to the page so you can see for yourself. Warning... it seems to also take a hell of a long time to load, which also indicates to me that there's something amiss.

I have just upgraded a site to the latest CMSMS 1.9.4.2 "Faanui" and the latest Guestbook 1.3.2 in order to see if that was the issue, but it's still the same.

I have also tried the guestbook as both a content type and as the smarty tag in the usual content area. No joy.

Does anyone have any suggestions that might shed some light on it?

I have comments in the guestbook, so I was a bit reluctant to uninstall and reinstall if it's not necessary.

Thanks in advance :)

Re: Guestbook not displaying properly

Posted: Thu Aug 18, 2011 7:23 pm
by opawaldburger
Thank you! I didn't want to post that again, since I've already had a lot of troubles with previous versions of the guestbook module. Now again!

Got the same module and core version as you, mine looks like this:
http://benjamin-karl.com/cms/de/gaestebuch/

Would be great if someone could help.

-opa

Re: Guestbook not displaying properly

Posted: Thu Aug 18, 2011 7:25 pm
by uniqu3
Turn debug mode in config.php to see if there are any errors?

Re: Guestbook not displaying properly

Posted: Thu Aug 18, 2011 7:33 pm
by djkirstyjay
Debug mode on... I get the following :
Notice: Undefined variable: paginate in /home/1/s/sh/shb3_150/9plusonline.com/public_html/electric-installation-survey-inspection-law-tenerife/modules/Guestbook/plugins/function.paginate_prev.php on line 34

Notice: Undefined variable: paginate in /home/1/s/sh/shb3_150/9plusonline.com/public_html/electric-installation-survey-inspection-law-tenerife/modules/Guestbook/plugins/function.paginate_prev.php on line 39

Notice: Undefined variable: paginate in /home/1/s/sh/shb3_150/9plusonline.com/public_html/electric-installation-survey-inspection-law-tenerife/modules/Guestbook/plugins/function.paginate_prev.php on line 43

Notice: Undefined variable: paginate in /home/1/s/sh/shb3_150/9plusonline.com/public_html/electric-installation-survey-inspection-law-tenerife/modules/Guestbook/plugins/function.paginate_middle.php on line 56

Notice: Undefined variable: paginate in /home/1/s/sh/shb3_150/9plusonline.com/public_html/electric-installation-survey-inspection-law-tenerife/modules/Guestbook/plugins/function.paginate_middle.php on line 61

Notice: Undefined variable: paginate in /home/1/s/sh/shb3_150/9plusonline.com/public_html/electric-installation-survey-inspection-law-tenerife/modules/Guestbook/plugins/function.paginate_middle.php on line 63

Notice: Undefined variable: paginate in /home/1/s/sh/shb3_150/9plusonline.com/public_html/electric-installation-survey-inspection-law-tenerife/modules/Guestbook/plugins/function.paginate_middle.php on line 64

Notice: Undefined variable: paginate in /home/1/s/sh/shb3_150/9plusonline.com/public_html/electric-installation-survey-inspection-law-tenerife/modules/Guestbook/plugins/function.paginate_middle.php on line 65

Notice: Undefined variable: paginate in /home/1/s/sh/shb3_150/9plusonline.com/public_html/electric-installation-survey-inspection-law-tenerife/modules/Guestbook/plugins/function.paginate_next.php on line 34

Notice: Undefined variable: paginate in /home/1/s/sh/shb3_150/9plusonline.com/public_html/electric-installation-survey-inspection-law-tenerife/modules/Guestbook/plugins/function.paginate_next.php on line 39

Notice: Undefined variable: paginate in /home/1/s/sh/shb3_150/9plusonline.com/public_html/electric-installation-survey-inspection-law-tenerife/modules/Guestbook/plugins/function.paginate_next.php on line 43

Notice: Undefined variable: paginate in /home/1/s/sh/shb3_150/9plusonline.com/public_html/electric-installation-survey-inspection-law-tenerife/modules/Guestbook/plugins/function.paginate_next.php on line 43

Fatal error: Cannot use object of type GuestbookEntry as array in /home/1/s/sh/shb3_150/9plusonline.com/public_html/electric-installation-survey-inspection-law-tenerife/tmp/templates_c/Guestbook^%%E5^E56^E5636B77%%module_db_tpl%3AGuestbook%3Bguestbook-entrylist.php on line 30

Re: Guestbook not displaying properly

Posted: Thu Aug 18, 2011 7:34 pm
by opawaldburger
Turn debug mode in config.php to see if there are any errors?
Nope, no errors here...

Special thing is, that the source-code starts with the </__body>-tag...

Re: Guestbook not displaying properly

Posted: Thu Aug 18, 2011 7:45 pm
by uniqu3
Ok i just tried it on my local install it looks like when using Guestbook as content type leads to a problem when entries are paginated.
Using {cms_module module="Guestbook" number=5 number='1' shownow=1 smiley=0 dateformat="%d-%m-%Y %H:%M"} worked however for me.

Re: Guestbook not displaying properly

Posted: Thu Aug 18, 2011 7:47 pm
by djkirstyjay
uniqu3 wrote:Ok i just tried it on my local install it looks like when using Guestbook as content type leads to a problem when entries are paginated.
Using {cms_module module="Guestbook" number=5 number='1' shownow=1 smiley=0 dateformat="%d-%m-%Y %H:%M"} worked however for me.
As I said in my original post, I have tried using the smarty tag (as you just posted) in the normal content type too. I get the error either way. In fact, as the moment that is how the guestbook is set up and it's not working now.

EDIT > This is the smarty code I have on the page :

{cms_module module="Guestbook" number=5 shownow=0 smiley=0 mailnoti=email@site.com dateformat="%d-%m-%Y %H:%M"}

Re: Guestbook not displaying properly

Posted: Thu Aug 18, 2011 8:01 pm
by djkirstyjay
uniqu3 wrote:Ok i just tried it on my local install it looks like when using Guestbook as content type leads to a problem when entries are paginated.
Using {cms_module module="Guestbook" number=5 number='1' shownow=1 smiley=0 dateformat="%d-%m-%Y %H:%M"} worked however for me.
Just pasted in your code to see if there was any difference... none :(

Re: Guestbook not displaying properly

Posted: Thu Aug 18, 2011 8:22 pm
by uniqu3
What is actually in tmp/templates_c/Guestbook^%%E5^E56^E5636B77%%module_db_tpl%3AGuestbook%3Bguestbook-entrylist.php on line 30?

Or can you paste your Guestbook template?

Re: Guestbook not displaying properly

Posted: Thu Aug 18, 2011 9:53 pm
by Rolf
Reset all guestbook templates to the default value.
That will do the trick.

grtz. Rolf

Re: Guestbook not displaying properly

Posted: Thu Aug 18, 2011 10:30 pm
by djkirstyjay
Thanks Rolf! That did it. The original templates had not been modified, but they must have changed in the upgrade, ao I did not think of that :)

Re: [SOLVED] Guestbook not displaying properly

Posted: Fri Aug 19, 2011 8:07 am
by opawaldburger
It's a kind of magic... :)

Thanks, Rolf and Goran!

Re: Guestbook not displaying properly

Posted: Mon Oct 24, 2011 11:58 am
by IvanVersluis
Rolf wrote:Reset all guestbook templates to the default value.
That will do the trick.

grtz. Rolf
Bedankt/thanks Rolf!

After resetting all guestbook templates my fatal error issue was solved. I was running older version of CMSMS and upgraded to 1.9.4.2.

I don't know what happened with the latest upgrade but most of the Guestbook templates were changed after I reset them to default. My modifications were little.