spamassassin doesn't work with 1.4.1.3

hi

as the aksimet plugin does not work with zenphoto 1.4.1.3, I installed the spamassassin plugin.
Unfortunately, it does not work anymore.

I have this error :
Fatal error: Call to undefined function getAdminEmail() in .../zenphoto/zp-core/zp-extensions/spamfilters/spamassassin.php on line 59

somebody can have a look on this plugin ?
it would a good thing for the community

Comments

  • acrylian Administrator, Developer
    Not familiar with this plugin but `getAdminEmail` exists as a method of the Zenphoto_Authority class in `/zp-core/lib-auth.php`. So you need to use the object of the current admin to get the email (if one set)
  • vincent3569 Member, Translator
    I tried $admin_emails = $_zp_current_admin_obj->getAdminEmail();
    but I still have an error : Fatal error: Call to a member function getAdminEmail() on a non-object in .../zenphoto/zp-core/zp-extensions/spamfilters/spamassassin.php on line 59

    I'm afraid I was not competent enough in php to solve the problem.
  • Probably you have not declared `$_zp_current_admin_obj` as a global to the function. PHP does require you declare all global variables you wish to use within a function. Otherwise it makes them local (with, of course, no initialization.)
Sign In or Register to comment.