MailPress 3 beta2 / NextGen Gallery incompatibility/error

14 views
Skip to first unread message

john.iva...@gmail.com

unread,
Mar 30, 2009, 1:44:50 PM3/30/09
to MailPress
When confirming a registration, the user gets the following error:

Warning: call_user_func_array() [function.call-user-func-array]: First
argument is expected to be a valid callback,
'nggMediaRss::add_mrss_alternate_link' was given in /home/signatur/
public_html/wpxt/wp-includes/plugin.php on line 339

Warning: call_user_func_array() [function.call-user-func-array]: First
argument is expected to be a valid callback,
'nggMediaRss::add_piclens_javascript' was given in /home/signatur/
public_html/wpxt/wp-includes/plugin.php on line 339

I know it have been mentioned before but since MP3 still is in beta,
is there a workaround for this problem ? What may cause it ?

John Myrstad

john.iva...@gmail.com

unread,
Mar 30, 2009, 1:54:04 PM3/30/09
to MailPress

....btw: link in [function.call-user-func-array] is:

wp-content/plugins/mailpress/mp-includes/function.call-user-func-array

John Myrstad

andré renaut

unread,
Mar 30, 2009, 5:17:30 PM3/30/09
to mail...@googlegroups.com
can you send me a screenshot of the error at contact (at) nogent94 (dot) com

thanks !




....btw: link in [function.call-user-func-array] is:

wp-content/plugins/mailpress/mp-includes/function.call-user-func-array

John Myrstad




--
Pensez à l'environnement avant d'imprimer ce message.
Please, think about the environment before printing this message.

andré renaut

unread,
Mar 30, 2009, 5:29:44 PM3/30/09
to mail...@googlegroups.com
found it ! the conflict

the problem comes from nggallery.php

        if ( defined('DOING_AJAX') )
            require_once (dirname (__FILE__) . '/admin/ajax.php');
        else {
            require_once (dirname (__FILE__) . '/lib/meta.php');                // 131.856
            require_once (dirname (__FILE__) . '/lib/tags.php');                // 117.136
            require_once (dirname (__FILE__) . '/lib/media-rss.php');            //  82.768
            require_once (dirname (__FILE__) . '/widgets/widgets.php');            // 298.792
            require_once (dirname (__FILE__) . '/lib/rewrite.php');                //  71.936
            include_once (dirname (__FILE__) . '/admin/tinymce/tinymce.php');     //  22.408

the ngg requested call back is in lib/media-rss.php
a workaround could be to delete the line 'DOING_AJAX'

in mailpress/mp-includes/action.php

but the fix must be done on nggallery ..


2009/3/30 andré renaut <andre....@gmail.com>

John Myrstad

unread,
Mar 31, 2009, 7:02:41 AM3/31/09
to MailPress
I added the conflict to NextGen on Google code:

http://code.google.com/p/nextgen-gallery/issues/detail?id=198

John Myrstad

unread,
Mar 31, 2009, 8:29:57 AM3/31/09
to MailPress
Alex Cologne the NextGen author answered:

I'm not sure if this is a failure on NGG side, DOING_AJAX should
define a ajax
operation, so it should not be set if you are not in the "AJAX mode".
Or I'm toally
wrong ?

John Myrstad

unread,
Mar 31, 2009, 3:39:52 PM3/31/09
to MailPress
> a workaround could be to delete the line 'DOING_AJAX'
> in mailpress/mp-includes/action.php

It worked :) , but a permanent fix will be nice if the authors may
have time to talk together...

John

Alex Rabe

unread,
Apr 1, 2009, 3:08:24 PM4/1/09
to MailPress
Andre,

what is the purpose to set DOING_AJAX in action.php ?

andré renaut

unread,
Apr 1, 2009, 4:49:35 PM4/1/09
to mail...@googlegroups.com
i don't remember

just did a grep on mailpress and not testing it !

i am going to remove it.


2009/4/1 Alex Rabe <alex.c...@googlemail.com>
Reply all
Reply to author
Forward
0 new messages