Whenever the module is enabled on my page, I get these errors poppping up.

Note: I have two quotes added since my old quote module is deprecated in Drupal 7.x

Notice: Undefined index: aid_filter in quotes_block_where_sql() (line 1880 of /sites/all/modules/quotes/quotes.module).
Notice: Undefined index: view_text in theme_quotes_block() (line 1686 of /sites/all/modules/quotes/quotes.module).
Notice: Undefined index: more_text in theme_quotes_block() (line 1687 of /sites/all/modules/quotes/quotes.module).
Notice: Undefined index: rand_freq in theme_quotes_block() (line 1688 of /sites/all/modules/quotes/quotes.module).
Notice: Undefined index: max_length in theme_quotes_block() (line 1716 of /sites/all/modules/quotes/quotes.module).
Notice: Undefined index: show_citation in theme_quotes_block() (line 1721 of /sites/all/modules/quotes/quotes.module).

Comments

ctmattice1’s picture

Try going into the quotes general config settings and re-save that configuration page.

motivez’s picture

Just tried that, didn't change anything.

If I go into the block configuration, I get some additional errors:

Notice: Undefined property: stdClass::$aid_filter in _quotes_block_configure() (line 1107 of /sites/all/modules/quotes/quotes.module).
Notice: Undefined property: stdClass::$aid_filter in _quotes_block_configure() (line 1108 of /sites/all/modules/quotes/quotes.module).
Notice: Undefined property: stdClass::$max_length in _quotes_block_configure() (line 1217 of /sites/all/modules/quotes/quotes.module).
Notice: Undefined property: stdClass::$view_text in _quotes_block_configure() (line 1233 of /sites/all/modules/quotes/quotes.module).
Notice: Undefined property: stdClass::$more_text in _quotes_block_configure() (line 1241 of /sites/all/modules/quotes/quotes.module).

PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'aid_filter' in 'field list': UPDATE {quotes_blocks} SET name=:db_update_placeholder_0, block_type=:db_update_placeholder_1, nid_filter=:db_update_placeholder_2, aid_filter=:db_update_placeholder_3, rid_filter=:db_update_placeholder_4, uid_filter=:db_update_placeholder_5, tid_filter=:db_update_placeholder_6, cron_interval=:db_update_placeholder_7, cron_step=:db_update_placeholder_8, count=:db_update_placeholder_9, show_titles=:db_update_placeholder_10, show_citation=:db_update_placeholder_11, more_text=:db_update_placeholder_12, view_text=:db_update_placeholder_13, max_length=:db_update_placeholder_14, rand_freq=:db_update_placeholder_15 WHERE (bid = :db_condition_placeholder_0) ; Array ( [:db_update_placeholder_0] => <none> [:db_update_placeholder_1] => 0 [:db_update_placeholder_2] => [:db_update_placeholder_3] => [:db_update_placeholder_4] => [:db_update_placeholder_5] => 1 [:db_update_placeholder_6] => [:db_update_placeholder_7] => 1 [:db_update_placeholder_8] => 60 [:db_update_placeholder_9] => 1 [:db_update_placeholder_10] => 0 [:db_update_placeholder_11] => 0 [:db_update_placeholder_12] => [:db_update_placeholder_13] => [:db_update_placeholder_14] => 0 [:db_update_placeholder_15] => 100 [:db_condition_placeholder_0] => 1 ) in quotes_block_configure_save() (line 1427 of /sites/all/modules/quotes/quotes.module).
motivez’s picture

I just did an uninstall and a complete re-install.

Attempting to save the 'block' settings page results in:

Notice: Undefined offset: 0 in quotes_block_view() (line 1005 of /sites/all/modules/quotes/quotes.module).
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'vid' cannot be null: UPDATE {quotes_blocks} SET vid=:db_update_placeholder_0, cron_last=:db_update_placeholder_1 WHERE (bid = :db_condition_placeholder_0) ; Array ( [:db_update_placeholder_0] => [:db_update_placeholder_1] => 1356384049 [:db_condition_placeholder_0] => 1 ) in quotes_block_view() (line 1009 of /sites/all/modules/quotes/quotes.module).

Note: I have no quotes, and this breaks my entire page.

It seems the order must be:

1) Install module
2) Create at least 1 quote using the module / Save "General Settings"
3) Configure block

For the module to work properly.

ctmattice1’s picture

Uninstalled - Reinstalled on Drupal 7.x-dev with php 5.4.4

Do not experience these issues. Can set blocks without a quote entry with no errors.

Will download and install 7.18 on my linux server running php 5.3.??? in a couple of days to determine where the differences are.

ctmattice1’s picture

Priority: Critical » Normal

Down grading to normal

ctmattice1’s picture

Issue summary: View changes
Status: Active » Closed (fixed)

Closing old issue.