Web App displaying blank page only

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
gopalverma1
User
Posts: 10

Web App displaying blank page only

Post by gopalverma1 »

Sir,
i uploaded the demo project to a shared server, but it only showing blank white page, i modified the database connecting code to production

    if (!IsLocal()) { // Not local (Production)
       $info["host"] = "locahost";
       $info["user"] = "a47f7db4_demo2024";
       $info["password"] = "a47f7db4_demo2024";
       $info["dbname"] = "a47f7db4_demo2024";
    }

and in Advanced Setting : Environment => Production
Also Enabled debug => but showing only blank page

Even i contacted the provider regarding this, they informed no error in the log.

sir, anything i need to modify, for production


arbei
User
Posts: 9390

Post by arbei »

  1. You should enable Debug and check your own log file on the production server.
  2. You may change back to "development" mode for debugging, or you may read Enviromment to check what you should enabled for debugging in production environment.

gopalverma1
User
Posts: 10

Post by gopalverma1 »

sir
when i enabled debug as per your instruction, the log as below

[2024-04-11T11:00:59.626716+00:00] log.DEBUG: SELECT DISTINCT `categories`.`CategoryName` AS `CategoryName`,`products`.`ProductName` AS `ProductName`,`products`.`QuantityPerUnit` AS `QuantityPerUnit` FROM `categories` JOIN `products` ON (`categories`.`CategoryID` = `products`.`CategoryID`) WHERE `products`.`UnitsInStock` <= 0 {"params":[],"types":[],"executionMS":0.0044918060302734375} []
[2024-04-11T11:00:59.628176+00:00] log.DEBUG: SELECT DISTINCT `categories`.`CategoryName` AS `CategoryName`,`products`.`ProductName` AS `ProductName`,`products`.`QuantityPerUnit` AS `QuantityPerUnit` FROM `categories` JOIN `products` ON (`categories`.`CategoryID` = `products`.`CategoryID`) WHERE `products`.`UnitsInStock` <= 0 {"params":[],"types":[],"executionMS":0.0006289482116699219} []
[2024-04-11T11:00:59.629123+00:00] log.DEBUG: SELECT DISTINCT `categories`.`CategoryName` AS `CategoryName`,`products`.`ProductName` AS `ProductName`,`products`.`QuantityPerUnit` AS `QuantityPerUnit`,`products`.`UnitsInStock` AS `UnitsInStock` FROM `categories` JOIN `products` ON (`categories`.`CategoryID` = `products`.`CategoryID`) WHERE `products`.`Discontinued` = '1' {"params":[],"types":[],"executionMS":0.0004949569702148438} []
[2024-04-11T11:00:59.629540+00:00] log.DEBUG: SELECT DISTINCT `categories`.`CategoryName` AS `CategoryName`,`products`.`ProductName` AS `ProductName`,`products`.`QuantityPerUnit` AS `QuantityPerUnit`,`products`.`UnitsInStock` AS `UnitsInStock` FROM `categories` JOIN `products` ON (`categories`.`CategoryID` = `products`.`CategoryID`) WHERE `products`.`Discontinued` = '1' {"params":[],"types":[],"executionMS":0.00036215782165527344} []

still getting blank white page.


mobhar
User
Posts: 11732

Post by mobhar »

In addition, make sure you have also configured your php.ini file, to display errors (and log errors if necessary):

error_reporting (int) - set it to E_ALL
display_errors (string) - set it to On
log_errors (bool) - set it to On
error_log (string) - set it to a log file on your server, e.g. "my/path/php_errors.log" (change "my/path" to your real path), the file should be writable by the web server's user. Note that this is error log by the php.exe, NOT same as log files (by PHP scripts) above.


Post Reply