Help - Search - Members - Calendar
Full Version: error in creating new blog
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
sugi_grl
I got this error after trying to create a 5th blog

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


and this is what I see everytime I try to access mt.cgi

help1!!
sugi_grl
I can log in as other users but have no administrative powers sad.gif
imabug
Try MT-Medic?
what DB are you using?
sugi_grl
I'm using Version 2.63

I d/led and installed MT-Medic but now what!! I have no script knowledge so I'm not sure what I'm looking for to fix

here's where my MT-Medic is located

http://nanalog.com/cgi-bin/mt/mt-medic.cgi
and the info password is 123456

thanks to anyone who can help this desperate girl!!!
sugi_grl
I just upgraded and I still can't get past log in, any other ideas?

I even replaced this file lib/MT/App/CMS.pm

I wish I knew what was wrong with line 190
girlie
MT is having trouble reading the ID of an existing blog and/or assigning a blog ID to the new blog.

I don't know that MT-Medic is going to help you with this problem. The error message has been known to imply database corruption. sad.gif
sugi_grl
ok mt-medic is at least more specific:

An error occurred:

Can't use an undefined value as a SCALAR reference at lib/MT/ObjectDriver/DBM.pm line 173.


so with db corruption, how can I fix it? huh.gif


mt-medic allowed me to create a new author so I could get past the error. I ran to export my entries and copy my templates but my archive templates of my first blog were completely gone and my photo blog (my 4th blog) was COMPLETELY gone... so weird... ohmy.gif

should I delete all the folders and do a complete reinstall of MT?
girlie
Oh boy. Yes, SCALAR definitely means corruption.

Reinstall - yes - and if you can, choose MySQL for your database this time.
sugi_grl
I did an upgrade where I replaced all the scripts but that didn't help, I don't really see the difference between reinstalling and upgrading, what specifically am I reinstalling script-wise/what was corrupted?

thanks so much for your help girlie, you're the best and your site is too!
imabug
QUOTE (sugi_grl @ Jan 23 2004, 12:27 PM)
I did an upgrade where I replaced all the scripts but that didn't help, I don't really see the difference between reinstalling and upgrading, what specifically am I reinstalling script-wise/what was corrupted?

thanks so much for your help girlie, you're the best and your site is too!

Reinstalling probably isn't necessary if the scripts are still intact. What you can do is reconfigure mt.cfg to use a MySQL database rather than the default Berkeley DB. If you have MySQL available on your server it's pretty simple.
In MySQL:

[*]Create a user to access the MT database

[*]Create the MT database

In mt.cfg:

[*]Comment out the DataSource line

[*]Change ObjectDriver to DBI::mysql

[*]Add the Database, DBUser and DBHost lines

[*]Edit mt-db-pass.cgi so that it has the password for the database user

Then:

[*]Run mt-load.cgi to create the tables and populate them

[*]Point your web browser at your MT login page and log in.

You should be able to import the blog entries you exported once you're logged in.
girlie
I should start using different terminology - to me, "reinstalling" is starting with a clean database, not uploading MT files again. wink.gif
sugi_grl
hey imabug, thanks very much for outlining what I need to do, I'm hoping the MT manual has all the specifics!! wink.gif

thanks again guys, I really really appreciate your help

oh I just noticed my hosting plan doesn't include MySQL, so do I just reload the berkeley db?

I plan to upgrade to MySQL the next couple months but don't want to wait that long

thanks again!!!!
sugi_grl
I deleted my db folder, re-ran mt-load.cgi, recreated my blogs but they have no templates.

I tried to create the index template but when I try to save it, "Load Failed"

---- update ----

I now have a mysql db, I added the 3 lines of code to the mt.cfg according to the installation manual and I'm back up and running! importing was only an issue with one of the blogs because the author likes to put "------" in her entries.

yay back up! thanks guys!
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-2008 Invision Power Services, Inc.