FireLogger memory hog (another one)

Hi,

I have same problem as Kevin posted 3 months ago. Even if I do not log anything within my Prestashop web store, logger outputs many FireLogger-X-Y response headers, until timeout occures (even if I define FIRELOGGER_NO_EXCEPTION_HANDLER and FIRELOGGER_NO_ERROR_HANDLER).

I decompressed (base64/utf-8) and got laaaaarge unterminated/invalid json packet where it seems like FireLogger wants to log everything (see below).

I’m using:
Firefox v. 23.0.1
FireLogger v. 1.3
Firebug v. 1.12
Ubuntu v. 12.04 amd64
Apache/2.2.22 (Ubuntu)
PHP Version 5.3.10-1ubuntu3.7
PrestaShop 1.5.4

In PrestaShop BackOffice (admin gui) FireLogger works without problems.

Can you guide me, where I should further look for a problem?

Regards
Igor

{"logs":[{"name":"error","args":[],"level":"warning","timestamp":1378249653.0093,"order":0,"time":"23:07:33.009","template":"Notice: Trying to get property of non-object","message":"Notice: Trying to get property of non-object","style":"background-color: #f00","pathname":"\/var\/www\/shop\/classes\/Tools.php","lineno":846,"exc_info":["","",[["\/var\/www\/shop\/classes\/Tools.php",846,"FireLogger::firelogger_error_handler",null],["\/var\/www\/shop\/modules\/evat\/evat.php",890,"ToolsCore::getAdminTokenLite",null],["\/var\/www\/shop\/modules\/evat\/evat.php",37,"Evat->getModuleWarningInfo",{"tax_manager_class":null,"id":"69","version":"1.0","database_version":null,"registered_version":null,"ps_versions_compliancy":{"min":"1.5.0","max":"1.5.99"},"dependencies":[],"name":"evat","displayName":"EVAT service","description":"Calculate, store and analyze taxes with EVAT service.","author":"EVAT team","need_instance":1,"tab":"billing_invoicing","active":1,"warning":null,"limited_countries":[],"_lang":[],"_path":"\/shop\/modules\/evat\/","local_path":"\/var\/www\/shop\/modules\/evat\/","_errors":[],"_confirmations":[],"table":"module","identifier":"id_module","context":{"cart":{"id":null,"id_shop_group":1,"id_shop":1,"id_address_delivery":0,"id_address_invoice":0,"id_currency":1,"id_customer":null,"id_guest":13,"id_lang":1,"recyclable":0,"gift":0,"gift_message":null,"mobile_theme":null,"date_add":null,"secure_key":null,"id_carrier":0,"date_upd":null,"checkedTos":false,"pictures":null,"textFields":null,"delivery_option":null,"allow_seperated_package":false,"_products":null,"_taxCalculationMethod":"0","webserviceParameters":{"fields":{"id_address_delivery":{"xlink_resource":"addresses"},"id_address_invoice":{"xlink_resource":"addresses"},"id_currency":{"xlink_resource":"currencies"},"id_customer":{"xlink_resource":"customers"},"id_guest":{"xlink_resource":"guests"},"id_lang":{"xlink_resource":"languages"}},"associations":{"cart_rows":{"resource":"cart_row","virtual_entity":true,"fields":"..."}}},"id_shop_list":null,"get_shop_from_context":true,"table":"cart","identifier":"id_cart","fieldsRequired":["id_currency","id_lang"],"fieldsSize":{"secure_key":32},"fieldsValidate":{"id_shop_group":"isUnsignedId","id_shop":"isUnsignedId","id_address_delivery":"isUnsignedId","id_address_invoice":"isUnsignedId","id_carrier":"isUnsignedId","id_currency":"isUnsignedId","id_customer":"isUnsignedId","id_guest":"isUnsignedId","id_lang":"isUnsignedId","recyclable":"isBool","gift":"isBool","gift_message":"isMessage","mobile_theme":"isBool","allow_seperated_package":"isBool","date_add":"isDateFormat","date_upd":"isDateFormat"},"fieldsRequiredLang":[],"fieldsSizeLang":[],"fieldsValidateLang":[],"tables":[],"image_dir":null,"image_format":"jpg","def":{"table":"cart","primary":"id_cart","fields":{"id_shop_group":{"type":1,"validate":"isUnsignedId"},"id_shop":{"type":1,"validate":"isUnsignedId"},"id_address_delivery":{"type":1,"validate":"isUnsignedId"},"id_address_invoice":{"type":1,"validate":"isUnsignedId"},"id_carrier":{"type":1,"validate":"isUnsignedId"},"id_currency":{"type":1,"validate":"isUnsignedId","required":true},"id_customer":{"type":1,"validate":"isUnsignedId"},"id_guest":{"type":1,"validate":"isUnsignedId"},"id_lang":{"type":1,"validate":"isUnsignedId","required":true},"recyclable":{"type":2,"validate":"isBool"},"gift":{"type":2,"validate":"isBool"},"gift_message":{"type":3,"validate":"isMessage"},"mobile_theme":{"type":2,"validate":"isBool"},"delivery_option":{"type":3},"secure_key":{"type":3,"size":32},"allow_seperated_package":{"type":2,"validate":"isBool"},"date_add":{"type":5,"validate":"isDateFormat"},"date_upd":{"type":5,"validate":"isDateFormat"}},"classname":"Cart"},"update_fields":null,"__class##":"Cart"},"customer":{"id":null,"id_shop":null,"id_shop_group":null,"secure_key":null,"note":null,"id_gender":0,"id_default_group":"1","id_lang":null,"lastname":null,"firstname":null,"birthday":null,"email":null,"newsletter":null,"ip_registration_newsletter":null,"newsletter_date_add":null,"optin":null,"website":null,"company":null,"siret":null,"ape":null,"outstanding_allow_amount":0,"show_public_prices":0,"id_risk":null,"max_payment_days":0,"passwd":null,"last_passwd_gen":null,"active":true,"is_guest":0,"deleted":0,"date_add":null,"date_upd":null,"years":null,"days":null,"months":null,"geoloc_id_country":null,"geoloc_id_state":null,"geoloc_postcode":null,"logged":0,"id_guest":"13","groupBox":null,"webserviceParameters":{"fields":{"id_default_group":{"xlink_resource":"groups"},"id_lang":{"xlink_resource":"languages"},"newsletter_date_add":[],"ip_registration_newsletter":[],"last_passwd_gen":{"setter":null},"secure_key":{"setter":null},"deleted":[],"passwd":{"setter":"setWsPasswd"}},"associations":{"groups":{"resource":"group"}}},"id_shop_list":null,"get_shop_from_context":true,"table":"customer","identifier":"id_customer","fieldsRequired":["lastname","firstname","email","passwd"],"fieldsSize":{"lastname":32,"firstname":32,"email":128,"passwd":32,"note":65000},"fieldsValidate":{"secure_key":"isMd5","lastname":"isName","firstname":"isName","email":"isEmail","passwd":"isPasswd","id_gender":"isUnsignedId","birthday":"isBirthDate","newsletter":"isBool","optin":"isBool","website":"isUrl","company":"isGenericName","siret":"isSiret","ape":"isApe","outstanding_allow_amount":"isFloat","show_public_prices":"isBool","id_risk":"isUnsignedInt","max_payment_days":"isUnsignedInt","active":"isBool","deleted":"isBool","note":"isCleanHtml","is_guest":"isBool","id_shop":"isUnsignedId","id_shop_group":"isUnsignedId","id_lang":"isUnsignedId","date_add":"isDate","date_upd":"isDate"},"fieldsRequiredLang":[],"fieldsSizeLang":[],"fieldsValidateLang":[],"tables":[],"image_dir":null,"image_format":"jpg","def":{"table":"customer","primary":"id_customer","fields":{"secure_key":{"type":3,"validate":"isMd5","copy_post":false},"lastname":{"type":3,"validate":"isName","required":true,"size":32},"firstname":{"type":3,"validate":"isName","required":true,"size":32},"email":{"type":3,"validate":"isEmail","required":true,"size":128},"passwd":{"type":3,"validate":"isPasswd","required":true,"size":32},"last_passwd_gen":{"type":3,"copy_post":false},"id_gender":{"type":1,"validate":"isUnsignedId"},"birthday":{"type":5,"validate":"isBirthDate"},"newsletter":{"type":2,"validate":"isBool"},"newsletter_date_add":{"type":5,"copy_post":false},"ip_registration_newsletter":{"type":3,"copy_post":false},"optin":{"type":2,"validate":"isBool"},"website":{"type":3,"validate":"isUrl"},"company":{"type":3,"validate":"isGenericName"},"siret":{"type":3,"validate":"isSiret"},"ape":{"type":3,"validate":"isApe"},"outstanding_allow_amount":{"type":4,"validate":"isFloat","copy_post":false},"show_public_prices":{"type":2,"validate":"isBool","copy_post":false},"id_risk":{"type":1,"validate":"isUnsignedInt","copy_post":false},"max_payment_days":{"type":1,"validate":"isUnsignedInt","copy_post":false},"active":{"type":2,"validate":"isBool","copy_post":false},"deleted":{"type":2,"validate":"isBool","copy_post":false},"note":{"type":6,"validate":"isCleanHtml","size":65000,"copy_post":false},"is_guest":{"type":2,"validate":"isBool","copy_post":false},"id_shop":{"type":1,"validate":"isUnsignedId","copy_post":false},"id_shop_group":{"type":1,"validate":"isUnsignedId","copy_post":false},"id_default_group":{"type":1,"copy_post":false},"id_lang":{"type":1,"validate":"isUnsignedId","copy_post":false},"date_add":{"type":5,"validate":"isDate","copy_post":false},"date_upd":{"type":5,"validate":"isDate","copy_post":false}},"classname":"Customer"},"update_fields":null,"__class##":"Customer"},"cookie":{"_content":{"date_add":"2013-09-04 00:08:51","id_lang":"1","id_currency":"1","resolvedCountryKey":"LocationInfo-192.168.69.32:::::::::SI:","resolvedCountryValue":"SI","id_guest":"13","id_connections":"26","last_visited_category":"3","viewed":"1","checksum":3399817393},"_name":"ffdbd13d96d903c026c4876e97eb63a4","_expire":1379977652,"_domain":"presta.mettron.si","_path":"\/shop\/","_cipherTool":{"_key":"qMavJByceDo3edOMvAwGbRBQDttonDOd","_iv":"uSjepY\u0013\u0017","__class##":"Rijndael"},"_key":"NxtPW6yWOEh1ASGsbKEKtwgM3Iv7dPKi9pq27pXDLVW6PX9kt49rK0np","_iv":"5X63Bpmd","_modified":false,"_allow_writing":true,"__class##":"Cookie"},"link":{"allow":0,"url":"\/shop\/index.php","protocol_link":"http:\/\/","protocol_content":"http:\/\/","ssl_enable":"0","__class##":"Link"},"country":{"id":193,"id_zone":"1","id_currency":"0","iso_code":"SI","call_prefix":"386","name":"Slovenia","contains_states":"0","need_identification_number":"0","need_zip_code":"1","zip_code_format":"C-NNNN","display_tax_label":"1","active":"1","webserviceParameters":{"objectsNodeName":"countries","fields":{"id_zone":{"xlink_resource":"zones"},"id_currency":{"xlink_resource":"currencies"}}},"id_lang":"1","id_shop":1,"id_shop_list":null,"get_shop_from_context":true,"table":"country","identifier":"id_country","fieldsRequired":["id_zone","iso_code","contains_states","need_identification_number","display_tax_label"],"fieldsSize":{"iso_code":3},"fieldsValidate":{"id_zone":"isUnsignedId","id_currency":"isUnsignedId","call_prefix":"isInt","iso_code":"isLanguageIsoCode","active":"isBool","contains_states":"isBool","need_identification_number":"isBool","need_zip_code":"isBool","zip_code_format":"isZipCodeFormat","display_tax_label":"isBool"},"fieldsRequiredLang":["name"],"fieldsSizeLang":{"name":64},"fieldsValidateLang":{"name":"isGenericName"},"tables":[],"image_dir":null,"image_format":"jpg","def":{"table":"country","primary":"id_country","multilang":true,"fields":{"id_zone":{"type":1,"validate":"isUnsignedId","required":true},"id_currency":{"type":1,"validate":"isUnsignedId"},"call_prefix":{"type":1,"validate":"isInt"},"iso_code":{"type":3,"validate":"isLanguageIsoCode","required":true,"size":3},"active":{"type":2,"validate":"isBool"},"contains_states":{"type":2,"validate":"isBool","required":true},"need_identification_number":{"type":2,"validate":"isBool","required":true},"need_zip_code":{"type":2,"validate":"isBool"},"zip_code_format":{"type":3,"validate":"isZipCodeFormat"},"display_tax_label":{"type":2,"validate":"isBool","required":true},"name":{"type":3,"lang":true,"validate":"isGenericName","required":true,"size":64}},"associations":{"zone":{"type":1},"currency":{"type":1},"l":{"type":2,"field":"id_country","foreign_field":"id_country"}},"classname":"Country"},"update_fields":null,"__class##":"Country"},"employee":null,"controller":{"php_self":"index","errors":[],"iso":null,"orderBy":null,"orderWay":null,"p":null,"n":null,"auth":false,"guestAllowed":false,"authRedirection":false,"ssl":false,"restrictedCountry":false,"maintenance":false,"display_column_left":true,"display_column_right":true,"nb_items_per_page":null,"context":"*RECURSION*","css_files":{"\/shop\/themes\/default\/css\/grid_prestashop.css":"all" ...

Hi,

I found source of the problem:

it was misusage within PrestaShop (and not FireLogger itself), where FireLogger catched all events/exceptions before I defined FIRELOGGER_NO_ERROR_HANDLER/FIRELOGGER_NO_EXCEPTION_HANDLER

Igor

1 Like