Member
Member
vincent3569   2011-09-17, 07:27
#1
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
Administrator
Administrator
acrylian   2011-09-17, 09:19
#2
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)
Member
Member
vincent3569   2011-09-18, 21:10
#3
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.
Member
Member
sbillard   2011-09-18, 22:26
#4
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.)
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.