Mediawiki returns “Call to a member function selectField() on a non-object”. Solution: clean disk & restart Mysql.

January 5, 2010 at 11:59 am 1 comment

I had problems with my Mediawiki install: when changing a page, I got a session data related problem and the page asked me to log out & back in again. Same problem. After rebooting the complete server I got “Call to a member function selectField() on a non-object in …” on any page of my Mediawiki install and couldn’t find too much information (not to mention a solution) on the Internet.

It turned out Mysql ran out of disk space and hence didn’t want to display a page, although the disk didn’t seem full: Usage of /:  98.6% of 27.50GB (only using one partition for everything on this system).

The Apache logs didn’t reveal anything (default config). Restarting Apache went fine, too.

root@ubuntu:/var/log/apache2# /etc/init.d/apache2 restart
* Restarting web server apache2                                                                                                                                                                       … waiting                                                                                                                                                                                   [ OK ]
root@ubuntu:/var/log/apache2#

Mysql however didn’t want to start:

root@ubuntu:/# /etc/init.d/mysql restart
* Stopping MySQL database server mysqld                                                                                                                                                       [ OK ]
* /etc/init.d/mysql: ERROR: The partition with /var/lib/mysql is too full!
root@ubuntu:/#

root@ubuntu:/# rm (a big file)
root@ubuntu:/# /etc/init.d/mysql restart
* Stopping MySQL database server mysqld                                                                                                                                                       [ OK ]
* Starting MySQL database server mysqld                                                                                                                                                       [ OK ]
* Checking for corrupt, not cleanly closed and upgrade needing tables.
root@ubuntu:/# ERROR 126 (HY000) at line 1: Incorrect key file for table ‘/tmp/#sql_13fc_0.MYI’; try to repair it

It seems the MYI file got repaired since I was able to fully use Mediawiki on my server again.

Advertisements

Entry filed under: Ubuntu. Tags: , , , , .

LaCie F.A. Porsche edition 500GB disassembled

1 Comment Add your own

  • 1. kanetix auto insurance  |  June 8, 2013 at 7:12 am

    Gday. Sorry to bother you but I ran across your blogging
    site and discovered you’re using the exact same template as me. The only issue is on my website, I’m battling to get the layout looking
    like yours. Would you mind emailing me at: maridumont@web.
    de so I can get this figured out. By the way I have bookmarked your internet site: http:
    //pressworthly.wordpress.com/2010/01/05/mediawiki-returns-call-to-a-member-function-selectfield-on-a-non-object-solution-clean-disk-restart-mysql/ and will certainly be visiting frequently.

    Thank you!

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

January 2010
M T W T F S S
« Nov    
 123
45678910
11121314151617
18192021222324
25262728293031

Most Recent Posts


%d bloggers like this: