Re: [PLUG] Facing issue with php 5.5.x in Ubuntu 14.04.5 LTS

2018-03-12 Thread Amey Abhyankar
On 6 March 2018 at 00:38, G Karunakar  wrote:
> On Mon, 5 Mar 2018 11:35:17 +0530
> Amey Abhyankar wrote:
>
>> Hello,
>>
>> I am getting php related errors in my product running on 14.04.5
>> LTS. Details as follows =
>>
>>
>> Error =
>>
>> [Mon Mar 301708 2018] [:error] [pid 19149] [client
>> :45627] PHP Fatal error:  Call to a member function
>> getLanguage() on a non-object
>> in /opt/user//webroot/inc/include.php on line 198
>>
>> line 198 = define("sLANG", $_SESSION
>> ['obj_ClientConfig']->getLanguage() );
>>
>> php version = PHP 5.5.9-1ubuntu4.23 (cli) (built: Feb  8 2018
>> 21:59:47) OS = Ubuntu 14.04.5 LTS [64bit]
>> uname = 3.13.0-133-generic #182-Ubuntu SMP Tue Sep 19 15:49:21 UTC
>> 2017 x86_64 x86_64 x86_64 GNU/Linux
>>
>> Additional info: Same code works fine with php 5.4 & on Debian 7.
>> I checked changelog of php 5.5 but not getting any useful pointers.
>>
>> What can be the issue?
>>
> Not done php for a while but,
> A search for "Call to a member function  xyz() on a non-object" shows
> that apparently  at that invocation function was getting called on a
> null/empty object.
>
> eg.
> https://www.drupal.org/project/entity_translation/issues/2648062
> so a check on var before invoking method on it.
> or $_SESSION['obj_ClientConfig'] is empty?
>
> Also suggest to compare output of  'locale -a'  on Debian 7 & Ubuntu
> 14.04 . Should have C, C.utf8 en_US.utf8 in the list.

Thanks.
I have asked developer to check those things.

>
> Karunakar
>
> ___
> plug-mail mailing list
> plug-mail@plug.org.in
> http://list.plug.org.in/listinfo/plug-mail
___
plug-mail mailing list
plug-mail@plug.org.in
http://list.plug.org.in/listinfo/plug-mail


Re: [PLUG] Facing issue with php 5.5.x in Ubuntu 14.04.5 LTS

2018-03-05 Thread G Karunakar
On Mon, 5 Mar 2018 11:35:17 +0530
Amey Abhyankar wrote:

> Hello,
> 
> I am getting php related errors in my product running on 14.04.5
> LTS. Details as follows =
> 
> 
> Error =
> 
> [Mon Mar 301708 2018] [:error] [pid 19149] [client
> :45627] PHP Fatal error:  Call to a member function
> getLanguage() on a non-object
> in /opt/user//webroot/inc/include.php on line 198
> 
> line 198 = define("sLANG", $_SESSION
> ['obj_ClientConfig']->getLanguage() );
> 
> php version = PHP 5.5.9-1ubuntu4.23 (cli) (built: Feb  8 2018
> 21:59:47) OS = Ubuntu 14.04.5 LTS [64bit]
> uname = 3.13.0-133-generic #182-Ubuntu SMP Tue Sep 19 15:49:21 UTC
> 2017 x86_64 x86_64 x86_64 GNU/Linux
> 
> Additional info: Same code works fine with php 5.4 & on Debian 7.
> I checked changelog of php 5.5 but not getting any useful pointers.
> 
> What can be the issue?
> 
Not done php for a while but,
A search for "Call to a member function  xyz() on a non-object" shows
that apparently  at that invocation function was getting called on a
null/empty object. 

eg. 
https://www.drupal.org/project/entity_translation/issues/2648062
so a check on var before invoking method on it.
or $_SESSION['obj_ClientConfig'] is empty?

Also suggest to compare output of  'locale -a'  on Debian 7 & Ubuntu
14.04 . Should have C, C.utf8 en_US.utf8 in the list.

Karunakar

___
plug-mail mailing list
plug-mail@plug.org.in
http://list.plug.org.in/listinfo/plug-mail