after my hosting provider updated their PHP in cpanel, my site cannot load its php files, someone else made these file and i am trying to detect what the problem might be, here is the output of executed php:
Warning: include(folder_include/config.php) [function.include]: failed to open stream: No such file or directory in /home/website/public_html/v3/folder_include/classes.php on line 2
Warning: include(folder_include/config.php) [function.include]: failed to open stream: No such file or directory in /home/website/public_html/v3/folder_include/classes.php on line 2
Warning: include() [function.include]: Failed opening 'folder_include/config.php' for inclusion (include_path='.:/opt/php52/lib/php') in /home/website/public_html/v3/folder_include/classes.php on line 2
Warning: include(folder_include/class.database.php) [function.include]: failed to open stream: No such file or directory in /home/website/public_html/v3/folder_include/classes.php on line 3
Warning: include(folder_include/class.database.php) [function.include]: failed to open stream: No such file or directory in /home/website/public_html/v3/folder_include/classes.php on line 3
Warning: include() [function.include]: Failed opening 'folder_include/class.database.php' for inclusion (include_path='.:/opt/php52/lib/php') in /home/website/public_html/v3/folder_include/classes.php on line 3
Warning: include(folder_include/class.misc.php) [function.include]: failed to open stream: No such file or directory in /home/website/public_html/v3/folder_include/classes.php on line 4
Warning: include(folder_include/class.misc.php) [function.include]: failed to open stream: No such file or directory in /home/website/public_html/v3/folder_include/classes.php on line 4
Warning: include() [function.include]: Failed opening 'folder_include/class.misc.php' for inclusion (include_path='.:/opt/php52/lib/php') in /home/website/public_html/v3/folder_include/classes.php on line 4
Warning: include(folder_include/class.website.php) [function.include]: failed to open stream: No such file or directory in /home/website/public_html/v3/folder_include/classes.php on line 5
Warning: include(folder_include/class.website.php) [function.include]: failed to open stream: No such file or directory in /home/website/public_html/v3/folder_include/classes.php on line 5
Warning: include() [function.include]: Failed opening 'folder_include/class.website.php' for inclusion (include_path='.:/opt/php52/lib/php') in /home/website/public_html/v3/folder_include/classes.php on line 5
Warning: include(folder_include/class.korpa.php) [function.include]: failed to open stream: No such file or directory in /home/website/public_html/v3/folder_include/classes.php on line 6
Warning: include(folder_include/class.korpa.php) [function.include]: failed to open stream: No such file or directory in /home/website/public_html/v3/folder_include/classes.php on line 6
Warning: include() [function.include]: Failed opening 'folder_include/class.korpa.php' for inclusion (include_path='.:/opt/php52/lib/php') in /home/website/public_html/v3/folder_include/classes.php on line 6
Regards
We need to see these lines to know the problem, but probably the function syntax or name was changed.
Related
I am getting below error . I have already tried with dir , document root, require_once and require.
This error i am getting in Live Server.
Warning: include_once(/storage/ssd1/655/2980655/public_html/Lib/DB//MysqliDb.php): failed to open stream: No such file or directory in /storage/ssd1/655/2980655/public_html/index.php on line 8
Warning: include_once(): Failed opening '/storage/ssd1/655/2980655/public_html/Lib/DB//MysqliDb.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /storage/ssd1/655/2980655/public_html/index.php on line 8
Thank you in Advance.
Warning: include(/adodb5/adodb.inc.php): failed to open stream: No such file or directory in C:\xampp\htdocs\crmsv2\login.php on line 3
Warning: include(): Failed opening '/adodb5/adodb.inc.php' for inclusion (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\crmsv2\login.php on line 3
Warning: include(/config/config.php): failed to open stream: No such file or directory in C:\xampp\htdocs\crmsv2\login.php on line 4
Warning: include(): Failed opening '/config/config.php' for inclusion (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\crmsv2\login.php on line 4
i m having these 2 errors .i have checked for pear in xampp..it is only in license
1.Warning: include(includes/connect.php): failed to open stream: No such file or directory in
C:\xampp\htdocs\malala\includes\new_posts.php on line 46
2.Warning: include(): Failed opening 'includes/connect.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in
C:\xampp\htdocs\malala\includes\new_posts.php on line 46
how could i solve this issue
I am working on something and it is not working. I am getting this error:
Warning: include(../includes/config.php) [function.include]: failed to open stream: No such file or directory in /home/valerie2/public_html/elinkswap/snorris/install.php on line 24
Warning: include(../includes/config.php) [function.include]: failed to open stream: No such file or directory in /home/valerie2/public_html/elinkswap/snorris/install.php on line 24
Warning: include() [function.include]: Failed opening '../includes/config.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/valerie2/public_html/elinkswap/snorris/install.php on line 24
Warning: include(../libs/auth.php) [function.include]: failed to open stream: No such file or directory in /home/valerie2/public_html/elinkswap/snorris/install.php on line 25
Warning: include(../libs/auth.php) [function.include]: failed to open stream: No such file or directory in /home/valerie2/public_html/elinkswap/snorris/install.php on line 25
Warning: include() [function.include]: Failed opening '../libs/auth.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/valerie2/public_html/elinkswap/snorris/install.php on line 25
Fatal error: Call to undefined function phpdighttpvars() in /home/valerie2/public_html/elinkswap/snorris/install.php on line 27
Here is the code that it is getting the error:
24. include $relative_script_path.'./includes/config.php';
25. include $relative_script_path.'./libs/auth.php';
26.
27. extract( phpdigHttpVars(
array('step'=>'integer',
Ok on line 24 where the include is there is a dot I put that in there cause sometimes it will help. But it didn't have one there before and I still had the error. I am not understanding why I can not get these to work. Can someone help me understand?
The actual file it is looking for is
$relative_script_path.'./includes/config.php';
One way to debug is to die with that path, then you can check what it's really looking for:
die($relative_script_path.'./includes/config.php');
The page should stop at that point and display the entire file path. You usually then see what the error could be.
Im very new to php and i have a page with 5 includes located in a directory (called includes) one above where my page is held (called contact
My File Structure is like this
|Index.php (includes workfine)
|Includes
|Contact|index.php
The Index.php in the contact folder only seems to show the form2.php include
<?php include("../../head.php"); ?>
</head>
<body>
<?php include("../../header.php"); ?>
<!-- container -->
<div id="container" class="container_12">
<!-- full width Header-->
<?php include("../../billboard.php"); ?>
<!-- Main Content-->
<div class="grid_8">
<?php include("../form2.php"); ?>
<div class="clear"></div>
</div> <!--main content close-->
<!-- Side Bar-->
<?php include("../../sidebar1.php"); ?>
</div>
</div>
<!--containter close-->
<div id="topspace" class="grid_12"></div>
<?php include("../footer.php"); ?>
</body>
</html>
Errors that appear:
Warning: include(../../head.php) [function.include]: failed to open stream: No such file or directory in /home/superinj/public_html/gholami.co.uk/callback/index.php on line 20
Warning: include(../../head.php) [function.include]: failed to open stream: No such file or directory in /home/superinj/public_html/gholami.co.uk/callback/index.php on line 20
Warning: include() [function.include]: Failed opening '../../head.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/superinj/public_html/gholami.co.uk/callback/index.php on line 20
Warning: include(../../header.php) [function.include]: failed to open stream: No such file or directory in /home/superinj/public_html/gholami.co.uk/callback/index.php on line 26
Warning: include(../../header.php) [function.include]: failed to open stream: No such file or directory in /home/superinj/public_html/gholami.co.uk/callback/index.php on line 26
Warning: include() [function.include]: Failed opening '../../header.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/superinj/public_html/gholami.co.uk/callback/index.php on line 26
Warning: include(../../billboard.php) [function.include]: failed to open stream: No such file or directory in /home/superinj/public_html/gholami.co.uk/callback/index.php on line 33
Warning: include(../../billboard.php) [function.include]: failed to open stream: No such file or directory in /home/superinj/public_html/gholami.co.uk/callback/index.php on line 33
Warning: include() [function.include]: Failed opening '../../billboard.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/superinj/public_html/gholami.co.uk/callback/index.php on line 33
Need To Talk About A Mortgage? We Can Contact You..
(form2.php appears here)
Warning: include(../../sidebar1.php) [function.include]: failed to open stream: No such file or directory in /home/superinj/public_html/gholami.co.uk/callback/index.php on line 54
Warning: include(../../sidebar1.php) [function.include]: failed to open stream: No such file or directory in /home/superinj/public_html/gholami.co.uk/callback/index.php on line 54
Warning: include() [function.include]: Failed opening '../../sidebar1.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/superinj/public_html/gholami.co.uk/callback/index.php on line 54
Warning: include(../footer.php) [function.include]: failed to open stream: No such file or directory in /home/superinj/public_html/gholami.co.uk/callback/index.php on line 67
Warning: include(../footer.php) [function.include]: failed to open stream: No such file or directory in /home/superinj/public_html/gholami.co.uk/callback/index.php on line 67
Warning: include() [function.include]: Failed opening '../footer.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/superinj/public_html/gholami.co.uk/callback/index.php on line 67
I have access to two servers and have tried uploading to both and both times get the error
What am i missing?
Thanks
If it's one directory above, use ../ instead of ../../
Example:
<?php include("../head.php"); ?>
That is why the form appears and the others don't :)
Looks like you forgot to put the "/Includes/" in your paths
<?php include("../Includes/head.php"); ?>