Hi all
this is a great module :-)
i'm trying to use it but when i show the block there is no "body", there is author.
the errors:
Warning: Invalid argument supplied for foreach() em element_children() (linha 6132 de /home2/raduungu/public_html/cp/includes/common.inc).
Warning: Cannot use a scalar value as an array em drupal_render() (linha 5620 de /home2/raduungu/public_html/cp/includes/common.inc).
Warning: Cannot use a scalar value as an array em drupal_render() (linha 5675 de /home2/raduungu/public_html/cp/includes/common.inc).
Notice: Undefined index: und em quotes_block_view() (linha 947 de /home2/raduungu/public_html/cp/sites/all/modules/quotes/quotes.module).
Comments
Comment #1
Anonymous (not verified) commentedBest Regards
ArchGalileu
PS. sorry i forgot to sign :-)
Comment #2
ctmattice1 commentedWhat version of drupal 7 are you using? Is this from a drupal 6 upgrade or a new install? Any contrib modules or only core?
Comment #3
Anonymous (not verified) commentedHi ctmattice1
Thanks for fast reply :-)
drupal 7.4
new install (update since 7.0)
many contrib modules, well some, better i print a list
Sorry for the big list (made with views)
acdx_node_reference
addanother
advanced_help
ajax_comments
arrange_fields
autocomplete_deluxe
backup_migrate
block
book
cdn
color
colorbox
comment
contact
contextual
ctools
ctools_access_ruleset
ctools_custom_content
dashboard
date
date_api
date_popup
date_repeat
date_tools
date_views
dblog
diff
disable_breadcrumbs
ds
ds_extras
exclude_node_title
extlink
facebookshare
fblikebutton
field
field_group
field_slideshow
field_sql_storage
field_ui
file
filefield_sources
filter
follow
headjs
help
image
jcarousel
job_scheduler
jquery_update
l10n_update
libraries
link
list
locale
mediaelement
menu
module_filter
node
noderefcreate
node_noindex
node_reference
number
options
overlay
page_manager
page_title
panels
panels_ipe
panels_mini
panels_node
path
pathauto
php
poll
pullquote
quicktabs
quicktabs_tabstyles
quotations
quotes
rdf
references
revisioning
scheduler
search
shortcut
soundmanager2
standard
stylizer
system
taxonomy
text
token
toolbar
translation
update
user
user_dashboard
user_reference
viewreference
views
views_append
views_coda
views_content
views_jqfx
views_jqfx_cloud_carousel
views_jqfx_cycle
views_jqfx_galleria
views_jqfx_imageflow
views_jqfx_nivo_slider
views_slideshow
views_slideshow_cycle
views_ui
views_view_field
vimeo_link_formatter
webform
webform_conditional
webform_validation
wysiwyg
yoxview
Best Regards
ArchGalileu
Comment #4
mutsumi commentedHey there,
same with my installation.
No body in a quote. So far 3 quotes for testing.
Just updated from 7.0 to 7.4. No change.
Deactivated skinr, dynamic display block and CKE. Also no change.
Guess, I have to dive into the code ...
I am using fusion starter(just to mention it, don't think that it is important) - active modules are:
block
color
comment
contextual links
dashboard
database logging
field
field sql storage
field ui
file
filter
help
image
list
locale
menu
node
number
options
overlay
path
rdf
shortcut
system
taxonomy
text
update manager
user
(CKE)
(dynamic display block)
menu block
quotes
read more link
boost
(skinr)
(skinr UI)
administration development tools
administration menu
administration menu toolbar style
Hope to find a solution soon!
Greetings!
Comment #5
ctmattice1 commentedShould be fixed in current dev release, marking fixed, re-open if you still experience this
Comment #6
cvining commentedI just upgraded from Drupal 7.4 to 7.7, and to the latest (Aug. 12) Quotes 7.x-1.x-dev. The body doesn't show in my Quotes Block.
Thanks in advance for your attention.
Comment #7
ctmattice1 commentedDoes watchdog show any errors?
Comment #8
nancydruAre you aware of http://drupal.org/node/1164852?
Comment #9
Anonymous (not verified) commentedHi
Did you add new quotes?
Because to me works well after uninstall the last version and install the .dev
I add to create new quotes because the old ones didn't appear
Best regards
ArchGalileu
Comment #10
ctmattice1 commentedI was aware of the issue earlier but slipped my mind. First heard of it when I was tracking the quotes language issues.
Comment #11
cvining commentedJust checked the log messages and found lots of these notices:
"Notice: Undefined index: safe_value in quotes_block_view() (line 960 of /home/cviningc/domains_html/drupal-7.7/sites/all/modules/quotes/quotes.module)."
Always with one of these too:
"Notice: Undefined index: secondary-links in menu_block_view() (line 462 of /home/cviningc/domains_html/drupal-7.7/modules/menu/menu.module)."
That second one seems unrelated, but I can't be sure of course.
Comment #12
cvining commentedfollowup on my prior posting.
I was just about to make a 'view' instead of using the Quotes module, but instead I made minor changes in the Quotes Block configuration. I saved the new Quotes configuration and, suddenly, the Bodies started appearing in my Quotes block! So, all is well now!
Maybe something leftover from the upgrade to D7? Anyway, I'm happy because it's working now.
-- Cronin
PS - those log entries are mostly gone too.
Comment #13
smscotten commentedMy site exhibits this behavior as well, but it does so intermittently. I'm afraid I don't see any rhyme or reason, but I am getting a lot of the "undefined index" errors cvining mentioned. I have take the advice in #12 but no change. I've poked around in the database tables trying to find some common attribute—missing entry in one table or another, which have revisions and which don't, whether a quote has an attribution, and so on. I have not been able to identify a common potential cause.
Comment #14
ctmattice1 commentedCan you tell me which indexes are undefined?
By chance have you gone to the quotes general setting page lately, if not you can try going there and re-save the configuration. May help may not, might be worth a shot as that page checks for variables in the variables table and if not found will set them up besides saving the configuration data.
This bit me on the $quotes_format variable as I updated from D5 to D6 to D7, what I found was that on an uninstall the module was not deleting all of the variables, so one of the changes in the dev version was fixing that. I know that on fresh installs not all of the variables are setup yet till the general configuration page is viewed but that should not effect an upgrade.
Comment #15
smscotten commentedThanks. I did read #12 and went to every quotes config page I could find and saved the configuration.
The missing index I'm seeing notices for now are Undefined index: safe_value in quotes_block_view() (line 953 ...
I too started on D5. I upgraded to D6 three (?) years ago and D7 about three months ago. It would not be surprising to learn that this common element is significant. However, I don't want to uninstall and lose my current set of quotes. I am on the Sep 26 -dev version.
Comment #16
ctmattice1 commentedThat's REALLY strange, unless something bombed on the d6 to d7 upgrade. I understand you not wanting to dump quotes, it's one of the modules I use the most and took several years to build the data. out of curiosity what theme are you using? I'll use it and see if I get any undefined index error.
One other question, is the error showing on the page or just in the logs? If it is showing on the page, when it occurs can you still see the quote or any part of it?
Comment #17
smscotten commentedI've got a customized Zen theme, but I've tested by setting the theme to Bartik and I still have the missing quote body.
The error is showing just in Watchdog. I can confirm that I only get the error message when the body of the quote doesn't appear.
When the body does not appear, I still see the quote author, attribution, and link.
Comment #18
smscotten commentedFor the moment, my workaround is a created view. It was pretty easy, but anyone that wants the lazy man's fix:
$view = new view;
$view->name = 'random_quote';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Random Quote';
$view->core = 7;
$view->api_version = '3.0-alpha1';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'Random Quote';
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['query']['options']['query_comment'] = FALSE;
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['pager']['options']['items_per_page'] = '1';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['row_options']['inline'] = array(
'name' => 'name',
'citation' => 'citation',
);
$handler->display->display_options['row_options']['hide_empty'] = 1;
$handler->display->display_options['row_options']['default_field_elements'] = 1;
/* Field: Content: Body */
$handler->display->display_options['fields']['body']['id'] = 'body';
$handler->display->display_options['fields']['body']['table'] = 'field_data_body';
$handler->display->display_options['fields']['body']['field'] = 'body';
$handler->display->display_options['fields']['body']['label'] = '';
$handler->display->display_options['fields']['body']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['body']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['body']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['body']['alter']['external'] = 0;
$handler->display->display_options['fields']['body']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['body']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['body']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['body']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['body']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['body']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['body']['alter']['trim'] = 0;
$handler->display->display_options['fields']['body']['alter']['html'] = 0;
$handler->display->display_options['fields']['body']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['body']['element_default_classes'] = 1;
$handler->display->display_options['fields']['body']['hide_empty'] = 0;
$handler->display->display_options['fields']['body']['empty_zero'] = 0;
$handler->display->display_options['fields']['body']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['body']['type'] = 'text_summary_or_trimmed';
$handler->display->display_options['fields']['body']['settings'] = array(
'trim_length' => '300',
);
$handler->display->display_options['fields']['body']['field_api_classes'] = 0;
/* Field: Quotes: Author */
$handler->display->display_options['fields']['name']['id'] = 'name';
$handler->display->display_options['fields']['name']['table'] = 'quotes_authors';
$handler->display->display_options['fields']['name']['field'] = 'name';
$handler->display->display_options['fields']['name']['label'] = '—';
$handler->display->display_options['fields']['name']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['name']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['name']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['name']['alter']['external'] = 0;
$handler->display->display_options['fields']['name']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['name']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['name']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['name']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['name']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['name']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['name']['alter']['trim'] = 0;
$handler->display->display_options['fields']['name']['alter']['html'] = 0;
$handler->display->display_options['fields']['name']['element_label_colon'] = 0;
$handler->display->display_options['fields']['name']['element_default_classes'] = 1;
$handler->display->display_options['fields']['name']['hide_empty'] = 0;
$handler->display->display_options['fields']['name']['empty_zero'] = 0;
$handler->display->display_options['fields']['name']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['name']['author_link'] = 'author';
/* Field: Quotes: Citation */
$handler->display->display_options['fields']['citation']['id'] = 'citation';
$handler->display->display_options['fields']['citation']['table'] = 'quotes';
$handler->display->display_options['fields']['citation']['field'] = 'citation';
$handler->display->display_options['fields']['citation']['label'] = '';
$handler->display->display_options['fields']['citation']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['citation']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['citation']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['citation']['alter']['external'] = 0;
$handler->display->display_options['fields']['citation']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['citation']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['citation']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['citation']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['citation']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['citation']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['citation']['alter']['trim'] = 0;
$handler->display->display_options['fields']['citation']['alter']['html'] = 0;
$handler->display->display_options['fields']['citation']['element_type'] = 'em';
$handler->display->display_options['fields']['citation']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['citation']['element_default_classes'] = 1;
$handler->display->display_options['fields']['citation']['hide_empty'] = 0;
$handler->display->display_options['fields']['citation']['empty_zero'] = 0;
$handler->display->display_options['fields']['citation']['hide_alter_empty'] = 0;
/* Field: Content: Link */
$handler->display->display_options['fields']['view_node']['id'] = 'view_node';
$handler->display->display_options['fields']['view_node']['table'] = 'node';
$handler->display->display_options['fields']['view_node']['field'] = 'view_node';
$handler->display->display_options['fields']['view_node']['label'] = '';
$handler->display->display_options['fields']['view_node']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['view_node']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['view_node']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['view_node']['alter']['external'] = 0;
$handler->display->display_options['fields']['view_node']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['view_node']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['view_node']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['view_node']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['view_node']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['view_node']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['view_node']['alter']['trim'] = 0;
$handler->display->display_options['fields']['view_node']['alter']['html'] = 0;
$handler->display->display_options['fields']['view_node']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['view_node']['element_default_classes'] = 1;
$handler->display->display_options['fields']['view_node']['hide_empty'] = 0;
$handler->display->display_options['fields']['view_node']['empty_zero'] = 0;
$handler->display->display_options['fields']['view_node']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['view_node']['text'] = 'view';
/* Sort criterion: Global: Random */
$handler->display->display_options['sorts']['random']['id'] = 'random';
$handler->display->display_options['sorts']['random']['table'] = 'views';
$handler->display->display_options['sorts']['random']['field'] = 'random';
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 0;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
'quotes' => 'quotes',
);
/* Display: Block */
$handler = $view->new_display('block', 'Block', 'block');
Comment #19
ctmattice1 commented@smscotten Thanks for posting your views option.
Comment #20
ctmattice1 commented@smscotten Could your retry the quotes block from the new dev release and see if your still getting the errors.
Comment #21
smscotten commentedhttp://splicer.com/ looks good to me. For the time being I have both blocks enabled right now—the block from the quotes module is above and my view is below, so you can compare them yourself. I've reloaded the pages a bunch of times and have not seen the body of a quote go missing yet. Thanks!
Comment #22
macmladen commentedThere still are errors, using block produces error
Notice: Undefined index: en in quotes_block_view() (line 950 of /home/myuser/mysite.com/sites/all/modules/quotes/quotes.module)as I stated in #1363614: error in quotes.module, I use locale but the site is not multilingual.If I switch off block, the node with quote displays well, however, I need the quote in the block, not in the node.
I'm not sure how to apply that code in #18, just import in view? Will it solve this issue?
Some info on taxonomy or some other way to differentiate on groups of quotes (testimonials, famous quotes and personal quotes)?
Comment #23
ctmattice1 commented