From: Nick S. <ni...@co...> - 2005-01-05 19:30:14
|
<quote who=3D=22Joshua Myles=22> > Joshua Myles said: >> I get stuck on src/redirect.php with the following PHP error: >> >> =5Berror=5D PHP Fatal error: Call to undefined function: >> _write_default_recipie() in >> /usr/local/www/squirrelmail/plugins/serversidefilter/functions.php >> on >> line 82 >> >> Line 82 is: >> >> =24wr_default =3D =24FILTER_APP.'_write_default_recipie'; > > As it turns out, =24FILTER_APP wasn't always being set =5BI suspect > there's a > missing set_filter_app() call somewhere=5D. I worked around this > by setting > =24FILTER_APP explicity in config.php. I'm continuing to look at > this to > figure out the =22correct=22 way to fix it. > > It looks like I'm not the only one who has encountered this: > > http://article.gmane.org/gmane.mail.squirrelmail.plugins/6990 > http://article.gmane.org/gmane.mail.squirrelmail.plugins/7073 > > Jon Stroud, have you had a chance to look at this? > > Thanks, > > Josh > > -- im having the same problem except mine is on a different line, line 90 function write_spam_filter(=24fd) =7B global =24FILTER_APP; =24wr_spam_filter =3D =24FILTER_APP.'_write_spam_filter'; LINE 90 -> =24wr_spam_filter(=24fd); =7D in functions.php i have set: =24FILTER_ARRY =3D explode(=22/usr/bin/maildrop=22, =24FILTER_APP_PATH); =24FILTER_APP =3D =24FILTER_ARRY=5Bcount(=24FILTER_ARRY)-1=5D; and i tried what you suggested about the config.php file and this was already set: =24FILTER_APP_PATH =3D '/usr/bin/maildrop'; which is correct, but its still not working for me, any other clues or things i can try? also this is in the same functions file: function write_forward() =7B global =24username, =24FILTER_FILE_PATH, =24FORWARD_FILE_TYPE, =24FILTER_APP_PATH; =24tmpfile =3D =22/tmp/forwardfile-=24username=22; =24fd =3D fopen(=24tmpfile,=22w=22); =24filterpath =3D vd_replace(=24FILTER_FILE_PATH); =24contents_array =3D array( =22qmail=22 =3D> =22=7Cpreline =24FILTER_APP_PATH =24filterpath=5Cn=22= , =22forward=22 =3D> =22=7C=24FILTER_APP_PATH =24filterpath=5Cn=22 ); =24contents =3D =24contents_array=5B=24FORWARD_FILE_TYPE=5D; fwrite(=24fd, =24contents); fclose(=24fd); =24result =3D local_write_forward(=24tmpfile); =7D i dont use qmail, i use courier, could this be messing something up? do i just change =22qmail=22 to =22courier=22? thanks nick |