Not sure why I am having succ a hard time setting this up, following the install instructions but am getting this error.
Warning: main(genieConfiguration.inc.php): failed to open stream: No such file or directory in /home/www/grasshoppersgifts.com/phpCodeGenie3.0.2/index.php on line 1
Warning: main(): Failed opening 'genieConfiguration.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/www/grasshoppersgifts.com/phpCodeGenie3.0.2/index.php on line 1
Warning: main(INC_MAIN_PAGE): failed to open stream: No such file or directory in /home/www/grasshoppersgifts.com/phpCodeGenie3.0.2/index.php on line 2
Warning: main(): Failed opening 'INC_MAIN_PAGE' for inclusion (include_path='.:/usr/local/lib/php') in /home/www/grasshoppersgifts.com/phpCodeGenie3.0.2/index.php on line 2
// Linux Server
define("SITE_PATH","/home/www/grasshoppersgifts.com/phpCodeGenie3.0");
define("FILE_SEPARATOR", "/");
// win or nix
define("OS_TYPE","nix");
/*****************
// Windows Server
define("SITE_PATH","D:\\projects\\phpCodeGenie3.0"); // no trailing slashes
define("FILE_SEPARATOR", "\\");
// win or nix
define("OS_TYPE","win");
// Specify the language that you want to use phpCodeGenie in
// You can make your own language file if it does exist yet
// and send your contribution back to phpCodeGenie
define("LANGUAGE_FILE",APP_PATH.FILE_SEPARATOR."language".FILE_SEPARATOR."lang_english.inc.php");
I had the same problem. I changed the following:
define("URL_ADDRESS","/phpCodeGenie3.0.2/web/");
define("SITE_PATH","/home/your_user_name/public_html/phpCodeGenie3.0.2/");
The public_html directory is were I placed the phpCodeGenie3.0.2 to. The /home/your_user_name/ takes place of the /home/www/grasshoppersgifts.com. You'll need to replace of course "your_user_name" with the user name of your website.
I didn't need the full path in the URL_ADDRESS
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Not sure why I am having succ a hard time setting this up, following the install instructions but am getting this error.
Warning: main(genieConfiguration.inc.php): failed to open stream: No such file or directory in /home/www/grasshoppersgifts.com/phpCodeGenie3.0.2/index.php on line 1
Warning: main(): Failed opening 'genieConfiguration.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/www/grasshoppersgifts.com/phpCodeGenie3.0.2/index.php on line 1
Warning: main(INC_MAIN_PAGE): failed to open stream: No such file or directory in /home/www/grasshoppersgifts.com/phpCodeGenie3.0.2/index.php on line 2
Warning: main(): Failed opening 'INC_MAIN_PAGE' for inclusion (include_path='.:/usr/local/lib/php') in /home/www/grasshoppersgifts.com/phpCodeGenie3.0.2/index.php on line 2
Here is my genieConfiguration.inc.php settings.
<?
session_start();
define("URL_ADDRESS","http://grasshoppersgifts.com/phpCodeGenie3/web/");
// Linux Server
define("SITE_PATH","/home/www/grasshoppersgifts.com/phpCodeGenie3.0");
define("FILE_SEPARATOR", "/");
// win or nix
define("OS_TYPE","nix");
/*****************
// Windows Server
define("SITE_PATH","D:\\projects\\phpCodeGenie3.0"); // no trailing slashes
define("FILE_SEPARATOR", "\\");
// win or nix
define("OS_TYPE","win");
***************/
define("WEB_SEPARATOR","/");
define("APP_PATH",SITE_PATH.FILE_SEPARATOR."app");
define("WEB_PATH",SITE_PATH.FILE_SEPARATOR."web");
// Specify the language that you want to use phpCodeGenie in
// You can make your own language file if it does exist yet
// and send your contribution back to phpCodeGenie
define("LANGUAGE_FILE",APP_PATH.FILE_SEPARATOR."language".FILE_SEPARATOR."lang_english.inc.php");
define("CONFIG_COMPONENT",APP_PATH.FILE_SEPARATOR."settings");
define("CONFIG_FILE",CONFIG_COMPONENT.FILE_SEPARATOR."definitions.inc.php");
include_once(CONFIG_FILE);
?>
Please, any help would be great.
Thanks, Bob.
P.S. Here is my index.php if it helps.
<?php include_once("genieConfiguration.inc.php"); ?>
<?php include_once(INC_MAIN_PAGE); ?>
I had the same problem. I changed the following:
define("URL_ADDRESS","/phpCodeGenie3.0.2/web/");
define("SITE_PATH","/home/your_user_name/public_html/phpCodeGenie3.0.2/");
The public_html directory is were I placed the phpCodeGenie3.0.2 to. The /home/your_user_name/ takes place of the /home/www/grasshoppersgifts.com. You'll need to replace of course "your_user_name" with the user name of your website.
I didn't need the full path in the URL_ADDRESS
Bob,
Are you running on a Windows box?