Closed (fixed)
Project:
Path Breadcrumbs
Version:
7.x-2.0-beta9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2012 at 20:23 UTC
Updated:
11 Jun 2012 at 08:21 UTC
I've got strict warning:
Strict warning: Creating default object from empty value in function path_breadcrumbs_get_contexts_from_arguments() (string 438 in file /usr/home/ib/new.ib.ru/htdocs/sites/all/modules/path_breadcrumbs/path_breadcrumbs.module).
here:
http://example.com/node/add
if I use following breadcrumb:
$path_breadcrumb = new stdClass();
$path_breadcrumb->api_version = 1;
$path_breadcrumb->path_id = '6';
$path_breadcrumb->machine_name = 'page_node';
$path_breadcrumb->name = 'Page node';
$path_breadcrumb->path = 'node/%nid';
$path_breadcrumb->data = 'a:6:{s:6:"titles";s:10:"%nid:title";s:5:"paths";s:6:"<none>";s:4:"home";i:1;s:12:"translatable";i:0;s:9:"arguments";a:1:{s:3:"nid";a:3:{s:8:"position";i:1;s:8:"settings";a:1:{s:10:"identifier";s:20:"Content: ID";}s:8:"argument";s:14:"entity_id:node";}}s:6:"access";a:2:{s:7:"plugins";a:2:{i:0;a:4:{s:4:"name";s:9:"node_type";s:8:"settings";a:1:{s:4:"type";a:1:{s:4:"page";s:4:"page";}}s:7:"context";s:3:"nid";s:3:"not";b:0;}i:1;a:3:{s:4:"name";s:5:"front";s:8:"settings";N;s:3:"not";b:1;}}s:5:"logic";s:3:"and";}}';
$path_breadcrumb->weight = 0;
$path_breadcrumb->disabled = 0;
Comments
Comment #1
spleshkaI checked this breadcrumb and found a bug here. Delete this breadcrumb and import a new one:
I don't know why, but serialize() function did not convert data correctly and module was not able to unserialize wrong encoded data.
Comment #2
spleshkaI check it again - problem is not there, sorry. Trying to find it.
Please tell me your OS and language.
Comment #3
dillix commented@Spleshka, I deleted my breadcrumb and imported your, but strict warning stays here. I use php 5.3.10 on my server with error reporting enabled.
Comment #4
spleshkaFound problem. Module could not load argument 'add' from URL (it should be NID there, not 'add'). Fixed and commited to a new release.
Comment #5
dillix commentedThanks, now warning has gone away:)
Comment #5.0
dillix commentedupdated issue