PHP fatal error : Failed opening required

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aakk1971
    New Member
    • Jan 2012
    • 6

    PHP fatal error : Failed opening required

    Fatal error: require() [function.requir e]: Failed opening required 'define.php' (include_path=' ../core/include_v5:.:../core/lib/pear') in /home/aakk1971/public_html/core/kernel.php on line 37

    below is the directory explain
    can you let me know
    which way need to revise?

    Code:
    if(!defined('CORE_INCLUDE_DIR')){
                define('CORE_INCLUDE_DIR',CORE_DIR.
                   ((!defined('SHOP_DEVELOPER') || !constant('SHOP_DEVELOPER')) && version_compare(PHP_VERSION,'5.0','>=')?'/include_v5':'/include'));
            }
            set_include_path(CORE_INCLUDE_DIR.PATH_SEPARATOR.'.'.PATH_SEPARATOR.CORE_DIR.'/lib/pear');
            require('defined.php');
    Last edited by Niheel; Jan 12 '12, 11:16 AM.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    seems like the file is not in one of the include directories.

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

      #3
      first, where is that file define.php located?

      Comment

      • aakk1971
        New Member
        • Jan 2012
        • 6

        #4
        Dear Sir
        Define.PHP located at
        directory as below

        /home/aakk1971/home_html/core/include/define.php
        and include_v5/define.pho

        Comment

        • Dormilich
          Recognized Expert Expert
          • Aug 2008
          • 8694

          #5
          that's the problem. the include dir is named ../core/include_v5 not ../core/include (where the file is)

          Comment

          • aakk1971
            New Member
            • Jan 2012
            • 6

            #6
            Thank you for your reply
            On this case due to Define.PhP in both Include and include_v5
            May I know how to do?
            do i need to delete one of them?

            Comment

            • aakk1971
              New Member
              • Jan 2012
              • 6

              #7
              HI Sir
              I did make it thank for your advise
              Now I face another question

              Fatal error: Class 'setmgr' not found in /home/aakk1971/public_html/core/kernel.php on line 77

              Comment

              • Dormilich
                Recognized Expert Expert
                • Aug 2008
                • 8694

                #8
                did you include the class definition?

                Comment

                • aakk1971
                  New Member
                  • Jan 2012
                  • 6

                  #9
                  ZendZend
                  Fatal error: Class 'setmgr' not found in /home/aakk1971/public_html/core/kernel.php on line 77

                  sorry what is class definition?

                  Comment

                  • Dormilich
                    Recognized Expert Expert
                    • Aug 2008
                    • 8694

                    #10
                    the code where the class setmgr is defined. if it is not of your own code (may be from Zend) you need to check whether the setup is correct.

                    Comment

                    • aakk1971
                      New Member
                      • Jan 2012
                      • 6

                      #11
                      here is php info

                      Zend Optimizer v3.3.9

                      May I know what you mean setup?

                      sorry can you let me know nmormally go to where to look for setup file for zend?

                      hi
                      Can I check with you,PHP.INI
                      for revise below message is ok?
                      register_global s = off
                      allow_url_fopen = off

                      expose_php = Off
                      max_input_time = 60
                      variables_order = “EGPCS”
                      extension_dir = ./
                      upload_tmp_dir = /tmp
                      precision = 12
                      SMTP = relay-hosting.secures erver.net
                      url_rewriter.ta gs = “a=href,area=hr ef,frame=src,in put=src,form=,f ieldset=”

                      ; Only uncomment zend optimizer lines if your application requires Zend Optimizer support

                      ;[Zend]
                      ;zend_optimizer .optimization_l evel=15
                      ;zend_extension _manager.optimi zer=/usr/local/Zend/lib/Optimizer-3.3.3
                      ;zend_extension _manager.optimi zer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
                      ;zend_extension =/usr/local/Zend/lib/Optimizer-3.3.3/ZendExtensionMa nager.so
                      ;zend_extension _ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3/ZendExtensionMa nager_TS.so

                      ; — Be very careful to not to disable a function which might be needed!
                      ; — Uncomment the following lines to increase the security of your PHP site.

                      ;disable_functi ons = “highlight_file ,ini_alter,ini_ restore,openlog ,passthru,
                      ; phpinfo, exec, system, dl, fsockopen, set_time_limit,
                      ; popen, proc_open, proc_nice,shell _exec,show_sour ce,symlink”
                      Last edited by Niheel; Jan 12 '12, 11:17 AM. Reason: please post all your info in one post, be thoughtful about how it will look to a reader

                      Comment

                      Working...