Getting:
Notice: Trying to get property of non-object in bueditor_check_page() (line 213 of /home/fabio/public_html/notaio-ocleppo.it/sites/all/modules/bueditor-DRUPAL-7--1/bueditor.inc).
When visiting $site_url/contact with Anonymous and contact.module enabled.
Content of $editor in line 213 of bueditor.inc (result of print_r on it):
Array
(
[2] => stdClass Object
(
[eid] => 2
[name] => BBCode
[pages] => node/*
comment/*
[excludes] => edit-log
edit-menu-description
[iconpath] => %BUEDITOR/icons
[librarypath] => %BUEDITOR/library/bue.min.default.js
[spriteon] => 1
[spritename] => sprite_8b59491e64e79a3301713f6459c19ee0.png
)
[3] => stdClass Object
(
[eid] => 3
[name] => Commenter
[pages] => node/*
comment/*
[excludes] => edit-log
edit-menu-description
[iconpath] => %BUEDITOR/icons
[librarypath] =>
[spriteon] => 1
[spritename] => sprite_47c67b4767a5b4e835dea0cc628ed15c.png
)
[1] => stdClass Object
(
[eid] => 1
[name] => Default
[pages] => node/*
comment/*
[excludes] => edit-log
edit-menu-description
[iconpath] => %BUEDITOR/icons
[librarypath] => %BUEDITOR/library/bue.min.default.js
[spriteon] => 1
[spritename] => sprite_8b59491e64e79a3301713f6459c19ee0.png
)
[4] => stdClass Object
(
[eid] => 4
[name] => Lab
[pages] => node/*
comment/*
[excludes] => edit-log
edit-menu-description
[iconpath] => %BUEDITOR/icons
[librarypath] => %BUEDITOR/library/bue.popup.js
%BUEDITOR/library/bue.popup.css
%BUEDITOR/library/bue.markup.js
%BUEDITOR/library/bue.preview.js
%BUEDITOR/library/bue.imce.js
%BUEDITOR/library/bue.misc.js
%BUEDITOR/library/bue.autocomplete.js
%BUEDITOR/library/bue.ctrl.js
%BUEDITOR/library/bue.find.js
%BUEDITOR/library/bue.history.js
%BUEDITOR/library/bue.li.js
%BUEDITOR/library/bue.tab.js
[spriteon] => 0
[spritename] =>
)
)
Hope this helps,
Fabio Varesano
Comments
Comment #1
fax8 commented2 seconds thought quick and dirty patch which fixes this.
This is just a workaround not a real fix.
Comment #2
ufku commentedIt was about (0 == 'all') evaluating true in bueditor_editors() function. Thus all editors were returned instead of none.
I've committed a fix to 7.x branch.
Thanks for reporting.