I have created a block and a quote to test.

When activating the quotes block I get the following error and the site seems to go on a different old page.tpl file..?

Warning: Illegal offset type in isset or empty i locale() (linje 676 af /home/sportsmi/public_html/drupal/modules/locale/locale.module).
PDOException: SQLSTATE[HY093]: Invalid parameter number: parameter was not defined: SELECT s.lid, t.translation, s.version FROM {locales_source} s LEFT JOIN {locales_target} t ON s.lid = t.lid AND t.language = :language WHERE s.source = :source_%interval, :source_%bid, :source_%title, :source_%nid, :source_%bruger AND s.context = :context AND s.textgroup = 'default'; Array ( [:language] => da [:context] => [:source_%interval] => 0 sek. [:source_%bid] => 1 [:source_%title] => TEST [:source_%nid] => 14 [:source_%bruger] => <a href="/drupal/?q=user/1" title="Vis brugerprofil." class="username" xml:lang="" about="/drupal/?q=user/1" typeof="sioc:UserAccount" property="foaf:name">admin</a> ) i locale() (linje 683 af /home/sportsmi/public_html/drupal/modules/locale/locale.module).

Im kind of new to drupal so hope you can help.

Kim

Comments

ctmattice1’s picture

Priority: Major » Normal

There are known bugs in the quotes module with locale and content translation, if you do not need these modules from core then disable them. If you need translatable quotes, it's on the todo list, but one of the areas I've yet to figure out.

Downgrading to normal.

pruonckk’s picture

Verify on line 1060 if you have

$block['subject'] = strtr($block['name'], t($_quotes_subs));

the t() before $_quotes_subs is wrong, remove this and all will ork fine

pruonckk’s picture

Im sorry, the line 1060 of quotes/quotes.module

jochen wendebaum’s picture

Yes, this solves the problem and should be included in the code.

ctmattice1’s picture

fixed in new dev release. leaving issue open for a couple of weeks

ctmattice1’s picture

Status: Active » Closed (fixed)