This topic is locked

Build Problem ver5.0 b433

10/1/2008 9:10:23 AM
PHPRunner General questions
R
Redshift author

I can't build a working application at all in version 5.0
After I upload from the output directory to the server, accessing the application causes the following to be displayed in the browser

##if @BUILDER.bCreateLoginPage## ##elseif @BUILDER.Tables[bMenuItem].len>1## ##elseif @BUILDER.Tables[bMenuItem].len## ##if @BUILDER.Tables[bMenuItem].bList## ##elseif @BUILDER.Tables[bMenuItem].nType==titREPORT## ##elseif @BUILDER.Tables[bMenuItem].nType==titCHART## ##else## ##endif## ##else## ##if @BUILDER.Tables.bList## ##elseif @BUILDER.Tables.nType==titREPORT## ##else## ##endif## ##endif##


Then i'm redirected to the following url
www.mydomain.com/pcms/menu.##@ext##
with the following text in the browser

he requested URL /pcmstest/menu. was not found on this server.


I have removed and reinstalled the PHP Runner program and reset my application to no avail.

from looking at the generated code they seem to be verbatim copies of the ones in the source folder and don't look like the code usually generated
for instance this is the generated dbcommon file in my output directory

<?php
if(@$_SERVER["REQUEST_URI"])

{

$pinfo=pathinfo($_SERVER["REQUEST_URI"]);

$dirname = @$pinfo["dirname"];

$dir = split("/",$dirname);

$dirname="";

foreach($dir as $subdir)

{

if($subdir!="")

$dirname.="/".rawurlencode($subdir);

}

if($dirname!="")

{

// @session_set_cookie_params(0,$dirname);

}

}

@session_cache_limiter("none");

@session_start();
error_reporting(E_ALL ^ E_NOTICE);
##if @BUILDER.m_nDatabaseType==DATABASE_MySQL##

$host="##@BUILDER.strConnectInfo1 s##";

$user="##@BUILDER.strConnectInfo2 s##";

$pwd="##@BUILDER.strConnectInfo3 s##";

$port="##@BUILDER.strConnectInfo4 s##";

$sys_dbname="##@BUILDER.strConnectInfo5 s##";
##elseif @BUILDER.m_nDatabaseType==DATABASE_MSSQLServer##

$host="##@BUILDER.strConnectInfo1 s##";

$user="##@BUILDER.strConnectInfo2 s##";

$pwd="##@BUILDER.strConnectInfo3 s##";

$dbname="##@BUILDER.strConnectInfo4 s##";
##elseif @BUILDER.m_nDatabaseType==DATABASE_Access##

$dsn="##@BUILDER.strConnectInfo1 s##";

$user="##@BUILDER.strConnectInfo2 s##";

$pwd="##@BUILDER.strConnectInfo3 s##";
##elseif @BUILDER.m_nDatabaseType==DATABASE_Oracle##

$user="##@BUILDER.strConnectInfo1 s##";

$pwd="##@BUILDER.strConnectInfo2 s##";

$sid="##@BUILDER.strConnectInfo3 s##";
##elseif @BUILDER.m_nDatabaseType==DATABASE_PostgreSQL##

$host="##@BUILDER.strConnectInfo1 s##";

$user="##@BUILDER.strConnectInfo2 s##";

$password="##@BUILDER.strConnectInfo3 s##";

$options="##@BUILDER.strConnectInfo4 s##";

$dbname="##@BUILDER.strConnectInfo5 s##";
$connstr= "host='".pg_escape_string($host).

"' user='".pg_escape_string($user).

"' password='".pg_escape_string($password).

"' dbname='".pg_escape_string($dbname).

"' ".$options;

##endif##
##if @BUILDER.strCharset=="Windows-949"##

$cCharset = "korean";

##else##

$cCharset = "##@BUILDER.strCharset s##";

##endif##
header("Content-type: text/html; charset=".$cCharset);
$dDebug=false;

$dSQL="";
$bSubqueriesSupported=true;
$tables_data=array();
include("locale.php");

include("events.php");

include("commonfunctions.php");

include("dbconnection.php");

include("dal_source.php");
define("FORMAT_NONE","");

define("FORMAT_DATE_SHORT","Short Date");

define("FORMAT_DATE_LONG","Long Date");

define("FORMAT_DATE_TIME","Datetime");

define("FORMAT_TIME","Time");

define("FORMAT_CURRENCY","Currency");

define("FORMAT_PERCENT","Percent");

define("FORMAT_HYPERLINK","Hyperlink");

define("FORMAT_EMAILHYPERLINK","Email Hyperlink");

define("FORMAT_FILE_IMAGE","File-based Image");

define("FORMAT_DATABASE_IMAGE","Database Image");

define("FORMAT_DATABASE_FILE","Database File");

define("FORMAT_FILE","Document Download");

define("FORMAT_LOOKUP_WIZARD","Lookup wizard");

