problems with my own forum notification

problems with my own forum notification

Friday 16 April 2004 3:54:13 am - 13 replies

Author Message

Paul Forsyth

Friday 16 April 2004 4:12:40 am

This may be silly but have you set up your email program, such as sendmail correctly? Is php recognising it?

I had a problem recently where sendmail wasn't installed but php thought it was, so nothing was sent.

paul

Alessandro Cipriani

Friday 16 April 2004 5:01:42 am

hi paul
yes, the email is ok: i use the email system for the forgotpassword functionality.
I use an external smtp server.

any hint?

Paul Forsyth

Friday 16 April 2004 5:31:47 am

Well, if smtp is working it should be ok. But I haven't used the notification yet in my own projects yet :(

Does <your-site>/notification/settings show that your forum message has been added?

To test the user privilege change the users roles to * *.

paul

Alessandro Cipriani

Friday 16 April 2004 5:59:34 am

paul

the <mysite>/notification/settings is empty, also when i specify the node i want to watch.
i'm trying with the admin role (*,*) so i think the problem is elsewhere

best regards
alessandro

Paul Forsyth

Friday 16 April 2004 6:14:46 am

Ok, so the notification isn't being made. Can you look at the source code for your page?

I had a quick look on the ez site and i see code like this for notifications:

<form method="post" action="/content/action">
<input class="button" type="submit" name="NewButton" value="New reply" />

    <input type="hidden" name="ContentNodeID" value="48435" />
    <input type="hidden" name="ContentObjectID" value="54895" />
    <input class="button" type="submit" name="ActionAddToNotification" value="Keep me updated" />
<input type="hidden" name="NodeID" value="48435" />

<input type="hidden" name="ClassID" value="14" />

</form>

Not all of this is needed. When i look in kernel/content/action.php i see that only the hidden field ContentNodeID is required. Is the value for this input field being set?

paul

Alessandro Cipriani

Friday 16 April 2004 6:30:21 am

that's my tpl code
everithing seems to match to what you said:

<form method="post" action="/index.php/platino/content/action">
<div class="buttonblock">
<input class="button" type="submit" name="NewButton" value="New topic" />

<input type="hidden" name="ContentNodeID" value="51" />
<input type="hidden" name="ContentObjectID" value="48" />
<input class="button" type="submit" name="ActionAddToNotification" value="Keep me updated" />
</div><input type="hidden" name="NodeID" value="51" />
<input type="hidden" name="ClassID" value="7" />

</form>

???
cheers
alessandro

Alessandro Cipriani

Friday 16 April 2004 6:37:52 am

more:
also if i browse the node i want to watch the node list is empty... could be the action.php file not working?
where can i find another version of it?

alessandro

Paul Forsyth

Friday 16 April 2004 6:56:38 am

Does the node id match your current node? I know when i tried forums before there was a problem with old node ids.

What is your template code that puts in the <input tag for the node id?

paul

Alessandro Cipriani

Friday 16 April 2004 7:22:01 am

yes, the node_id matches the real node id
the template code is:

<form method="post" action={"content/action/"|ezurl}>

{switch match=$node.object.can_create}
{case match=1}
<div class="buttonblock">
<input class="button" type="submit" name="NewButton" value="New topic" />

<input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
<input type="hidden" name="ContentObjectID" value="{$node.contentobject_id.}" />
<input class="button" type="submit" name="ActionAddToNotification" value="Keep me updated" />
</div>
{/case}
{case match=0}
<p>
You need to be logged in to get access to the forums.</p>
{/case}
{/switch}
<input type="hidden" name="NodeID" value="{$node.node_id}" />
<input type="hidden" name="ClassID" value="32" />

</form>

Paul Forsyth

Friday 16 April 2004 7:52:22 am

Hmm, it looks good to me. Does your debug lines say anything? Clear the cache before you load the page in debug mode.

The only other thing i can suggest is to try to debug the action class. If goto line 291 you will see code it uses. If you then add lines like:

eZDebug::writeWarning("Testing");

and look in the file var/log/warning.log you can step through whats going on...

sorry, i can't help more.

paul

--
http:www.visionwt.com

Alessandro Cipriani

Monday 19 April 2004 6:45:09 am

paul,
i've turned on the debugoutput and in the /notification/settings i get this error:

Query error: Unknown column 'user_id' in 'field list'. Query: SELECT id, user_id, use_digest, node_id
FROM ezsubtree_notification_rule
WHERE user_id='14'
ORDER BY id ASC

the query doesn't match the table structure!

Rinze Cats

Wednesday 16 June 2004 2:56:59 am

@allesandro

did you ever solve this problem? I am using 3.3.5 and no notifications are being send. Mail works (for instance tell a friend or custom forms send emails).

greetz
rinze

Alessandro Cipriani

Wednesday 16 June 2004 5:27:42 am

hi rinze

i was workin' with 3.3-1 when nothing worked
now i upgraded to 3.3-5 and the notification works. I didn't try it on the forum, but i think that it works in the same way.

ps: what about this site notification? i'm not recieving any new message since the 1st of june!

best regards
alessandro

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.