Title: Cannot activate or delete
Last modified: August 30, 2016

---

# Cannot activate or delete

 *  Resolved [DrKassoff](https://wordpress.org/support/users/drkassoff/)
 * (@drkassoff)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/cannot-activate-or-delete-1/)
 * When upgrading to 4.4, using last version of DG crapped out entire site and gave
   fatal error. ( [http://www.QCPA.org](http://www.QCPA.org) )
 * Fatal error: Call to a member function isSuccess() on array in /home3/custodyc/
   public_html/qcpa/wp-content/plugins/document-gallery/inc/class-setup.php on line
   412
 * Tech deactivcated. I updated DG and it will not activate. If i try to activate
   I get:
 * Plugin could not be activated because it triggered a fatal error.
 * Fatal error: Call to a member function isSuccess() on a non-object in /home3/
   custodyc/public_html/qcpa/wp-content/plugins/document-gallery/inc/class-setup.
   php on line 412.
 * I cannot even delete DG. It gives a server 500 error msg when I try to delete
   all files button
 * [https://wordpress.org/plugins/document-gallery/](https://wordpress.org/plugins/document-gallery/)

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/cannot-activate-or-delete-1/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/cannot-activate-or-delete-1/page/2/?output_format=md)

 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/cannot-activate-or-delete-1/#post-6867785)
 * Hi DrKassoff,
 * Firstly, I sincerely apologize for the inconvenience. This release was not up
   to our standards and I have rolled back the stable release to 4.0 until we have
   a chance to resolve he issues you and others are reporting.
 * To address your immediate concern, my recommendation is to have your tech delete
   the document-gallery directory under wp-content. That should be all that is needed.
   Then you can do a re-install of document-gallery 4.0.
 * Please let me know if you run into any further issues.
 * -Dan
 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/cannot-activate-or-delete-1/#post-6867816)
 * Hi DrKassoff,
 * We’ve now put out version `4.1.3` which should be a much more stable product.
   That said, if anything seems out of place please don’t hesitate to followup here
   and I can take a look. Thanks for your patience while we got this issue resolved.
 * -Dan
 *  [Jaredam](https://wordpress.org/support/users/jaredam/)
 * (@jaredam)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/cannot-activate-or-delete-1/#post-6867983)
 * Yeah, I’m getting a fatal error as well. Got a 500 earlier (12/21/2015 11:00)
   and disabled all the plugins – it was DG.
 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/cannot-activate-or-delete-1/#post-6867989)
 * Hi Jaredam,
 * I am sorry for the inconvenience. Let me help you get things working again.
 * Can you confirm that the error is the same as what DrCassoff is reporting? Also,
   have you tried uninstalling and doing a clean install?
 * EDIT: To clarify, uninstalling DG, not all of WordPress, then cleanly installing
   DG 4.1.4.
 * -Dan
 *  [pierredebotton](https://wordpress.org/support/users/pierredebotton/)
 * (@pierredebotton)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/cannot-activate-or-delete-1/#post-6868003)
 * Same problem, can’t activate, and can’t delete…
 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/cannot-activate-or-delete-1/#post-6868012)
 * Hi Pierre (and others),
 * I have a solution that may allow you to get past the issue long enough to uninstall
   and do the clean install that is needed for things to begin working.
 * 1. Go to `Dashboard -> Plugins -> Document Gallery (edit link)`. If there is 
   no edit button, your WP install will not allow this fix.
    2. Assuming you got
   past #1, click `document-gallery/inc/class-setup.php` in the right bar. 3. In
   the big textbox, search (Ctrl + F) for “self::fourPointOne( $options );” There
   should be only one line that matches. Delete that line and attempt to activate
   again. My *hope* is that will get you far enough through the plugin bootstrap
   to allow for you to uninstall DG, at which point a clean install should make 
   everything much happier.
 * If that does not work, the other solution requires FTP access. Assuming you know
   what that is and have the access, you’ll need to do the following:
    1. Go to `
   <WP install directory>/wp-content/plugins` and simply delete `document-gallery`.
   2. After that you should be able to reinstall Document Gallery.
 * -Dan
 *  Thread Starter [DrKassoff](https://wordpress.org/support/users/drkassoff/)
 * (@drkassoff)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/cannot-activate-or-delete-1/#post-6868020)
 * I tried the first fix recommended, deleting the directory (using my control panel
   and the file manager to just delete the directory) and reinstalling with 4.0 
   using the WP install plugin utility. Everything works fine. I am fearful about
   doing 4.1.3. If I update to that and it craps out again, can you provide 4.0 
   again until latest version is stable.
 * [http://www.qcpa.org/download-documents/](http://www.qcpa.org/download-documents/)
 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/cannot-activate-or-delete-1/#post-6868021)
 * Hi DrKassoff,
 * I’m glad to hear the downgrade worked! My recommendation at this point is to 
   upgrade to the current version (4.1.5). I have every expectation that it will
   bypass the issues you had, but if it does not then go ahead and repeat the same
   downgrade process and let me know so that I can address any additional issues
   that show up.
 * -Dan
 *  [Jaredam](https://wordpress.org/support/users/jaredam/)
 * (@jaredam)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/cannot-activate-or-delete-1/#post-6868022)
 * I deleted the folder, but when I try to install the latest build I get
 * Parse error: syntax error, unexpected T_STATIC, expecting T_STRING or T_VARIABLE
   or ‘$’ in /home7/roadruq3/public_html/wp-content/plugins/document-gallery/inc/
   thumbers/class-abstract-thumber.php on line 26
 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/cannot-activate-or-delete-1/#post-6868023)
 * Can you tell me what version of PHP you have installed?
 *  [Jaredam](https://wordpress.org/support/users/jaredam/)
 * (@jaredam)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/cannot-activate-or-delete-1/#post-6868024)
 * php 5.4 I think.
 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/cannot-activate-or-delete-1/#post-6868025)
 * Hi Jaredam,
 * Can you verify that? The error suggests that your version doesn’t support late
   static binding (a feature being used in 4.1 and later versions of DG). Late static
   binding has been supported since PHP 5.3 and [PHP 5.4 and later is no longer supported](http://php.net/eol.php).
 * Also, for reference, [WP recommends PHP 5.6 or higher](https://wordpress.org/about/requirements/).
 * -Dan
 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/cannot-activate-or-delete-1/#post-6868028)
 * Jaredam,
 * Working under the assumption that you do have a PHP version < 5.3, I have a short
   term and long term recommendation.
 * The short term recommendation is to downgrade to DG 4.0, which does not use the
   new PHP features that are causing these problems. This can be done by first uninstalling
   the current version, then installing via the upload functionality under Add New
   Plugins in your WP Dashboard w/ this zip ([https://github.com/thenadz/document-gallery/archive/4.0.zip](https://github.com/thenadz/document-gallery/archive/4.0.zip)).
 * The long term recommendation is to immediately contact your hosting provider 
   and ask that they upgrade to at minimum PHP version 5.6 to be in compliance w/
   WP minimum recommendations. (You should include a link to the reference sites
   I included above.)
 * -Dan
 *  [Jaredam](https://wordpress.org/support/users/jaredam/)
 * (@jaredam)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/cannot-activate-or-delete-1/#post-6868033)
 * Yup, that did it. Thanks!
 *  [pierredebotton](https://wordpress.org/support/users/pierredebotton/)
 * (@pierredebotton)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/cannot-activate-or-delete-1/#post-6868041)
 * Hi Dan,
 * I delete the plugin (FTP), but version 4.1.5 will also not work. When i try to
   activate…
    Fatal error: Class ‘DG_ThumberCoThumber’ not found …/wp-content/plugins/
   document-gallery/inc/thumbers/class-thumber-co-thumber.php on line 9
 * Thank you for your assistance.
 * Pierre
    PS: PHP version 5.5.29

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/cannot-activate-or-delete-1/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/cannot-activate-or-delete-1/page/2/?output_format=md)

The topic ‘Cannot activate or delete’ is closed to new replies.

 * ![](https://ps.w.org/document-gallery/assets/icon.svg?rev=983329)
 * [Document Gallery](https://wordpress.org/plugins/document-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/document-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/document-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/document-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/document-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/document-gallery/reviews/)

 * 19 replies
 * 4 participants
 * Last reply from: [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/cannot-activate-or-delete-1/page/2/#post-6868049)
 * Status: resolved