Spam filter/Captcha

Hi,

I was under the "Comment Configuration" tab and instead of askimet I selected spamassassin and got this error:

Fatal error: Call to undefined function: () in /home/kiazen/public_html/boudyphotos/zenphoto/zp-core/plugins/spamfilters/spamassassin.php on line 88

The spamassassin.php file is in the correct place. But now when I go to select any of the other spam filter methods I do not get the "save button" as the bottom. It's like I'm stuck on spamassassin because of the error. I can also not get on my theme options either.

Comments

  • acrylian Administrator, Developer
    Try the nightly build, that error should be fixed there.
  • Hi acrylian,

    I've not familiar with this. What happens at the nightly build? Do they upload a newer version of ZP that will fix any errors. Also once I get this built what should I do with it.
  • Every night there is a new build of zenphoto made with the days patches. These builds generally are stable, but they have not had the extensive testing that happens before a release. So, you use one at your discression. If you choose to do so, download it from http://www.zenphoto.org/files/nightly/ and install it just as you did the released version.

    If you wish to try spamassassin, give the nightly a try. The worst is that you revert to what you were running previously. Let us know how it goes, specially your use of spamassassin. From the nature of the bug that was fixed, I am pretty sure no one is using it in this release!
  • Where do you find the spanassisn.php file and where does it get placed? I wanted to set this pref but didn't realize a file was required (got error message).
  • The file comes with the zenphoto install. So if you do not have it, something has gone wrong witht he files you uploaded. It would normally be in the zp-core/plugins/spamfilters folder.
  • Unfortunately I selected the spamassassin option and now it is displaying Fatal error: Function name must be a string in /home/xxxx/xxxxx/xxxx.com/zp-core/plugins/spamfilters/spamassassin.php on line 88

    The button to save is no longer available so when I select another option such as "none" I can't save the selection.

    How do I revert back?

    Thanks
  • Did you notice the front part of this thread? The recommendation was to install the nightly build where the fix to this problem has been made.
  • Thank you,

    I downloaded the nightly build and re-uploaded the spamassiassin.php file. Logged back into to my admin panel and was able to make changes.
  • Yes I noticed, Thank you.

    However I don't wish to use the nightly build NOR spamassiassin. I simply want to deselect the spamassiassin and go back to what I had.

    How do I do this? Surely there must be a way without having to completely install it again?
  • Delete the spamassassin.php file in the spamfilters folder.
  • Thank you
  • There is a misplaced '$' in the code at line 88 in the spamassassin.php file released with zenphoto 1.1.5. You can edit it and refresh also. Remove the '$' before the word 'count' on line 88. Below is a fixed version of line88.

    line88: if (count($admin_emails) > 0) {
  • This has already been fixed in the nightly builds [1242]
  • Damn... I looked for spamassassin in the bug tracker and didn't find there already was a bug for that.

    Everything is OK now :) And I see I'm not the only one to use my plugin :D
Sign In or Register to comment.