Destero Posted April 18, 2013 Share Posted April 18, 2013 Hello, First of all im not a web designer and have very little knowledge of this subject other then what i can find out on google. All the google search's show that this error has occurred when people add a template to there website. My website was developed for me and isent associated with a template. I have switch web hosting company's and i have moved my website over to the new host. After i have uploaded the site i am getting this error: Warning: include_once(/usr/local/apache/htdocs/functions/functions.php) [function.include-once]: failed to open stream: No such file or directory in /home/ausplayg/public_html/includes/all.php on line 22Warning: include_once() [function.include]: Failed opening '/usr/local/apache/htdocs/functions/functions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ausplayg/public_html/includes/all.php on line 22Fatal error: Call to undefined function connect() in /home/ausplayg/public_html/includes/all.php on line 22 I have found line 22 in the all.php and it has: include_once($_SERVER['DOCUMENT_ROOT']."/functions/functions.php"); connect(); Our of curieosity i have removed the / from the front of the functions page and it dident make a difference. If you have a idea how to fix it please reply or you can add me on skype - destero_au Any help will be hugely appreciated. Quote Link to comment Share on other sites More sharing options...
Jessica Posted April 18, 2013 Share Posted April 18, 2013 Compare the directory it's looking in with the directory the file is actually stored. Quote Link to comment Share on other sites More sharing options...
requinix Posted April 18, 2013 Share Posted April 18, 2013 That file /usr/local/apache/htdocs/functions/functions.phpdoes not exist. Are you sure you have the right path to it? Once you get that right the "undefined function" error should go away. Quote Link to comment Share on other sites More sharing options...
Destero Posted April 18, 2013 Author Share Posted April 18, 2013 (edited) Thanks for the replys. I copy pasted all the files from my old hoster to the new one. I have in filezilla copied the path and it appears as /public_html/functions/functions.php Edited April 18, 2013 by Destero Quote Link to comment Share on other sites More sharing options...
requinix Posted April 18, 2013 Share Posted April 18, 2013 (edited) Are you sure you're putting the files in the right place? Did someone specifically tell you to use FTP to upload the files into the public_html? Edited April 18, 2013 by requinix Quote Link to comment Share on other sites More sharing options...
Destero Posted April 18, 2013 Author Share Posted April 18, 2013 How do i find that out exactly? could it be /~ausplayg/ Quote Link to comment Share on other sites More sharing options...
Jessica Posted April 18, 2013 Share Posted April 18, 2013 Your files are in: /home/ausplayg/public_html/ PHP is looking in: /usr/local/apache/htdocs/ You see that there's a major difference right? http://us2.php.net/manual/en/ini.core.php#ini.include-path Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.