PDA

View Full Version : PRoblem with issuing alerts


mpadc
26 Apr 2005, 15:00
Hi Guys

I upgraded from 3.3.2 to 3.4.2

Cos i wanted that Alert thing installed

Ok Everything done A ok

But PRoblem is this:

in admin cp >Warning Options >

Save copy of Alert Message in a predefined forum?If set to Yes, the Alert PM or e-mail which is send to the alerted member, will also be saved in a forum in your board. You may specify the forum in which the copy will be saved below.


when i set this to yes...and save it it dont Save for some reason meaning it defaults back to "NO"


iive checkced all the settings Alerts are enabled and set to yes..

plus it dont create threads in the specific forum that it spose to when alerted!#

sv1cec
26 Apr 2005, 20:56
Open your warn_install_setting.php file and find:


$setting['warn_alertslifetime']['defaultvalue'] = '0';
$setting['warn_alertslifetime']['optioncode'] = '';
$setting['warn_alertslifetime']['displayorder'] = '40';


Below that, add



$setting['warn_savecopyalert']['titlephrase'] = 'Save copy of Alert Message in a predefined forum?';
$setting['warn_savecopyalert']['descphrase'] = 'If set to Yes, the Alert PM or e-mail which is send to the warned member, will also be saved in a forum in your board. You may specify the forum in which the copy will be saved below.';
$setting['warn_savecopyalert']['grouptitle'] = 'warning';
$setting['warn_savecopyalert']['value'] = '';
$setting['warn_savecopyalert']['defaultvalue'] = '0';
$setting['warn_savecopyalert']['optioncode'] = 'yesno';
$setting['warn_savecopyalert']['displayorder'] = '41';


Point your browser to that file and run it again.

Rgds

mpadc
27 Apr 2005, 09:58
Cheers for that got it sorted

ok one other thing now:

When i try to warn/alert a user i get this error message:

Warning: Missing argument 6 for warn_calculations() in /includes/functions_warning.php on line 159

it seems to alert the user but it dont send them emails or PM or anything like that...

and when i try to warn the user in the same way it dont slap them with points or anything either...something drastically wrong here it seems :S

all settings are correct i guess me thinks its that error message which is the problem!

sv1cec
27 Apr 2005, 10:35
Please understand that you are asking me to troubleshoot something which is 5 versions old.

Have you done the changes in the warn_addwarn template? The ones for the alert? It seems that your functions_warning is expecting an $alert variable, which is not there. I can't tell why it is not there, because in the last 5 releases, bugs have been corrected. How can I tell what you need to change now?



rgds

mpadc
27 Apr 2005, 10:38
Please understand that you are asking me to troubleshoot something which is 5 versions old.

Have you done the changes in the warn_addwarn template? The ones for the alert? It seems that your functions_warning is expecting an $alert variable, which is not there. I can't tell why it is not there, because in the last 5 releases, bugs have been corrected. How can I tell what you need to change now?



rgds


Sorry i forgot to mention ive upgraded to the latest version my apologies :squareeyed:

ive got the latest version installed now.....

what i did was i uninstalled it and resintalled the AWS system all over again (the DB.phrases.templates) and all and i did all the file changes

It all appears well and correct just that Error message appears each time i try to warn a user

when i warn a user it dont send a pm or anything

when i remove the alert it does send the PM

all is up2 date!

thankx

sv1cec
27 Apr 2005, 10:50
OK, now we are getting somewhere. So you are in 3.4.7 and the problem you have is that if you send a warning you get that error message? Do me a favor. Download the latest zip file and upload all the distribution files again.

Also, check you settings and make sure you have asked for the warned user to be PMed. What are your settings for PM cut-off?

See if that corrects your problem.

mpadc
27 Apr 2005, 11:28
OK, now we are getting somewhere. So you are in 3.4.7 and the problem you have is that if you send a warning you get that error message? Do me a favor. Download the latest zip file and upload all the distribution files again.

Also, check you settings and make sure you have asked for the warned user to be PMed. What are your settings for PM cut-off?

See if that corrects your problem.

Hello,

Correct when i try to send a warning i get that problem!
Latest Files Uploaded:

Settings for User to be pm is set to yes

PM cut off limit is 0 ive checked all that

do u think this is a template issue or a a file issue?

sv1cec
27 Apr 2005, 11:55
It can be a template issue. Check the various templates, versus the ones which are in the install_warn/warn.xml file, especially the warn_addwarn and warn_addwarn_nopost.

Rgds

mpadc
28 Apr 2005, 09:41
It can be a template issue. Check the various templates, versus the ones which are in the install_warn/warn.xml file, especially the warn_addwarn and warn_addwarn_nopost.

Rgds
Hi thank you for that

for some rason i get a nother problem now lol

Manage Warning Options when i set the values and settings there when i save it reverts back to the original -- like all no and settings all dissapear/

any idea with this?

thanks

sv1cec
28 Apr 2005, 13:28
Check your setting table, if it contains any rows, with the varname starting with warn_ .

SELECT * FROM setting WHERE varname LIKE 'warn_%'

If not, your settings do not exist. Run the warn_install_setting.php file again (point your browser to it).

Rgds

mpadc
28 Apr 2005, 14:34
Check your setting table, if it contains any rows, with the varname starting with warn_ .

SELECT * FROM setting WHERE varname LIKE 'warn_%'

If not, your settings do not exist. Run the warn_install_setting.php file again (point your browser to it).

Rgds

THANK YOU!! its working now its more or less back to normal after i uninstaleld it i forgot to run the warn_install_setting.php but seems ok

One one last problem ihave no hopefulyl this should be the last straw

It does not send out any emails or PM whena user gets alerted?

everything is set to YES in the options page but it still dont send any PMs or anything when a warn has been issued?

any ideas on that?

thanks for ur help =_

sv1cec
28 Apr 2005, 21:26
Yes, there is a bug in functions_warning.php, it will be fixed in the next release. Give me a little time.

Rgds