Page 1 of 1

Add Comment place is empty

Posted: Tue Dec 20, 2005 6:21 pm
by dlightman
I have just installed Serendipity 0.9.1 running on IIS 6.0 + PHP 5.1.1 + MySQL 5.0.17-nt.

I have managed to make it work... well, almost everything: when I click on the | Comments (0) | link to post a new comment for an entry, the place where the fields Name, Email, Homepage, Comment should appear I just get an empty space.

I have seen how serendipity should behave in http://demo.opensourcecms.com/serendipity/, however my site is showing nothing below Add Comment to submit such a comment.

This is a piece of html code extracted from the former http://demo.opensourcecms.com/serendipity/:

Code: Select all

                <br />
                <div class="serendipity_section_commentform">
	                <div class="serendipity_commentsTitle">Add Comment</div>
	                <div class="serendipityCommentForm">
    <a id="serendipity_CommentForm"></a>
    <form id="serendipity_comment" action="/serendipity/index.php?url=archives/1-Welcome.html#feedback" method="post">
    <div><input type="hidden" name="serendipity[entry_id]" value="1" /></div>
    <table border="0" width="100%" cellpadding="3">
        <tr>
            <td class="serendipity_commentsLabel"><label for="serendipity_commentform_name">Name</label></td>
            <td class="serendipity_commentsValue"><input type="text" id="serendipity_commentform_name" name="serendipity[name]" value="" size="30" /></td>
        </tr>

        <tr>
            <td class="serendipity_commentsLabel"><label for="serendipity_commentform_email">Email</label></td>
            <td class="serendipity_commentsValue"><input type="text" id="serendipity_commentform_email" name="serendipity[email]" value="" /></td>
        </tr>

And here is the same place of code extracted from my own site:

Code: Select all

                <br />
                <h3>Add Comment</h3>
                

                        
        
            
    <div class="navigation" style="text-align: center">
    
    
    
    
    </div>
<!-- ENTRIES END -->



<!-- CONTENT END -->

</div>

    <div id="sidebar">
I have checked the Spam Protector plugin configuration from OpenSourceCMS and made my own site match that config without any result.

I have also checked the forum for someone having problems posting Comments and found:
http://www.s9y.org/forums/viewtopic.php?t=3742
http://www.s9y.org/forums/viewtopic.php?t=3116
but I think that they are not having the same problem as me.

Can anyone help me out? Thanks in advance for your support.

Re: Add Comment place is empty

Posted: Tue Dec 20, 2005 6:34 pm
by garvinhicking
What's your URL? It might be related to IIS, since we usually only test things with Apache.

Which template do you use? The default one? Which event plugins did you ínstall? Did you enable comment popups in the s9y configuration?

Regards,
Garvin

Re: Add Comment place is empty

Posted: Tue Dec 20, 2005 6:52 pm
by dlightman
The URL is intranet only by now. The style template is Kubrick 1.2.6 port. I have also tried using the default Serendipity v2.3 style.

Using Serendipity v2.3 style the code my IIS returns around the Add Comment place is:

Code: Select all

                <br />
                <div class="serendipity_section_commentform">
	                <div class="serendipity_commentsTitle">Add Comment</div>
	                
				</div>

                            </div>
        
        
            </div>
    
    <div class='serendipity_entryFooter' style="text-align: center">
I don't think about it being an IIS issue because other pages such WYSIWYG editor and standard editor work fine. Any ideas?

PS: thanks to garvinhicking for his quick response ;)

Re: Add Comment place is empty

Posted: Tue Dec 20, 2005 6:57 pm
by dlightman
I had not enabled popups for the comments before.

Now (just for testing) I have set that option to YES and a popup window appears. It is completely blank. The url and the code inside that window is:

http://blogs.my-intranet.com/comment.ph ... ]=comments

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8"></HEAD>
<BODY></BODY></HTML>

Re: Add Comment place is empty

Posted: Tue Dec 20, 2005 9:12 pm
by garvinhicking
Can you please check your IIS and PHP error log? Maybe there are some other problems.

Did you properly extract all s9y files? Especially the comments.tpl and commentform.tpl template files?

I've never seen this problem, and it's hard to inspect without seeing the actual blog...

Regards,
Garvin

I found the source of the problem

Posted: Wed Dec 21, 2005 8:44 am
by dlightman
I have set error_reporting = E_ALL and display_errors = On in php.ini and now, instead of a blank popup screen I receive the following error message:
Warning: Smarty::include(C:/Inetpub/webs/blogs.my-intranet.com/templates_c\default^%%64^642^642E9A94%%commentpopup.tpl.php) [function.include]: failed to open stream: No such file or directory in C:\Inetpub\webs\blogs.my-intranet.com\bundled-libs\Smarty\libs\Smarty.class.php on line 1251

Warning: Smarty::include() [function.include]: Failed opening 'C:/Inetpub/webs/blogs.my-intranet.com/templates_c\default^%%64^642^642E9A94%%commentpopup.tpl.php' for inclusion (include_path='.;C:\WINDOWS\system32\inetsrv\php\pear;C:\Inetpub\jpgraph-1.17beta2\src;C:\Inetpub\webs\blogs.my-intranet.com/;C:\Inetpub\webs\blogs.my-intranet.com/bundled-libs/') in C:\Inetpub\webs\blogs.my-intranet.com\bundled-libs\Smarty\libs\Smarty.class.php on line 1251
So I supposed it was a permission issues. I just gave full access control to IUSR_MACHINE account to that directory and everything seems to run smoothly since that change.

Another questions: Is the directory templates_c only used for temporary files? Why are they not deleted after being used? They seem to stay there until I remove them manually.

Are those extrange filenames (default^%%64^642^642E9A94%%commentpopup.tpl.php for instance) by desing or is it a kind-of bug dealing with filename encoding, language pagefile or something?

Regards and thanks for your help.

Re: I found the source of the problem

Posted: Wed Dec 21, 2005 12:33 pm
by garvinhicking
Hi!

Great you got it working! :)
Another questions: Is the directory templates_c only used for temporary files? Why are they not deleted after being used? They seem to stay there until I remove them manually.
The directory contains cached files, which are created by Smarty. It compiles templates so that they need not be parsed every time. So they are used all the time unless your template changes, and then they are compiled again.
Are those extrange filenames (default^%%64^642^642E9A94%%commentpopup.tpl.php for instance) by desing or is it a kind-of bug dealing with filename encoding, language pagefile or something?
that's intentionally, it is a hash to distinct multiple templates in different directories. :)

Best regards,
Garvin