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
Comment #1
knalstaaf commentedComment #2
kalabroTry 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.
Comment #3
kalabroSteps 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.
Comment #5
dillix commentedI experienced this issue on new site (PB 3.1):
Comment #6
kalabroIs jQuery Update disabled?
Comment #7
dillix commentedNo, but for admin panel is set: Default (provided by Drupal)
Comment #8
kalabroUnfortunately 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.
Comment #9
kalabroThe problem here is that your Ctools cached object is already broken by your previous attempts to create PB item with jQuery Update enabled.
Something like this may help:
DELETE FROM ctools_object_cache WHERE obj = "path_breadcrumbs";But not in the production of course.