Skip to main content
Topic: Re: Uncaught PDOException: SQLSTATE[08006] [7] invalid port number: "utf8" (Read 1715 times) previous topic - next topic - Topic derived from Uncaught PDOException...

Re: Uncaught PDOException: SQLSTATE[08006] [7] invalid port number: "utf8"

Hi Emman.I found the bug.I had to remove DB_CHARSET from  function GetModel($arg=null){
      //Initialse New Database Connection
      return new PDODb(DB_TYPE, DB_HOST , DB_USERNAME, DB_PASSWORD, DB_NAME);
   }
from the BaseController.php  and it is working now.It only affects a PostgresSql connection

gerhard

Re: Uncaught PDOException: SQLSTATE[08006] [7] invalid port number: "utf8"

Reply #1
me too,but different trick.
i change 'UTF8' to '5432'

work find,

Re: Re: Uncaught PDOException: SQLSTATE[08006] [7] invalid port number: "utf8"

Reply #2
Thanks guys for this update, Next update will resolve this issue.