• Resolved martinperreault

    (@martinperreault)


    I just installed WordPress 4.6, and now I receive this error message ont he front end:

    Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method nggMediaRss::add_mrss_alternate_link() should not be called statically in /home/user/public_html/website/wp-includes/plugin.php on line 524

    If I de-activate NextGen Gallery, the error message goes away…

    https://ww.wp.xz.cn/plugins/nextgen-gallery/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @martinperreault – Can you provide us with any additional details, especially about your server environment, for your site? We are not currently seeing this message but it should be easily addressed.

    You can find some server information from within NextGEN Gallery under Gallery > Overview | Site Details tab.

    As to the specifics of the notice you are seeing, you can try prepending the method definition with static at this line:

    ../wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/lib/media-rss.php:10

    Thanks!

    – Cais.

    Thread Starter martinperreault

    (@martinperreault)

    Hi,
    thanks for the reply.
    The message was gone because I de-activated the plugin temporarely. I have now re-activated it.

    i do not understand what you mean by:
    “As to the specifics of the notice you are seeing, you can try prepending the method definition with static at this line:
    ../wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/lib/media-rss.php:10″

    Here are the info you requested:

    Server Settings

    Operating System : Linux (64 Bit)
    Server : Apache/2.2.31 (Unix) mod_ssl/2.2.31 OpenSSL/1.0.1e-fips mod_bwlimited/1.4
    Memory usage : 102.76 MByte
    MYSQL Version : 5.5.50-cll
    SQL Mode : Not set
    PHP Version : 5.4.45
    PHP Safe Mode : Off
    PHP Allow URL fopen : On
    PHP Memory Limit : 350
    PHP Max Upload Size : 40M
    PHP Max Post Size : 40M
    PCRE Backtracking Limit : 1000000
    PHP Max Script Execute Time : 30000s
    PHP Exif support : No
    PHP IPTC support : Yes
    PHP XML support : Yes

    Graphic Library

    GD Version : bundled (2.1.0 compatible)
    FreeType Support : Yes
    FreeType Linkage : with freetype
    T1Lib Support : No
    GIF Read Support : Yes
    GIF Create Support : Yes
    JPEG Support : Yes
    PNG Support : Yes
    WBMP Support : Yes
    XPM Support : Yes
    XBM Support : Yes
    JIS-mapped Japanese Font Support : No

    Plugin Contributor photocrati

    (@photocrati)

    @martinperreault – We are not currently seeing this message in our testing environments. We have not looked at your site as we do not have any details pointing to it specifically …

    What specific settings are you using under Gallery > Other Options > Miscellaneous (especially as they related to the Media RSS options)?

    Also, have you tried deactivating all of your plugins, clearing your browser cache (and site caches if you are using a caching plugin), then reactivating the NextGEN plugin?

    If this fixes the problem then it was likely one of the deactivated plugins that was causing an issue. Now, retrace your steps activating each plugin and re-checking to see if the problem returns. If it does then that last activated plugin was probably the one. Keep reactivating and in most cases it is also best to keep checking after each plugin, sometimes there may be more than one plugin on a site that will create an issue. If you do find one (or more) plugins causing this problem we would greatly appreciate your feedback on them so the developers may address them as soon as they can.

    Also to note, in rare cases it may be the theme itself that is causing a conflict so while you have just the NextGEN plugin activated you might consider temporarily switching to one of the default WordPress Twenty series themes and see if this corrects the issue as well.

    If the problem still persists after all of this we would still want to know, even more so, as we will still want to sort out the issue and may need additional details.

    Thanks!

    – Cais.

    Thread Starter martinperreault

    (@martinperreault)

    Thank you for your reply.
    I finally decided to uninstall and re-install the plugin. This seems to have fixed the issue. I don’t know what caused it, but it’s now gone.

    Sorry for the trouble…

    Plugin Contributor photocrati

    (@photocrati)

    @martinperreault – No worries! Thanks for the update and we’re happy to read it is sorted out now.

    – Cais.

    We have a error after upgrade to PHP-FPM

    Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method nggMediaRss::add_mrss_alternate_link() should not be called statically in /home/xxx/public_html/wp-includes/class-wp-hook.php on line 298

    Plugin Contributor photocrati

    (@photocrati)

    @jmginer – Please start your own topic so we can try to help you with your specific issue on your specific site.

    See http://codex.ww.wp.xz.cn/Forum_Welcome#Where_To_Post

    Thanks!

    – Cais.

    I started getting the same error message recently, so I went and added the “static” keyword in front of the function add_mrss_alternate_link() and this fixed the issue.

    Plugin Contributor Imagely

    (@imagely)

    @cappellaniauniroma3 – Thanks for sharing your work-around.

    – Cais.

    • This reply was modified 8 years, 11 months ago by Imagely.

    I don’t see why I should open a new topic for the same exact error… The solution is, as proposed in the very first reply on this topic, to add the “static” keyword in front of the add_mrss_alternate_link() function:

    photocrati (@photocrati) – 10 months, 1 week ago
    As to the specifics of the notice you are seeing, you can try prepending the method definition with static at this line:

    ../wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/lib/media-rss.php:10

    I am simply confirming that the problem is still present, and should be fixed as proposed.

    Plugin Contributor Imagely

    (@imagely)

    @cappellaniauniroma3 – If you were having a different error, or wanted assistance with a similar error (it would not be “the same exact error” unless you were reporting “the same exact” site as the OP), we would ask you follow the WordPress support forum guidelines as written here: https://make.ww.wp.xz.cn/support/handbook/forum-welcome/#post-in-the-best-place

    My last response was in recognition of the work-around you are suggesting as welcome although this is not a general error across all installations (even if the proposed change is simply adding the static keyword).

    You are welcome to submit a PR if you like, our development repository can be found here: https://bitbucket.org/photocrati/nextgen-gallery

    Thanks!

    – Cais.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘WordPress 4.6 returns error msg for NExtGen Gallery’ is closed to new replies.