Warning in admin CP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BB3K
    Member
    • Mar 2006
    • 47
    • 3.6.x

    Warning in admin CP

    Alright, I uploaded all the files, went into my admin CP, clicked the import link and it gives me this.

    "Warning: main(/home/content/a/w/e/awesomebbs/html/impeximpex/impex_language.php): failed to open stream: No such file or directory in /home/content/a/w/e/awesomebbs/html/impex/index.php on line 47

    Fatal error: main(): Failed opening required '/home/content/a/w/e/awesomebbs/html/impeximpex/impex_language.php' (include_path='.:/usr/local/lib/php') in /home/content/a/w/e/awesomebbs/html/impex/index.php on line 47"

    For some reason, it's trying to find something in a impeximpex directory. I can't figure out why. I didn't make any changes to anything except for the config file. I am running vB 3.5.4. Help please.
  • Michael König
    Senior Member
    • May 2001
    • 461
    • 3.6.x

    #2
    Same problem here.

    I guess the new constant DIR in ImpEx conflicts with the same constant name DIR in vBulletin.

    Comment

    • Colin F
      Senior Member
      • May 2004
      • 17689

      #3
      I'll point it out to Jerry. I know changed something that has to do with that in 1.44
      Best Regards
      Colin Frei

      Please don't contact me per PM.

      Comment

      • Pirate45
        Senior Member
        • Apr 2006
        • 209
        • 3.5.x

        #4
        I am having the same issue.

        Warning: main(/home/frisco/public_html/forum/impeximpex/impex_language.php): failed to open stream: No such file or directory in /home/frisco/public_html/forum/impex/index.php on line 47

        Fatal error: main(): Failed opening required '/home/frisco/public_html/forum/impeximpex/impex_language.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/frisco/public_html/forum/impex/index.php on line 47

        Comment

        • Michael König
          Senior Member
          • May 2001
          • 461
          • 3.6.x

          #5
          I had to replace the constant DIR in all ImpEx files with a new name (in my case I used IDIR ) and to change this line in ImpExConfig.php:
          Code:
          $impexconfig['system']['language']		= 'impex/impex_language.php';
          with:
          Code:
          $impexconfig['system']['language']		= '/impex_language.php';

          Comment

          • BB3K
            Member
            • Mar 2006
            • 47
            • 3.6.x

            #6
            Originally posted by Mystics
            I had to replace the constant DIR in all ImpEx files with a new name (in my case I used IDIR ) and to change this line in ImpExConfig.php:
            Code:
            $impexconfig['system']['language']        = 'impex/impex_language.php';
            with:
            Code:
            $impexconfig['system']['language']        = '/impex_language.php';
            Could you find out which files need to be edited? I'd rather not have to open every file and search in each to find out if they have a reference to DIR or not.

            Comment

            • Michael König
              Senior Member
              • May 2001
              • 461
              • 3.6.x

              #7
              It is in almost every file

              Search for this text within all files:
              Code:
              'DIR'
              DIR . 
              DIR.
              and replace DIR with a new name.

              Comment

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

                #8
                It was just the impex/ that was left in the language file, though as DIR is a vBulletin constant I have gone with IDIR for ImpEx DIR.
                I wrote ImpEx.

                Blog | Me

                Comment

                • Pirate45
                  Senior Member
                  • Apr 2006
                  • 209
                  • 3.5.x

                  #9
                  Is a new version going to be available to download that is corrected?

                  Comment

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

                    #10
                    Originally posted by Pirate45
                    Is a new version going to be available to download that is corrected?
                    Yes, I am building it now.
                    I wrote ImpEx.

                    Blog | Me

                    Comment

                    • Pirate45
                      Senior Member
                      • Apr 2006
                      • 209
                      • 3.5.x

                      #11
                      Thank you Jerry.

                      Comment

                      • Michael König
                        Senior Member
                        • May 2001
                        • 461
                        • 3.6.x

                        #12
                        Originally posted by Jerry
                        though as DIR is a vBulletin constant I have gone with IDIR for ImpEx DIR.
                        If you install ImpEx outside vBulletin, the same name won't be a problem, but it won't work if you install ImpEx in the vBulletin directory (init.php and functions.php will display an error IIRC).

                        So thanks for the update
                        Last edited by Michael König; Mon 3 Apr '06, 5:21am.

                        Comment

                        • BB3K
                          Member
                          • Mar 2006
                          • 47
                          • 3.6.x

                          #13
                          Originally posted by Mystics
                          It is in almost every file

                          Search for this text within all files:
                          Code:
                          'DIR'
                          DIR . 
                          DIR.
                          and replace DIR with a new name.
                          Okay, I guess I'm a little slow. So I'll search for that bit of code in all the files and do what? Every single time there's a reference to "DIR," I should change it to "IDIR?"

                          Comment

                          • Pirate45
                            Senior Member
                            • Apr 2006
                            • 209
                            • 3.5.x

                            #14
                            BB3K,

                            If you re-download impex all will be well (at least it was for me).

                            Comment

                            • Michael König
                              Senior Member
                              • May 2001
                              • 461
                              • 3.6.x

                              #15
                              Yes, the package has been updated.

                              Comment

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