When experimenting with the Link Path of the breadcrumb, this popped up all of a sudden:

Notice: Undefined property: stdClass::$machine_name in path_breadcrumbs_ui_edit_page() (line 69 of /var/www/vhosts/domain.com/httpdocs/sites/all/modules/path_breadcrumbs/path_breadcrumbs_ui/path_breadcrumbs_ui.pages.inc).

PDOException: SQLSTATE [23000]: Integrity constraint violation: 1048 Column 'name' cannot be null: INSERT INTO {ctools_object_cache} (sid, obj, name, data, updated) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4); Array ( [:db_insert_placeholder_0] => 0wdpM-dR3WAqPz79-0VffaabLpR3SOX45HwesceC7QM [:db_insert_placeholder_1] => path_breadcrumbs [:db_insert_placeholder_2] => [:db_insert_placeholder_3] => O:8:"stdClass":6:{s:6:"update";s:9:"Bijwerken";s:11:"update_save";s:15:"Update and Save";s:13:"form_build_id";s:48:"form-lNQSWBdY1Y2EW_BymTP9Nx435vwKXVnoFU_kUMpEUUs";s:10:"form_token";s:43:"1J284YLhRHQb9QZWFgEhUA_oWT0yLO3YZhLF4RCkBqA";s:7:"form_id";s:29:"path_breadcrumbs_ui_edit_form";s:2:"op";s:15:"Update and Save";} [:db_insert_placeholder_4] => 1367244671 ) in ctools_object_cache_set() (regel 90 van /var/www/vhosts/domain.com/httpdocs/sites/all/modules/ctools/includes/object-cache.inc).

I wish I could tell how to reproduce it, but all I can tell is that it was updating and saving an altered link path for a breadcrumb. I can't access the settings of my breadcrumb anymore.

Comments

knalstaaf’s picture

Version: 7.x-3.0-beta2 » 7.x-3.0-beta1
Category: support » bug
kalabro’s picture

Try to find and delete your breadcrumb from database table `ctools_object_cache`. Now breadcrumb should work again. BACKUP FIRST!

We will work on this problem if someone provide steps to reproduce bug.

#2003796: PDOException marked as duplicate of this.

kalabro’s picture

Version: 7.x-3.0-beta1 » 7.x-3.x-dev
Status: Active » Fixed

Steps to reproduce:

1. Click “Create new path breadcrumb”
2. Machine name: test
3. Click “Continue”, “Continue”. Stop on step “Selection rules”.
4. On new tab click again “Create new path breadcrumb”
5. Again machine name: test
6. Finish breadcrumb creating.
7. Go back to tab 1 and click “Continue”. Step “Breadcrumbs settings” will be opened. It will overwrite ctools object cache with empty data.
8. Error appears with already created breadcrumb (6)

Should be fixed in 7.x-3.x-dev now:
http://drupalcode.org/project/path_breadcrumbs.git/commitdiff/3d497ba9cb...

For already broken breadcrumbs, please, use notes in #2.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

dillix’s picture

Status: Closed (fixed) » Active

I experienced this issue on new site (PB 3.1):

Notice: Undefined property: stdClass::$machine_name в функции path_breadcrumbs_ui_edit_page() (строка 69 в файле /usr/home/site/site.dev/htdocs/sites/all/modules/path_breadcrumbs/path_breadcrumbs_ui/path_breadcrumbs_ui.pages.inc).
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null: INSERT INTO {ctools_object_cache} (sid, obj, name, data, updated) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4); Array ( [:db_insert_placeholder_0] => 4VmiPdE5_6toE6OHM2nMS2QoMLd-IDFtKcF-ccniO0M [:db_insert_placeholder_1] => path_breadcrumbs [:db_insert_placeholder_2] => [:db_insert_placeholder_3] => O:8:"stdClass":6:{s:6:"update";s:16:"Обновить";s:11:"update_save";s:38:"Обновить и сохранить";s:13:"form_build_id";s:48:"form-8CMc5vhSSRiG04pQm65t_CCscaxp2ZPZHLD7jGEZjIg";s:10:"form_token";s:43:"znwVq_c9T-oddfYnxmRtgPs-g3_X2H-E6BTkW1xspjk";s:7:"form_id";s:29:"path_breadcrumbs_ui_edit_form";s:2:"op";s:38:"Обновить и сохранить";} [:db_insert_placeholder_4] => 1421691580 ) в функции ctools_object_cache_set() (строка 90 в файле /usr/home/site/site.dev/htdocs/sites/all/modules/ctools/includes/object-cache.inc).
kalabro’s picture

Is jQuery Update disabled?

dillix’s picture

No, but for admin panel is set: Default (provided by Drupal)

kalabro’s picture

Status: Active » Closed (fixed)

Unfortunately it will not work. I've tested it recently. You have to disable jQuery Update while working in Path Breadcrumbs UI. Moreover,your current error may require complete PB reinstall or manual database cache clearing.
Your issue is related to #2066223: Isn't compatible with jQuery Update so let's close this one.

kalabro’s picture

The problem here is that your Ctools cached object is already broken by your previous attempts to create PB item with jQuery Update enabled.

Moreover, your current error may require complete PB reinstall or manual database cache clearing.

Something like this may help:

DELETE FROM ctools_object_cache WHERE obj = "path_breadcrumbs";

But not in the production of course.