var_dumpling icon indicating copy to clipboard operation
var_dumpling copied to clipboard

How to guide?

Open blowsie opened this issue 12 years ago • 5 comments

How do use this plugin? I installed it and my var_dump is still one long string.

Event Object ( [event_id] => 2 [post_id] => 61 [event_slug] => traditional-music-session [event_owner] => 1......................

blowsie avatar Dec 19 '12 11:12 blowsie

Normally, the plugin would work automatically as long as there is no html rendered in the page (working on this issue). However, It seems this var dump response is not caught by the regEx. I will work on updating it. Thanks for the support!

alexnaspo avatar Dec 19 '12 12:12 alexnaspo

Same, my magento objects don't trigger the plugin at all.

object(Varien_Object)#396 (7) { ["_data":protected]=> array(3) { ["comment_count"]=> int(0) ["view_count"]=> int(125) ["vote_count"]=> int(0) } ["_hasDataChanges":protected]=> bool(true) ["_origData":protected]=> NULL ["_idFieldName":protected]=> NULL ["_isDeleted":protected]=> bool(false) ["_oldFieldsMap":protected]=> array(0) { } ["_syncFieldsMap":protected]=> array(0) { } } object(Varien_Object)#196 (7) { ["_data":protected]=> array(3) { ["comment_count"]=> int(0) ["view_count"]=> int(125) ["vote_count"]=> int(6) } ["_hasDataChanges":protected]=> bool(true) ["_origData":protected]=> NULL ["_idFieldName":protected]=> NULL ["_isDeleted":protected]=> bool(false) ["_oldFieldsMap":protected]=> array(0) { } ["_syncFieldsMap":protected]=> array(0) { } } object(Varien_Object)#388 (7) { ["_data":protected]=> array(3) { ["comment_count"]=> int(0) ["view_count"]=> int(0) ["vote_count"]=> int(0) } ["_hasDataChanges":protected]=> bool(true) ["_origData":protected]=> NULL ["_idFieldName":protected]=> NULL ["_isDeleted":protected]=> bool(false) ["_oldFieldsMap":protected]=> array(0) { } ["_syncFieldsMap":protected]=> array(0) { } } object(Varien_Object)#276 (7) { ["_data":protected]=> array(3) { ["comment_count"]=> int(0) ["view_count"]=> int(116) ["vote_count"]=> int(5) } ["_hasDataChanges":protected]=> bool(true) ["_origData":protected]=> NULL ["_idFieldName":protected]=> NULL ["_isDeleted":protected]=> bool(false) ["_oldFieldsMap":protected]=> array(0) { } ["_syncFieldsMap":protected]=> array(0) { } }

drnikko avatar Sep 10 '13 17:09 drnikko

@drnikki Found a fix for that object, will push it up soon. Thanks for the help!

@blowsie Sorry for the extreme delay (9 months). Is that the exact string that your var_dump returns for that object?

alexnaspo avatar Sep 13 '13 04:09 alexnaspo

@alexnaspo sorry I can remember its been such along time.

blowsie avatar Sep 20 '13 09:09 blowsie

Same problem. Complete page source:

array(1) {
  ["plugin|c"]=>
  object(WPRSS_Entity_Registry_Entity)#227 (4) {
    ["_registry":protected]=>
    object(Wprss_Registry)#228 (7) {
      ["_addon_entity":protected]=>
      NULL
      ["_entities":protected]=>
      *RECURSION*
      ["_entitiesByType":protected]=>
      array(1) {
        ["plugin"]=>
        array(1) {
          ["plugin|c"]=>
          *RECURSION*
        }
      }
      ["_entityTypeClassNames":protected]=>
      array(1) {
        ["addon"]=>
        string(27) "Wprss_Registry_Entity_Addon"
      }
      ["_data":protected]=>
      array(2) {
        ["default_entity_type"]=>
        string(5) "other"
        ["default_entity_class_name"]=>
        string(28) "WPRSS_Entity_Registry_Entity"
      }
      ["_idFieldName":protected]=>
      NULL
      ["_keyFields":protected]=>
      array(0) {
      }
    }
    ["_data":protected]=>
    array(5) {
      ["type"]=>
      string(6) "plugin"
      ["id"]=>
      string(1) "c"
      ["name"]=>
      string(10) "Categories"
      ["endpoint_url"]=>
      string(42) "http://abc.com"
      ["hash"]=>
      string(8) "plugin|c"
    }
    ["_idFieldName":protected]=>
    NULL
    ["_keyFields":protected]=>
    array(1) {
      ["type"]=>
      int(0)
    }
  }
}

XedinUnknown avatar Oct 05 '15 15:10 XedinUnknown