Help - Search - Members - Calendar
Full Version: crazy error message - can't log in
Movable Type Community Forum > Using Movable Type > Additional Features
keef
Yesterday I was having problems wherein I would rebuild and then the index would show a blank screen. Eventually I got this taken care of-- I couldn't really tell you how, it was all trial-and-error-- and then today when I tried to delete a blog and recreate it to help alleviate this and other problems, whenever I go to /cgi-bin/mt.cgi, I get this error message:

QUOTE
An error occurred:

Can't call method "id" on an undefined value at lib/MT/App/CMS.pm line 187.


What can I do to either fix this problem or salvage all of the posts that are sitting in there? This is horribly disastrous. I am fighting the urge to gouge out my own eyes. Okay, that might not be true, but I am freaking out for sure.
keef
My blog is at www.keef.net, incidentally.

And the mt.cgi error message is at www.keef.net/cgi-bin/mt.cgi
keef
Here's line 187 of CMS.pm and the lines immediately around it. 187 is boldfaced. I didn't do anything to this file; it just presented me with this error this morning.

QUOTE
        for my $perms (@perms) {
            next unless $perms->role_mask;
            my $blog = MT::Blog->load($perms->blog_id);
            push @data, { top_blog_id => $blog->id,
                          top_blog_name => $blog->name };
            $data[-1]{top_blog_selected} = 1
                if $blog_id && $blog->id == $blog_id;
girlie
Ooh. I think that error message means the database is corrupted in some way.

Did you by chance run out of disk space on your server?
keef
Well, it's possible-- I had a bunch of photos up last night, but I deleted them very shortly after I uploaded them; it was mostly just to give them to a friend of mine.

Am I screwed?

I realized that I am logged in, I just can't do anything-- when I log in, that's the error message that pops up.
girlie
Are you using Berkeley or MySQL?
keef
I'm using MySQL.
girlie
Do you have access to a tool like phpMyAdmin where you can check your tables, and possibly run the REPAIR command on them?
keef
I don't know. I don't think so.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.