Link to home
Start Free TrialLog in
Avatar of Sam Panwar
Sam PanwarFlag for India

asked on

Type mismatched for parameter $server_version

Hi,

I am getting following error in my website can anyone help.

phpCAS error: phpCAS::client(): type mismatched for parameter $server_version (should be `string') in /home/XXXXXXXXXXXXXXX  in line 157

Application running on Linux , Apchec, php , MySQL.

The code in which error occur is
        else {
            phpCAS::client($this->config->casversion, $this-> config->hostname, (int) $this->config->port, $this->config->baseuri);
Avatar of Michael701
Michael701
Flag of United States of America image

quick guess, you could force the type

phpCAS::client((string) $this->config->casversion,

maybe cause it's numeric it cast it as an (int) or (real)
Avatar of Sam Panwar

ASKER

Hi,

Still same error.
ASKER CERTIFIED SOLUTION
Avatar of hernst42
hernst42
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup topic area:
   Accept: hernst42 {http:#20856684}

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

cyberwebservice
Experts Exchange Cleanup Volunteer
Forced accept.

Computer101
EE Admin