By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,852 Members | 2,152 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,852 IT Pros & Developers. It's quick & easy.

PHP fatal error : Failed opening required

P: 6
Fatal error: require() [function.require]: 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?

Expand|Select|Wrap|Line Numbers
  1. if(!defined('CORE_INCLUDE_DIR')){
  2.             define('CORE_INCLUDE_DIR',CORE_DIR.
  3.                ((!defined('SHOP_DEVELOPER') || !constant('SHOP_DEVELOPER')) && version_compare(PHP_VERSION,'5.0','>=')?'/include_v5':'/include'));
  4.         }
  5.         set_include_path(CORE_INCLUDE_DIR.PATH_SEPARATOR.'.'.PATH_SEPARATOR.CORE_DIR.'/lib/pear');
  6.         require('defined.php');
Jan 6 '12 #1
Share this Question
Share on Google+
10 Replies


Dormilich
Expert Mod 5K+
P: 8,639
seems like the file is not in one of the include directories.
Jan 7 '12 #2

Dormilich
Expert Mod 5K+
P: 8,639
first, where is that file define.php located?
Jan 9 '12 #3

P: 6
Dear Sir
Define.PHP located at
directory as below

/home/aakk1971/home_html/core/include/define.php
and include_v5/define.pho
Jan 9 '12 #4

Dormilich
Expert Mod 5K+
P: 8,639
that's the problem. the include dir is named ../core/include_v5 not ../core/include (where the file is)
Jan 9 '12 #5

P: 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?
Jan 9 '12 #6

P: 6
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
Jan 9 '12 #7

Dormilich
Expert Mod 5K+
P: 8,639
did you include the class definition?
Jan 9 '12 #8

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

sorry what is class definition?
Jan 9 '12 #9

Dormilich
Expert Mod 5K+
P: 8,639
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.
Jan 9 '12 #10

P: 6
here is php info
http://www.88mono.com/info.php
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_globals = 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.secureserver.net
url_rewriter.tags = “a=href,area=href,frame=src,input=src,form=,fields et=”

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

;[Zend]
;zend_optimizer.optimization_level=15
;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
;zend_extension=/usr/local/Zend/lib/Optimizer-3.3.3/ZendExtensionManager.so
;zend_extension_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3/ZendExtensionManager_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_functions = “highlight_file,ini_alter,ini_restore,openlog,pass thru,
; phpinfo, exec, system, dl, fsockopen, set_time_limit,
; popen, proc_open, proc_nice,shell_exec,show_source,symlink”
Jan 10 '12 #11

Post your reply

Sign in to post your reply or Sign up for a free account.