default userpic

Can't call method "context" on an undefined value at lib/MT/WeblogPublisher.pm line 1307

Vote 0 Votes

For a few months now after upgrading to MT4, I've been having intermittent rebuilding problems. For example, sometimes saving an entry fails to rebuild any indices or archives (no error appears in the activity log either).

Sometimes when rebuilding entry archives, I am getting intermittent failures with the error:

Can't call method "context" on an undefined value at lib/MT/WeblogPublisher.pm line 1307

What on earth does that mean? Why are Movable Type error messages so cryptic?

4 Replies

| Add a Reply
  • The fact that MT is spewing such an unfriendly error message is the result of a very low level issue that could not be anticipated. We feel that it is best to display what we can to help the user and support find a resolution to the error.

    Although - we should strive to make the experience easier and less daunting.

    As for the problem - what version of MT are you on?

  • Thanks for the reply, Byrne. I'm running MT 4.1 on MySQL 4.1.2 on a shared host.

  • When I try to rebuild entries and pages, I got similar problem like this:

    Can't call method "context" on an undefined value at lib/MT/WeblogPublisher.pm line 942.

    I use MT 4.15b5 with default templates on SQLite. And I created another new blog for testing, it works fine! So I really don't understand what's wrong with my original blog.

  • Hi,

    I have similar problem.

    Can't call method "context" on an undefined value at lib/MT/WeblogPublisher.pm line 1137.

    It happens with default templates, my private (that works with version 4.1) , and also after template refreshing.

    MT versions with this problem : MT4.1.2; MTOS/MT 4.2 RC2 RC3 RC4 also on all new night-snapshots ( updated every day )

    BTW - is it good to use night snapshots - or RC versions ? which are more stable - closer to final product ?

Add a Reply

Forum Groups