Forums

WordPress Errors (4 posts)

  1. TimothyRogers
    Member
    Posted 6 years ago #

    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?

  2. KhemCaigan
    Member
    Posted 6 years ago #

    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?

  3. crankyfranky
    Member
    Posted 6 years ago #

    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.

  4. pm44
    Member
    Posted 6 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic