Image

Imagemariuu wrote in Imagephp

Problems with config.php for a script.

Okay, well this is my first time posting to this community, I've little experience with php so I'm working off of pre made scripts. I rrecieved this problem:

Warning: main(/home2/yukapok/data/lib/cache/lib.php) [function.main]: failed to open stream: No such file or directory in /home2/yukapok/public_html/candy/includes.php on line 25

Fatal error: main() [function.require]: Failed opening required '/home2/yukapok/data/lib/cache/lib.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/yukapok/public_html/candy/includes.php on line 25


So, line 25 is: require_once($CFG->dirroot.'lib/cache/lib.php');

Ask for more information and I'll edit it in. Thanks, I hope I get this figured out...

Edit: Fixed. I needed to change my $CFG->dirroot'' to the folders leading to the folder in public_html with the script for it. Then I had to change the dataroot to the data folder with the folders leading to it also in the name. :D