ZenphotoCMS Forum
spamassassin doesn't work with 1.4.1.3 - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: spamassassin doesn't work with 1.4.1.3 (/thread-9075.html)



spamassassin doesn't work with 1.4.1.3 - vincent3569 - 2011-09-17

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




spamassassin doesn't work with 1.4.1.3 - acrylian - 2011-09-17

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)




spamassassin doesn't work with 1.4.1.3 - vincent3569 - 2011-09-18

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.




spamassassin doesn't work with 1.4.1.3 - sbillard - 2011-09-18

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.)