Title: Error
Last modified: April 25, 2018

---

# Error

 *  Resolved [glconsultant](https://wordpress.org/support/users/glconsultant/)
 * (@glconsultant)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/error-1055/)
 * 2018-04-25 15:30:37.505232 [NOTICE] [24.201.178.120:50422] [STDERR] PHP Fatal
   error: Call to a member function add_cap() on null in /home/servic13/domains/
   leplateauchalets.com/public_html/wp-content/plugins/memphis-documents-library/
   includes/mdocs-patches.php on line 46

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

 *  Thread Starter [glconsultant](https://wordpress.org/support/users/glconsultant/)
 * (@glconsultant)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/error-1055/#post-10218703)
 * no longer able to go to my backoffice and my server has this log
 *  Plugin Author [bhaldie](https://wordpress.org/support/users/bhaldie/)
 * (@bhaldie)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/error-1055/#post-10218712)
 * Manually delete the plugin, using ftp everything will be fine.
 *  Thread Starter [glconsultant](https://wordpress.org/support/users/glconsultant/)
 * (@glconsultant)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/error-1055/#post-10221151)
 * I know, but I want to fix the problem, I need the plugin
 *  Plugin Author [bhaldie](https://wordpress.org/support/users/bhaldie/)
 * (@bhaldie)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/error-1055/#post-10221316)
 * open the file docs-patches.php and change line 46 from this:
 *     ```
       $role_object->add_cap('mdocs_allow_upload');
       ```
   
 * to this:
 *     ```
       if($role_object != null) $role_object->add_cap('mdocs_allow_upload');
       ```
   
 * let me know the results.
 *  Thread Starter [glconsultant](https://wordpress.org/support/users/glconsultant/)
 * (@glconsultant)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/error-1055/#post-10221883)
 * yes!! it’s work thank

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

The topic ‘Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/memphis-documents-library_91918f.
   svg)
 * [Memphis Documents Library](https://wordpress.org/plugins/memphis-documents-library/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/memphis-documents-library/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/memphis-documents-library/)
 * [Active Topics](https://wordpress.org/support/plugin/memphis-documents-library/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/memphis-documents-library/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/memphis-documents-library/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [glconsultant](https://wordpress.org/support/users/glconsultant/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/error-1055/#post-10221883)
 * Status: resolved