this is my genie configuration file :
<?
session_start();
define("URL_ADDRESS","http://localhost/phpCodeGenie3/web");
// Windows Server
define("SITE_PATH","C:\\Program Files\\Apache Group\\Apache2\\htdocs\\phpCodeGenie3"); // 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");
your config file looks ok and it should not have generated that url.. i dont really know why its building this kind of url... try adding a / at the end of your URL_ADDRESS constant..
Thanks,
Nilesh
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That URL is being generated in app/settings/pageConstants.inc.php and you are very right... i have used FILE_SEPARATOR instead of WEB_SEPARATOR just for that plugin... phpClassMakerForm.php... Its weird that it works fine on my apache both windows and unix.. maybe apache rewrites the \ to /... anyway to fix it just change the pageConstants.inc.php where the PAGE_PHP_CLASS_MAKER_FORM are defined from FILE_SEPARATOR to WEB_SEPARATOR.
Thanks for finding the bug.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
this is my genie configuration file :
<?
session_start();
define("URL_ADDRESS","http://localhost/phpCodeGenie3/web");
// Windows Server
define("SITE_PATH","C:\\Program Files\\Apache Group\\Apache2\\htdocs\\phpCodeGenie3"); // 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);
?>
connexion to database is OK, but the URL generated for utilities are wrong.
example :
http://localhost/phpCodeGenie3/web/generators/php/utils\phpClassMakerForm.php
there should be a "/" instead of "\"
thx for help
JFM
Hi JFM,
your config file looks ok and it should not have generated that url.. i dont really know why its building this kind of url... try adding a / at the end of your URL_ADDRESS constant..
Thanks,
Nilesh
not better :
got http://localhost/phpCodeGenie3/web//generators/php/utils\phpClassMakerForm.php
****
WEB_PATH is OK
FILE_SEPARATOR is OK
imho there is a mix between SITE_PATH.FILE_SEPARATOR and APP_PATH.FILE_SEPARATOR near "utils"
could you tell me which file I should look ?
where is this url generated ?
thx
JFM
That URL is being generated in app/settings/pageConstants.inc.php and you are very right... i have used FILE_SEPARATOR instead of WEB_SEPARATOR just for that plugin... phpClassMakerForm.php... Its weird that it works fine on my apache both windows and unix.. maybe apache rewrites the \ to /... anyway to fix it just change the pageConstants.inc.php where the PAGE_PHP_CLASS_MAKER_FORM are defined from FILE_SEPARATOR to WEB_SEPARATOR.
Thanks for finding the bug.