• Resolved 150d

    (@150d)


    Hi,

    since my update to WordPress v4.1 (and a corresponding update of NextGen) there are error messages displayed for most (but not all!) of my galleries:

    In “manage galleries”, the list of galleries, in the column “author” there is:

    Notice: Trying to get property of non-object in /wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/admin/manage-galleries.php on line 279

    In single gallery view (where I can “edit” the gallery contents), in the area containing the gallery settings, there is also a field “author”. Here it says:

    Notice: Trying to get property of non-object in /wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/admin/manage.php on line 526

    In the debug log, there are additional messages (all of them multiple times:)

    [01-Jan-2015 00:20:04 UTC] PHP Notice:  Undefined index: image_id in /wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_xmlrpc/module.nextgen_xmlrpc.php on line 257
    
    [01-Jan-2015 00:22:32 UTC] PHP Deprecated:  Non-static method nggdb::delete_image() should not be called statically, assuming $this from incompatible context in /wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/admin/manage.php on line 699
    
    [01-Jan-2015 13:24:53 UTC] PHP Notice:  Undefined offset: 7 in /wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_xmlrpc/module.nextgen_xmlrpc.php on line 622
    
    [01-Jan-2015 13:29:40 UTC] PHP Notice:  Undefined variable: ajax_nonce in /wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/admin/media-upload.php on line 282

    I only enabled the debug log recently (after the update) to track down some issues, so I can’t say for sure which of the messages in the log haven’t already been occuring before. The messages in the backend weren’t there before the update, though.

    Regards

    https://www.ads-software.com/plugins/nextgen-gallery/

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

    (@photocrati)

    @150d – I would suggest starting with re-installing WordPress under Dashboard > Updates; and, re-installing NextGEN Gallery manually via an FTP client over-writing the existing folders and files under ../wp-content/plugins/nextgen-gallery/

    This looks more like a corrupted installation than anything else … although it could also be a plugin conflict.

    – Cais.

    Thread Starter 150d

    (@150d)

    Ok, I did both, without anything changing for the better. (For the plugin install, I simply switched the old for the new directory – there are no old files to keep, right?)

    I just looked into the database. In table wp_ngg_gallery I found this:

    The galleries that show the error have the field “author = x”.
    The galleries that do not show the error have “author = y”.
    (Not wanting to give away any secrets here, so let’s keep it at “x” and “y”… ??

    This gave me an idea: The “bad” galleries are all old ones. For quite some time I’m using iThemes Security. One of its functions is to change user IDs for admin users. Could it be that “x” is the user ID before the change, and “y” is the ID after the change? NextGen wouldn’t be able to locate any user “x”, that’s why it shows an error.

    Can I just modify the said records in the database “x”->”y” without side effects?

    Regards

    Plugin Contributor photocrati

    (@photocrati)

    @150d – You may be onto the issue with something else (iThemes Security?) changing names. This would be a new issue created by that plugin if that is the case (or possibly an old one that is now being well described?).

    If you have a fully verified complete back-up of your database (and site) then you could attempt to change the author names as you are suggesting but this is not something we could guarantee will correct the issue although it does stand to reason it could.

    Please let us know how you fare with it.

    Thanks!

    – Cais.

    Thread Starter 150d

    (@150d)

    I made the change (update user ID in the database) a few weeks ago. The display was fine afterwards, and so far there have been no further problems.

    Fixed. ??

    Regards

    Plugin Contributor photocrati

    (@photocrati)

    @150d – Thanks for the update.

    – Cais.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘error message for "author"’ is closed to new replies.