Recent Topics

1 Jan 24, 2010 07:54    

My b2evolution Version: 3.x

I'm trying to import Typepad blog posts (as a movable type format, .txt) into a new install of 3.3.1 b2evo. I'm getting this error:

Undefined variable: dispatcher in /inc/tools/mtimport.ctrl.php on line 1634

I've uploaded the typepad .txt to the correct place (b2evo root).

Anyone know what the problem is? (Sorry if it's answered somewhere before)

2 Jan 26, 2010 10:28

Edit the file /inc/tools/mtimport.ctrl.php

line 1617

global $exportedfile, $import_mode, $dispatcher;


and 1416

global $authors, $categories, $posts, $dispatcher;

3 Jan 26, 2010 13:33

Thanks - although you're reply was a bit confusing. Until I looked at the file in question, I didn't realise you meant 'add $dispatcher;' to the end of the relevant lines.

4 Jan 26, 2010 13:38

Er, never mind. Still getting same error... could you rephrase your comment just in case I'm doing the wrong thing?

5 Jan 26, 2010 15:58

Are you sure that you edited the above 2 lines, you can't get the same error if you did?

6 Jan 26, 2010 16:08

Yep, edited those exact lines (all I did was add in $dispatcher; right?) in the /inc/tools/mtimport.ctrl.php file, correct permissions set, cleared cache, text file in the blog root... 404 error with the exact same undefined variable error as before. Undid everything and redid it just to make sure :(

7 Jan 26, 2010 16:22

This is weird :-/
Try replacing the $dispatcher on that line

<form action="<?php echo $dispatcher ?>" class="center">


to

<form action="admin.php" class="center">

8 Jan 27, 2010 06:10

Yes, that did it! No errors, file imported fine.

Thanks so much! :)


Form is loading...