Cleaner.php doesn't work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TeTeC
    New Member
    • May 2006
    • 1
    • 3.5.x

    Cleaner.php doesn't work

    Hello,

    After checking the forums with the 'Search' function for any answer, I've eventually decided to post.

    I imported my forum from IPB to Vbulletin yesterday. Everything worked fine. Now I would like to clean my messages with the cleaner.php tool. However, this file refuses to work (after configuring it).

    I get nothing, just a blank page.

    These are the first lines of the file:

    PHP Code:
    <?php
    if (function_exists('set_time_limit') AND get_cfg_var('safe_mode')==0)
    {
        @
    set_time_limit(0);
    }

    ignore_user_abort(true);
    error_reporting(E_ALL  & ~E_NOTICE);
    /*
    * @package         ImpEx.tools
    * @version        $Revision: 1.19 $
    * @author        Jerry Hutchings <[email protected]>
    * @checkedout    $Name:  $
    * @date         $Date: 2006/03/31 02:48:11 $
    * @copyright     http://www.vbulletin.com/license.html
    *
    */
    // BACK UP YOUR DATABASE
    // Cleaner
    // Swaps X for Y in the database handy for smilies that have been wrongly parsed
    // THIS IS A GARRUNTEED WAY TO TRASH YOU DB !!! .
    // COMPLETLY INVALIDATES SUPPORT
    // OK NOT REALLY, THOUGH ITS A BRUTAL SCRIPT BE VERY AWARE THAT YOU SHOULD BACK UP !!
    // USE AT YOUR OWN RISK.
    // BACK UP YOUR DATABASE
    //
    // I / we / the company takes no responsiability for you running this script
    // Jerry - [email protected]
    ########################################
    #
    #    Set to true / false
    # $do_posts         = ALL POSTS
    # $do_sigs             = ALL SIGNATURES
    # $do_thread_titles = ALL THREAD TITLES
    # $do_pm_text        = ALL PM TEXTS;
    # $do_pm_text_title    = ALL PM TITLES;
    ########################################
    // BACK UP YOUR DATABASE
    // Set to true to run, and false when done, or remove this script (and all of impex when finished).
    $active                true;

    // Set true or false as to the data you want to clean
    $do_posts            true;
    $do_sigs            false;
    $do_thread_titles    false;
    $do_pm_text            false;
    $do_pm_text_title    false;
    ########################################

    # Replace 'Find me' and "Replace with me" with the strings  you want replaced i.e
    # "<b>"            => "[b]"
    # "<blockquote>"     => "[quote]"
    # add as many elements to the array as needed

    // BACK UP YOUR DATABASE
    $replacer = array(
                
    "style_emoticons/<#EMO_DIR#>/Pancarte_jesors.gif"    => ":jesors:",
                
    ""    => "",
                
    ""    => "",
                
    ""    => "",
                
    ""    => ""
    );

    // BACK UP YOUR DATABASE

    ################################################################################
    # CHANGE NOTHING BELOW THIS LINE # CHANGE NOTHING BELOW THIS LINE # CHANGE NOTHI
    ################################################################################
    Thank for any help!
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    It should echo something if it does anything. I don't see anything wrong with the code you posted. I am moving this to the import forum.

    Comment

    • Jerry
      Senior Member
      • Dec 2002
      • 9137
      • 1.1.x

      #3
      What does the PHP error log say ?
      I wrote ImpEx.

      Blog | Me

      Comment

      • NEXCS-Greg
        Member
        • Sep 2005
        • 39
        • 3.5.x

        #4
        I'm having this same problem. Nothing in the error log.
        Greg Swaney
        [email protected]
        NEXCESS.NET Internet Solutions
        http://nexcess.net

        Comment

        • lolo04
          New Member
          • Oct 2004
          • 25
          • 3.6.x

          #5
          hy i having exactly same problem blank page and no error
          just a blank page :s

          Comment

          • Colin F
            Senior Member
            • May 2004
            • 17689

            #6
            Edit your cleaner.php file.
            Find:
            Code:
            [COLOR=#000000][COLOR=#0000bb]error_reporting[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]E_ALL  [/COLOR][COLOR=#007700]& ~[/COLOR][COLOR=#0000bb]E_NOTICE[/COLOR][COLOR=#007700]);[/COLOR][/COLOR]
            Add after:
            Code:
            define('IDIR', (($getcwd = getcwd()) ? $getcwd : '.'));
            Best Regards
            Colin Frei

            Please don't contact me per PM.

            Comment

            • NEXCS-Greg
              Member
              • Sep 2005
              • 39
              • 3.5.x

              #7
              That fixed the cleaner file but it didn't fix anything. Here's the array:

              Code:
              $replacer = array(
                                      "[img]" => '<img src="',
                                      "[/img]"        => '">'
              );
              And it didn't change anything...ideas?

              I also tried to change [ QUOTE ] and [/ QUOTE ] tags to normal vB quote tags but I can't paste that part, even in code tags cause it tries quoting it haha
              Greg Swaney
              [email protected]
              NEXCESS.NET Internet Solutions
              http://nexcess.net

              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...