Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
Hi,

I upgraded to v1.4 (build 20140117) yesterday and get a strange error if I use the debug on sending e-mails.


Warning: flock() expects parameter 1 to be resource, boolean given in /usr/local/zend/apache2/htdocs/fin/couch/functions.php on line 2030

Warning: flock() expects parameter 1 to be resource, boolean given in /usr/local/zend/apache2/htdocs/fin/couch/functions.php on line 2032

I use the following:

<cms:if k_success >
<cms:send_mail from='name@e-tukku.fi' to='name@e-tukku.fi' subject='Mail send from <cms:show k_page_title />' debug='1'>
<p>The following is an email sent by a visitor to your site:</p>
<p>From page: <cms:show k_page_link /></p>
<cms:show k_success />
</cms:send_mail>

If I remove debug='1' the error is gone !!?

Any ideas ?


Thanks,

Tom Arnst
I load frameworks and write bugs on top of them, after that I rearrange the code so that it looks like a cool product.
Thank you very much for reporting the problem, Tom.

I had a look and, yes, it crops up when Couch is unable to open up the log file for writing.
I have made the changes to the source.
For the time being, you can prevent the issue by manually creating a file named 'log.txt' in your site's root and giving it proper write permissions.

Thanks.
2 posts Page 1 of 1