• Resolved LDP-154

    (@ldp-154)


    I have searched the support forum.
    I have deactivated all other plug-ins and I have re-activated NextGen Basic on it’s own.
    Still the Gallery option in the Dashboard is missing, as well as, the Gallery menu tab in posts and pages.
    It is not showing up at all, anywhere, except the plugin list.
    My theme is Twenty Thirteen.
    Should I preform a complete re-install?
    Thanks, for any help.

    https://wordpress.org/plugins/nextgen-gallery/

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

    (@photocrati)

    @ldp-154 – Please try our external Reset Tool plugin here: https://bitbucket.org/photocrati/nextgen-gallery-reset/get/default.zip

    To install and activate, go to Plugins > Add New … Upload Plugin
    To use, go to Tools > NextGEN Gallery Reset

    We do not offer specific support for the Reset Tool plugin as is but it can help in many circumstances, please let us know if it does.

    Thanks!

    – Cais.

    Thread Starter LDP-154

    (@ldp-154)

    Cais

    Unfortunately when I ran NextGen Gallery Reset to set the defaults, this is what I got.

    Fatal error: Call to a member function remove_cap() on a non-object in /home/(ourserver)/public_html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/admin/install.php on line 115

    Any ideas?

    I really like the NextGen Gallery plugin. I’m determined to get it to work. 🙂

    If you have any suggestions, it would be appreciated.

    Thanks, Cais.

    Plugin Contributor photocrati

    (@photocrati)

    @ldp-154 – I’ve used and/or recommended the Reset Tool plugin numerous times and have never seen that error message with it?!

    Have you tried simply re-installing NextGEN Gallery? There could be some sort of corrupted file in the installation causing these issues to occur.

    – Cais.

    Thread Starter LDP-154

    (@ldp-154)

    Cais:

    I deleted then re-installed new. The problem persists. I then tried Reset again,alas,to no avail. I’m not sure what has happened. Here is the same error code I receive running Reset after the new install.

    Fatal error: Call to a member function remove_cap() on a non-object in /home/croiseeo/public_html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/admin/install.php on line 115

    I will be building a new site after importing data from the old site. If the problem persists, it seems my data is somehow corrupted. I don’t know what has happened. I have deactivated all other plugins with no success. It’s unfortunate as I could really use your plugin now, any new posts and pages are not the same without it.

    Plugin Contributor photocrati

    (@photocrati)

    @ldp-154 – You’re welcome to send us a Bug Report (http://imagely.com/report-bug/ … please reference this topic) so we can get a better look under the page at your site.

    Please include as many details as you can about your site and the issue at hand so we can move on this as fast as possible.

    Thanks!

    – Cais.

    Hello,

    I am really interested in solving this issue because I got the exact same message. I went through the same steps as LDP-154 (deactivate, reinstall, trying to reset) adn got the same fatal error.

    Thread Starter LDP-154

    (@ldp-154)

    Hi Stephan:
    The latest I have received from NextGen is try running the plugin NextGen Gallery Reset tool making sure you are logged in as a “pure” Administrator role. We run bbPress and s2Member and it seems to automatically assign the “Keymaster” role along side the “Administrator” role. I previously disabled bbPress to no effect. This “Keymaster” role, was assumed to cause the Reset tool to crash.
    NextGen support was in our Dashboard for a few hours with no solution found, as yet.
    If I find a solution or receive more suggestions from NextGen I will let you know on this post.
    I will try to find a way to remove the “Keymaster” role.

    Hi LDP-154,

    Your post is actually interesting, and I thank you for it : you use S2member, to edit user roles as you please and create a membership on the website. I use the plug-in “members” by Justin Tadlock, to edit user roles.

    Oddly enough, the error on line 115 is related to user roles used by the website. I will try to somehow reset the roles of all users on the website, ie to restore WordPress default roles, deactivate and then delete the plug-in members, to see if Nextgen Gallery reappears somewhere on the admin dashboard.

    That could be the beginning of an explanation : I use nextgen gallery on 3 different websites, the only one causing problems is the one with membership.

    I’ll try to keep you posted on my experiment.

    Yours,

    Thread Starter LDP-154

    (@ldp-154)

    Stefan:
    Thanks, for this. keep me posted. Likewise, I’ll do the same.

    As mentioned, try the “NextGen Gallery Reset” plugin and pay attention to the Admin roles first and try the tool. Login as Admin, check your roles in Users is set to the (“pure”) Administrator role only and run the Reset plugin under Settings. Let me know if the same php error pops up. I can’t seem to get rid of the “Keymaster” role along side “Administrator”.

    Justin Tadlock

    (@greenshady)

    I got an email on this topic since my name was brought up. I can actually tell you what the issue is with the code, at least from a quick glance.

    I’m testing this: https://plugins.svn.wordpress.org/nextgen-gallery/tags/2.1.31/products/photocrati_nextgen/modules/ngglegacy/admin/install.php

    In particular, line 115 of that file assumes that you have a legit role object, which may or may not be the case. WordPress is either going to return a WP_Role object if a role is found or null if a role is not found. So, basically, all you should have to do is change line 115:

    $role->remove_cap($capability) ;

    To this:

    if ( ! is_null( $role ) )
    	$role->remove_cap($capability) ;

    Wow, that was fast ! Well, hello Justin, and thank you very much for your piece of code, it proved really useful : hope it helps LDP-154 as well.

    The debug console showed that the same error occurred when using the reset plugin. I had to modify the “nextgen-gallery-reset.php” file line 105 the exact same way, but it works : Nextgen Gallery is back inside the admin menu, the settings are to be set again since the reset, but what a relief !

    Thank you very much indeed !

    Thread Starter LDP-154

    (@ldp-154)

    Justin, thank you for your intervention and support. And Stefan, I don’t think this would have happened without you stepping in. Much appreciated here.

    If I read correctly, I should modify both php’s and their referenced lines of code, and then run Reset.

    I will test early next week and provide (hopefully) a final update.

    Thanks again, to both of you.
    Larry

    Plugin Contributor photocrati

    (@photocrati)

    @greenshady – Thanks! An appropriate patch from your “quick glance” has been sent to our developers for review.

    – Cais.

    Thread Starter LDP-154

    (@ldp-154)

    Stefan, Justin and Cais:

    Success!

    Following the above targeted code corrections in the appropriate php files our NextGen Gallery plugin has finally returned! – both in our Dashboard and our Posts/Pages menus.

    Thanks to you all, – including my excellent Host and server support provider Solubiz, who assisted today.

    Plugin Contributor photocrati

    (@photocrati)

    @ldp-154 – Relevant code has been committed to our next release branch of NextGEN Gallery. You can expect this to be sorted out then.

    Thanks!

    – Cais.

    PS: This does touch on a couple of places in our code but we have caught all the related parts for this particular issue.

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘NextGen Gallery plugin is gone’ is closed to new replies.