Hello please help. I need to know how to repair this error I am getting on my website here's the error I don't know what is causing this can you guys please help and tell me how to repair it to I need to repair the script some how. Here's the index.php script. I didn't create it I purchased it a couple years ago with some scripts. require_once('config.php'); ob_start(); define('APPS', './apps'); //define('VIEWS', './view'); $app = !empty($_GET['app']) ? strtolower($_GET['app']) : 'home'; $action = !empty($_GET['action']) ? strtolower($_GET['action']) : 'index'; require_once APPS . "/$app/{$app}_entrance.php"; require_once APPS . "/$app/$action.php"; //@include VIEWS . "/$app/$action.html"; $output_content = ob_get_clean(); $title .= ' - MySpace Codes, MySpace Editor, MySpace Generators - '.SITENAME; $desc .= " - We have MySpace Editors, MySpace Layouts, MySpace Codes, MySpace Generators and MySpace Graphics, Ultimate One stop MySpace Resource!"; require './layouts/' . ( @$layout ? $layout : 'default' ) . '.php'; ?>[/QUOTE] Can someone please tell me how to repair it. I tried everything i know thanks annie98
This line (this is the line 9 mentioned in the error): require_once APPS . "/$app/{$app}_entrance.php"; Code (markup): means that the script requires the file "home_entrance.php" to be located in your ./apps/home/ directory or else it will not work. It's possible that this file is missing, but I think it's more likely that it is there but is called by a different name, and/or the directory is not called "home", so look for another file ending with _entrance.php. Now, why the code is inserting the word "home" when it looks for this file, perhaps you can figure out. It looks like this was a variable (labelled '$app' on line 9) set up to indicate... something, perhaps in a previous version of the site, like the name of the site or something. If you have some kind of config file or admin backend to this program, then perhaps you can find the word 'home' and change it to whatever the _entrance.php file is labelled with. Partly guesswork, hard to tell when I don't have the whole program in front of me.
The file is missing. Even someone who knows absolutely no PHP should have been able to figure that out from the error.
Thanks guys for your help I thought the file is missing at first but it wasn't so other than that i don't know. I uploaded the whole script if you like to look it i uploaded it to mediafire. Here's the link http://www.mediafire.com/download.php?mz1yt2mzmjm. If anyone think they can fix it please pm me I will pay $5 for the script to be repaired thanks annie98
On Line 4 of index.php change define('APPS', './apps'); PHP: To: define('APPS', './apps/apps'); PHP: Lets us know the new error if any ?
Fix your site directory tree according to your logic. You have apps/apps in the site tree while it should be just apps/ or change define('APPS', './apps'); to define('APPS', './apps/apps'); in the script.