php guys - help please

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • brizzad
    holla
    • Jul 2003
    • 11769

    #1

    php guys - help please

    Warning: main(modules/coppermine/language/lang-english.php): failed to open stream: No such file or directory in /usr/www/virtual/brizzad/www.weedland.com/modules/coppermine/include/init.inc on line 215

    Fatal error: main(): Failed opening required 'modules/coppermine/language/lang-english.php' (include_path='.:/usr/local/lib/php') in /usr/www/virtual/brizzad/www.weedland.com/modules/coppermine/include/init.inc on line 215



    wtf does that mean?
  • brizzad
    holla
    • Jul 2003
    • 11769

    #2
    bump

    Comment

    • pxxx
      First African GFY Member
      • Mar 2004
      • 12114

      #3
      Originally posted by brizzad
      Warning: main(modules/coppermine/language/lang-english.php): failed to open stream: No such file or directory in /usr/www/virtual/brizzad/www.weedland.com/modules/coppermine/include/init.inc on line 215

      Fatal error: main(): Failed opening required 'modules/coppermine/language/lang-english.php' (include_path='.:/usr/local/lib/php') in /usr/www/virtual/brizzad/www.weedland.com/modules/coppermine/include/init.inc on line 215



      wtf does that mean?
      I dont know what the fuck that mean.

      Comment

      • brizzad
        holla
        • Jul 2003
        • 11769

        #4
        Originally posted by pxxx
        I dont know what the fuck that mean.

        the thread was pointed at php guys

        Comment

        • rowan
          Too lazy to set a custom title
          • Mar 2002
          • 17393

          #5
          Show us what's on line 215. "Failed to open stream" probably means it's trying to open a file that doesn't exist, or you don't have permission, or there's a network error if it's a URL, etc.

          Comment

          • Anothers
            Confirmed User
            • Nov 2001
            • 219

            #6
            in line 215 is wrong access path to this file 'modules/coppermine/language/lang-english.php'

            Comment

            • pornpf69
              Too lazy to set a custom title
              • Jun 2004
              • 15782

              #7
              you made samething wrong when configuring it...

              Comment

              • extreme
                Confirmed User
                • Oct 2002
                • 2120

                #8
                "Fatal error: main(): Failed opening" sounds pretty clear to me? Check if the file exists and have the right perms.

                Comment

                • mardigras
                  Bon temps!
                  • Feb 2003
                  • 14194

                  #9
                  Is your URL supposed to be included in your path?

                  /usr/www/virtual/brizzad/www.weedland.com/modules/coppermine/include/init.inc

                  I've only installed a few easy scripts but where you have www.weedland.com I usually have home
                  .

                  Comment

                  • brizzad
                    holla
                    • Jul 2003
                    • 11769

                    #10
                    Originally posted by extreme
                    "Fatal error: main(): Failed opening" sounds pretty clear to me? Check if the file exists and have the right perms.

                    it does exist and has correct CHMOD, that's why i dont understand what's going on

                    Comment

                    • brizzad
                      holla
                      • Jul 2003
                      • 11769

                      #11
                      Originally posted by mardigras
                      Is your URL supposed to be included in your path?

                      /usr/www/virtual/brizzad/www.weedland.com/modules/coppermine/include/init.inc

                      I've only installed a few easy scripts but where you have www.weedland.com I usually have home


                      www.weedland.com is supposed to be there, im hosting multiple domains on the same ip

                      Comment

                      • mardigras
                        Bon temps!
                        • Feb 2003
                        • 14194

                        #12
                        Originally posted by brizzad
                        www.weedland.com is supposed to be there, im hosting multiple domains on the same ip
                        Are other scripts working using that path? Try a simple script you know works elsewhere for you to be certain you are using the correct path. Always eliminate the simplest before moving on
                        .

                        Comment

                        • Anothers
                          Confirmed User
                          • Nov 2001
                          • 219

                          #13
                          Originally posted by brizzad
                          it does exist and has correct CHMOD, that's why i dont understand what's going on
                          what exactly is in line 215 in this file '/usr/www/virtual/brizzad/www.weedland.com/modules/coppermine/include/init.inc '

                          Comment

                          • rowan
                            Too lazy to set a custom title
                            • Mar 2002
                            • 17393

                            #14
                            Originally posted by Anothers
                            what exactly is in line 215 in this file '/usr/www/virtual/brizzad/www.weedland.com/modules/coppermine/include/init.inc '
                            I would guess it's something like

                            require_once("modules/coppermine/language/lang-english.php");

                            (probably a ../ or two at the start of the path)

                            Comment

                            • spentrent
                              Confirmed User
                              • Feb 2004
                              • 876

                              #15
                              brizzad,

                              Edit this file:

                              /usr/www/virtual/brizzad/www.weedland.com/modules/coppermine/include/init.inc

                              Look for this line:

                              require('modules/coppermine/language/lang-english.php');

                              It may be include(), include_once(), or require_once() but you'll know it when you see it (since you can just search the file for that relative path to lang-english.php).

                              Replace the path to lang-english.php with an absolute path, ie

                              require('/usr/www/virtual/brizzad/www.weedland.com/modules/coppermine/language/lang-english.php');


                              Unfortunately without looking at the files/filesystem/php info I can only guess. But since you say the file exists, you might give this a try.
                              Last edited by spentrent; 08-09-2004, 08:38 AM.

                              Comment

                              • brizzad
                                holla
                                • Jul 2003
                                • 11769

                                #16
                                Originally posted by spentrent
                                brizzad,

                                Edit this file:

                                /usr/www/virtual/brizzad/www.weedland.com/modules/coppermine/include/init.inc

                                Look for this line:

                                require('modules/coppermine/language/lang-english.php');

                                It may be include(), include_once(), or require_once() but you'll know it when you see it (since you can just search the file for that relative path to lang-english.php).

                                Replace the path to lang-english.php with an absolute path, ie

                                require('/usr/www/virtual/brizzad/www.weedland.com/modules/coppermine/language/lang-english.php');


                                Unfortunately without looking at the files/filesystem/php info I can only guess. But since you say the file exists, you might give this a try.

                                thanks dude, ill give it a try

                                Comment

                                • spentrent
                                  Confirmed User
                                  • Feb 2004
                                  • 876

                                  #17
                                  Originally posted by brizzad
                                  thanks dude, ill give it a try
                                  No prob; tell me how it turns out. Hit me up if you hit a wall ;)

                                  Comment

                                  • Intrigue
                                    Confirmed User
                                    • Feb 2004
                                    • 662

                                    #18
                                    check your include path, make sure modules/ etc... is in there somewhere, or you could just prepend $_SERVER["DOCUMENT_ROOT"] to the path if it's in / (or probably just use /, ./, or ../)

                                    Comment

                                    Working...