[PLUG] Facing issue with php 5.5.x in Ubuntu 14.04.5 LTS
Amey Abhyankar
sco1984 at gmail.com
Tue Mar 13 10:45:14 IST 2018
On 6 March 2018 at 00:38, G Karunakar <karunakar at fontserv.in> 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
>> <ip_address>:45627] PHP Fatal error: Call to a member function
>> getLanguage() on a non-object
>> in /opt/user/<code_path>/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 at plug.org.in
> http://list.plug.org.in/listinfo/plug-mail
More information about the plug-mail
mailing list