Title: WordPress Errors
Last modified: August 18, 2016

---

# WordPress Errors

 *  [timothyrogers](https://wordpress.org/support/users/timothyrogers/)
 * (@timothyrogers)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/wordpress-errors/)
 * I have just installed WordPress onto my server and now I am got some errors. 
   When I did the install, it got to Step 2 then showed the following error:
 * QUOTE
    Fatal error: Call to a member function on a non-object in /home2/rogers/
   public_html/wp-admin/admin-functions.php on line 546
 * Line 546 is:
 * QUOTE
    if (! $wp_rewrite->using_mod_rewrite_permalinks())
 * I could not go any further. Then I tried to visit the actual blog, and I got 
   the following error:
 * QUOTE
    Fatal error: Call to a member function on a non-object in /home2/rogers/
   public_html/wp-includes/functions.php on line 1059
 * Line 1059 is as follows:
 * CODE
    return $wp_query->query($query);
 * So, how can I fix this?

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

 *  [khemcaigan](https://wordpress.org/support/users/khemcaigan/)
 * (@khemcaigan)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/wordpress-errors/#post-216244)
 * I just installed WordPress, and my problem resembles Timothy’s. Here are the 
   error messages I have generated so far:
 * MANAGE: POSTS
    Fatal error: Call to a member function on a non-object in /var/
   www/html/zapgarden.com/wp-includes/functions.php on line 1059
 * VIEW SITE:
 * Fatal error: Call to a member function on a non-object in
    /var/www/html/zapgarden.
   com/wp-includes/functions.php on line 1059
 * OPTIONS: PERMALINKS
    Fatal error: Call to a member function on a non-object in/
   var/www/html/zapgarden.com/wp-admin/options-permalink.php on line 37
 * It doesn’t look like you can use the file upload feature at this time
    because
   the directory you have specified (/var/www/html/zapgarden.com/wp-content) doesn’t
   appear to be writable by WordPress. Check the permissions on the directory and
   for typos.
 * Any ideas on how to correct this?
 *  [crankyfranky](https://wordpress.org/support/users/crankyfranky/)
 * (@crankyfranky)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/wordpress-errors/#post-216293)
 * I’m not sure about all of your errors but I had this error after uploading a 
   new theme, but I was able to fix it quickly;
 * Fatal error: Call to a member function on a non-object in /home/xxx/public_html/
   blog/wp-includes/functions.php on line 1377
 * I wonder if my solution may be relevant. I’m not a php coder.
 * I checked the permissions on the new theme dir and they were wrong. When I tried
   to correct [chmod] via FTP i was blocked, so next step was to chown and chgrp.
 * This was the solution that removed the error;
 * root@srv5 [/home/xxxxx/public_html/blog/wp-content/themes]# ls -al
    total 20 
   drwxr-xr-x 5 xxxxx xxxxx 4096 Jun 13 00:55 ./ drwxr-xr-x 4 xxxxx xxxxx 4096 Apr
   5 20:21 ../ drwxr-xr-x 2 1000 80 4096 Jan 9 09:27 black/ drwxr-xr-x 2 xxxxx xxxxx
   4096 Apr 5 20:21 classic/ drwxr-xr-x 3 xxxxx xxxxx 4096 Apr 5 20:21 default/ 
   root@srv5 [/home/xxxxx/public_html/blog/wp-content/themes]# chown -R xxxxx black
   root@srv5 [/home/xxxxx/public_html/blog/wp-content/themes]# chgrp -R xxxxx black
   root@srv5 [/home/xxxxx/public_html/blog/wp-content/themes]# ls -al total 20 drwxr-
   xr-x 5 xxxxx xxxxx 4096 Jun 13 00:55 ./ drwxr-xr-x 4 xxxxx xxxxx 4096 Apr 5 20:
   21 ../ drwxr-xr-x 2 xxxxx xxxxx 4096 Jan 9 09:27 black/ drwxr-xr-x 2 xxxxx xxxxx
   4096 Apr 5 20:21 classic/ drwxr-xr-x 3 xxxxx xxxxx 4096 Apr 5 20:21 default/
 * [My real user name is replaced by the xxxxx]
 * Worth a look maybe.. 🙂
 * Cheers.
 *  [pm44](https://wordpress.org/support/users/pm44/)
 * (@pm44)
 * [20 years ago](https://wordpress.org/support/topic/wordpress-errors/#post-216460)
 * im still getting a message when i log in, i cannot change my wp url in options,
   I new to wp so i dont know much

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

The topic ‘WordPress Errors’ is closed to new replies.

## Tags

 * [1and1](https://wordpress.org/support/topic-tag/1and1/)
 * [enable sending referrers](https://wordpress.org/support/topic-tag/enable-sending-referrers/)
 * [installation](https://wordpress.org/support/topic-tag/installation/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 3 replies
 * 4 participants
 * Last reply from: [pm44](https://wordpress.org/support/users/pm44/)
 * Last activity: [20 years ago](https://wordpress.org/support/topic/wordpress-errors/#post-216460)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