define("FORMAT_PHONE_NUMBER","Phone Number");

define("FORMAT_NUMBER","Number");

define("FORMAT_HTML","HTML");

define("FORMAT_CHECKBOX","Checkbox");

define("FORMAT_CUSTOM","Custom");
define("EDIT_FORMAT_NONE","");

define("EDIT_FORMAT_TEXT_FIELD","Text field");

define("EDIT_FORMAT_TEXT_AREA","Text area");

define("EDIT_FORMAT_PASSWORD","Password");

define("EDIT_FORMAT_DATE","Date");

define("EDIT_FORMAT_TIME","Time");

define("EDIT_FORMAT_RADIO","Radio button");

define("EDIT_FORMAT_CHECKBOX","Checkbox");

define("EDIT_FORMAT_DATABASE_IMAGE","Database image");

define("EDIT_FORMAT_DATABASE_FILE","Database file");

define("EDIT_FORMAT_FILE","Document upload");

define("EDIT_FORMAT_LOOKUP_WIZARD","Lookup wizard");

define("EDIT_FORMAT_HIDDEN","Hidden field");

define("EDIT_FORMAT_READONLY","Readonly");
define("EDIT_DATE_SIMPLE",0);

define("EDIT_DATE_SIMPLE_DP",11);

define("EDIT_DATE_DD",12);

define("EDIT_DATE_DD_DP",13);
define("MODE_ADD",0);

define("MODE_EDIT",1);

define("MODE_SEARCH",2);

define("MODE_LIST",3);

define("MODE_PRINT",4);

define("MODE_VIEW",5);

define("MODE_INLINE_ADD",6);

define("MODE_INLINE_EDIT",7);

define("MODE_EXPORT",8);
define("LOGIN_HARDCODED",0);

define("LOGIN_TABLE",1);
define("ADVSECURITY_ALL",0);

define("ADVSECURITY_VIEW_OWN",1);

define("ADVSECURITY_EDIT_OWN",2);

define("ADVSECURITY_NONE",3);
define("ACCESS_LEVEL_ADMIN","Admin");

define("ACCESS_LEVEL_ADMINGROUP","AdminGroup");

define("ACCESS_LEVEL_USER","User");

define("ACCESS_LEVEL_GUEST","Guest");
define("DATABASE_MySQL","0");

define("DATABASE_Oracle","1");

define("DATABASE_MSSQLServer","2");

define("DATABASE_Access","3");

define("DATABASE_PostgreSQL","4");
define("ADD_SIMPLE","0");

define("ADD_INLINE","1");

define("ADD_ONTHEFLY","2");
define("LIST_SIMPLE","0");

define("LIST_LOOKUP","1");
$strLeftWrapper="##@BUILDER.cLeftWrap s##";

$strRightWrapper="##@BUILDER.cRightWrap s##";
$cLoginTable = "##@BUILDER.strLoginTable s##";

$cUserNameField = "##@BUILDER.strUserNameField s##";

$cPasswordField = "##@BUILDER.strPasswordField s##";

$cUserGroupField = "##@BUILDER.strUserGroupField s##";

$cEmailField = "##@BUILDER.strUserEmailField s##";
$cFrom = "##@BUILDER.strFromEmail s##";

if($cFrom)

ini_set("sendmail_from",$cFrom);
##if @BUILDER.bDynamicPermissions##

$gPermissionsRefreshTime=0;

$gPermissionsRead=false;

##endif##



##if @BUILDER.bCreateLoginPage && @BUILDER.bGuestLogin##

if(!@$_SESSION["UserID"])

{

$scriptname=$_SERVER["PHP_SELF"];

$pos=strrpos($scriptname,"/");

if($pos!==FALSE)

$scriptname=substr($scriptname,$pos+1);

if($scriptname!="login.php" && $scriptname!="remind.php" && $scriptname!="register.php")

{

$_SESSION["UserID"]="Guest";

$_SESSION["GroupID"]="<Guest>";

$_SESSION["AccessLevel"]=ACCESS_LEVEL_GUEST;

if(function_exists("AfterSuccessfulLogin"))

{

$conn=db_connect();

$dummy=array();

AfterSuccessfulLogin("","",$dummy);

db_close($conn);

}

}

}

##endif##
set_error_handler("error_handler");
$useAJAX = true;

$suggestAllContent = true;
?>
Alexey admin 10/1/2008

Hi,
give me some more info on this issue.

Do you create a new project or open existing ?
Please save your project in PHPRunner then zip the whole project directory and send it support@xlinesoft.com

R
Redshift author 10/1/2008

Hi,

give me some more info on this issue.

Do you create a new project or open existing ?
Please save your project in PHPRunner then zip the whole project directory and send it support@xlinesoft.com


This is a project that was built in 4.2 so it was open existing
I will send the files to you now

R
Redshift author 10/1/2008

Ok, I was able to find a way around this by saving the project as a template and then adding that template to a new project.

It works now.