Closed (fixed)
Project:
Quotes
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
15 Mar 2012 at 21:23 UTC
Updated:
25 Nov 2012 at 03:10 UTC
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
Comment #1
ctmattice1 commentedThere 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.
Comment #2
pruonckk commentedVerify 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
Comment #3
pruonckk commentedIm sorry, the line 1060 of quotes/quotes.module
Comment #4
jochen wendebaum commentedYes, this solves the problem and should be included in the code.
Comment #5
ctmattice1 commentedfixed in new dev release. leaving issue open for a couple of weeks
Comment #6
ctmattice1 commented