Title: Trouble with capabilities.php
Last modified: August 22, 2016

---

# Trouble with capabilities.php

 *  [wazizup](https://wordpress.org/support/users/wazizup/)
 * (@wazizup)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/trouble-with-capabilitiesphp/)
 * Well this is the only one remaining trouble and it sucks big time because I think
   the Categories problem is generated with this page.
    This is the error message
   I have over 50 times in the dasboard
 * Notice: Trying to get property of non-object in /–/–/–/–/members/wp-includes/
   capabilities.php on line 1171
    Notice: Trying to get property of non-object in/–/–/–/–/
   members/wp-includes/capabilities.php on line 1172 Notice: Trying to get property
   of non-object in /–/–/–/–/members/wp-includes/capabilities.php on line 1172 Notice:
   Trying to get property of non-object in /–/–/–/–/members/wp-includes/capabilities.
   php on line 1175
 * The entire site is working and the only trouble I can see is that I can’t get
   the categories ordered. Can anyone give me an advice ?

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

1 [2](https://wordpress.org/support/topic/trouble-with-capabilitiesphp/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/trouble-with-capabilitiesphp/page/2/?output_format=md)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/trouble-with-capabilitiesphp/#post-5620988)
 * Try deactivating all plugins. If that resolves the issue, reactivate each one
   individually until you find the cause.
 * If that does not resolve the issue, try switching to the Twenty Fifteen theme
   to rule-out a theme-specific issue (theme functions can interfere like plugins).
 *  Thread Starter [wazizup](https://wordpress.org/support/users/wazizup/)
 * (@wazizup)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/trouble-with-capabilitiesphp/#post-5621050)
 * the trouble is not with the plugins because I’ve tried that already James
    I 
   can give it a try with 20/15 – but I have no idea what to do when it’s activated
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/trouble-with-capabilitiesphp/#post-5621062)
 * Just let us know if everything works perfectly with Twenty Fifteen active.
 *  Thread Starter [wazizup](https://wordpress.org/support/users/wazizup/)
 * (@wazizup)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/trouble-with-capabilitiesphp/#post-5621076)
 * I have activated 11/15 but the error is still there (dashboard)
    I have so far
   eliminated all the errors but : I remember having changed an URL inside the Database
   and I will have a look at this because it was a something with wp_ … link or 
   url.
 * I have manually replaced 4.1 after erasing the part that have to be erased – 
   I have rewrited a part of the database (it’s now working to) but the only think
   I can think of is the replace url I’ve done in the DB.
 * If this is not this then it has to be something with the Order Link or Link Categories
   because on the front side there is the place you can see that the cat order is
   messed up (the 1st level categories) and the childs seems to have turned into
   categories … strange strange …
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/trouble-with-capabilitiesphp/#post-5621082)
 * > but the only think I can think of is the replace url I’ve done in the DB.
 * What did you replace in the database?
 * Also, try [downloading WordPress](https://wordpress.org/download/) again and 
   delete then replace your copies of *everything* **except** the `wp-config.php`
   file and the `/wp-content/` directory with fresh copies from the download. This
   will effectively replace all of your core files without damaging your content
   and settings. Some uploaders tend to be unreliable when overwriting files, so
   don’t forget to delete the original files before replacing them.
 *  Thread Starter [wazizup](https://wordpress.org/support/users/wazizup/)
 * (@wazizup)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/trouble-with-capabilitiesphp/#post-5621156)
 * I’ve done this and same :(((
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/trouble-with-capabilitiesphp/#post-5621159)
 * > but the only think I can think of is the replace url I’ve done in the DB.
 * What did you replace in the database?
 *  Thread Starter [wazizup](https://wordpress.org/support/users/wazizup/)
 * (@wazizup)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/trouble-with-capabilitiesphp/#post-5621161)
 * well I have spent over an hour into the db and I didn’t find any uncorrect url!
   I could try to check the DB locally BUT no way to open it because the file is
   390 MB 🙁
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/trouble-with-capabilitiesphp/#post-5621165)
 * > but the only think I can think of is the replace url I’ve done in the DB.
 * What did you replace in the database?
 * Seriously, I wouldn’t be asking if the answer wasn’t important.
 *  Thread Starter [wazizup](https://wordpress.org/support/users/wazizup/)
 * (@wazizup)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/trouble-with-capabilitiesphp/#post-5621167)
 * Well that’s a good question !
    When I started working and moving the site, I 
   noticed the problem with the fact that moving it (www.eucmh.com) to (www.members.
   eucmh.com) then restoring the permalinks didn’t work. Because of time I started
   then to check all the posts to change the call URLs for photos. Then I was bored
   because I couldn’t get it out my head. So I started sneaking inside the database
   and saw an URL [http://www.eucmh.com](http://www.eucmh.com) ! I didnt know what
   it was and I changed it into [http://www.members.eucmh.com](http://www.members.eucmh.com).
   The problem with the Categorie was still there. I used the 2 php commands in 
   function.php to make the default theme back, then killed all the plugins then
   replaced the entire 4.1 distribution. Problem still there 🙁
 * I then not only reactivated all the plugins but réinstalled the upgraded ver.
   of them. Problem still there 🙁
 * Anyway I reactivated the theme – Great White Dead Screen …. – I then erased it
   and changed with another.
    So I then killed .htacess, got back inside the DB 
   because 1 plugin (paypal links sale) said one key in the DB was missing ! I wrote
   this key back (I had it installed on another site) the make an execute.
 * Data base OK – all plugins 100% – Theme 100% – but probleme still there …
 * The got back here and restarted the discussion.
    I did yesterday what you asked
   me to do – new distribution from a new download … problem still there …
 * I posted in the first message 4 or 5 times the error message but in fact in my
   dashboard I have it a couple hundred times.
 * and I still have a categories problem …
 * that’s the story
 *  Thread Starter [wazizup](https://wordpress.org/support/users/wazizup/)
 * (@wazizup)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/trouble-with-capabilitiesphp/#post-5621168)
 * I just remember (in the DB) that I saw the url [http://www.eucmh.com](http://www.eucmh.com)
   in the first row when I cliqued “show” in the DB screen
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/trouble-with-capabilitiesphp/#post-5621170)
 * > I used the 2 php commands in function.php to make the default theme back
 * Which functions.php file did you modify, and PHP commands did you put in it?
 * > I just remember (in the DB) that I saw the url [http://www.eucmh.com](http://www.eucmh.com)
   > in the first row when I cliqued “show” in the DB screen
 * That really doesn’t help, there is no standard to row order, so it could have
   been anything.
 * I take it from all this, that you changed something in the database, but you’re
   not sure what you changed.
 * Do you have any backups from prior to these changes?
 *  Thread Starter [wazizup](https://wordpress.org/support/users/wazizup/)
 * (@wazizup)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/trouble-with-capabilitiesphp/#post-5621173)
 * I’ve found this in the WP trouble
    When you have the white screen you have to
   insert the 2 php code lines in the php page, run it once then remove then ! This
   set you back to the default theme and give you a dashboard again.
 * The DB ! of course I have a lot of backups but … I am actually reworking the 
   site and I have already done a lot of work ! Using a backup would set be back
   for about 1 month :((((
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/trouble-with-capabilitiesphp/#post-5621174)
 * Please, I’m not psychic. I ask these questions because I need specific details
   to help you.
 * Which functions.php file did you modify, and what PHP commands did you put in
   it?
 *  Thread Starter [wazizup](https://wordpress.org/support/users/wazizup/)
 * (@wazizup)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/trouble-with-capabilitiesphp/#post-5621175)
 * I Know James but it’s not easy to find this again 🙁
    it’s already a month of
   not two. Let me try to retrace the story and I’ll sure find this again !
 * [https://wordpress.org/support/topic/about-to-commit-a-suiside-no-joke?replies=16](https://wordpress.org/support/topic/about-to-commit-a-suiside-no-joke?replies=16)
 * [https://wordpress.org/support/topic/site-down-unknown-reason-but-really-dow?replies=13](https://wordpress.org/support/topic/site-down-unknown-reason-but-really-dow?replies=13)
 * [https://wordpress.org/support/topic/trying-to-get-property-of-non-object-in-capabilitiesphp-on-line-1112?replies=3](https://wordpress.org/support/topic/trying-to-get-property-of-non-object-in-capabilitiesphp-on-line-1112?replies=3)
 * All I remember (if I am right) it was two code lines to make WP change some file
   and make the WP sets itself back to default theme wen you have again control (
   dashboard) ! when it’s done you have to remove these 2 line (they said you can
   only use it once then remove it)
    This was when I was trying to find a way to
   get something back on the monitor (I was with a white screen – font and dashboard).
 * I’ll see if I can find it again

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

1 [2](https://wordpress.org/support/topic/trouble-with-capabilitiesphp/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/trouble-with-capabilitiesphp/page/2/?output_format=md)

The topic ‘Trouble with capabilities.php’ is closed to new replies.

## Tags

 * [capabilities](https://wordpress.org/support/topic-tag/capabilities/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 27 replies
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/trouble-with-capabilitiesphp/page/2/#post-5621187)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
