Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
UPDATE: This issue is a duplicate. Please see #1631846: Server 500 Error while enabling the module status updates.
Welcome!
If this option after I allow you to block I get this error:
Fatal error: Call to undefined function i18n_langcode() in /var/www/p73/data/www/dc.p73.hu/sites/all/modules/taxonomy_block/taxonomy_block.module on line 94
thank you
Stephen
Comment | File | Size | Author |
---|---|---|---|
#9 | taxonomy_block-remove_i18n_langcode_from_hook_block_view-1614374-6362988.patch | 820 bytes | k.dani |
#7 | taxonomy_block-undefined_i18n_langcode-1614374-7.patch | 1011 bytes | mjross |
#6 | taxonomy_block.zip | 3.58 KB | ANDiTKO |
Comments
Comment #1
ANDiTKO CreditAttribution: ANDiTKO commentedSame here. Before i update to the latest version it was working perfectly. Now i get this error and the page cannot be rendered.
I think it has to do something with the i18 module (that i have NOT installed on the site that is giving me the error.) i18n_langcode() function wont work for sites that havent enabled the i18n module.
Please use this function to fix this error
http://api.drupal.org/api/drupal/includes!module.inc/function/module_exi...
Comment #2
ANDiTKO CreditAttribution: ANDiTKO commentedWell, i was going to create a patch for this.
But when i got the git version it was working fine.
Use this git code and confirm if you continue to have this problem:
git clone --recursive --branch 7.x-1.x http://git.drupal.org/project/taxonomy_block.git
Comment #3
wizian CreditAttribution: wizian commentedAfter having problems with install, newest branch from git (dated 2012-06-08) works, however install via drush (even after disable and enable) does not update admin menu. Have to do it from the GUI.
Comment #4
GrahamShepherd CreditAttribution: GrahamShepherd commentedThis is a fatal error. It disables my site entirely.
Recovery for me was to disable the block in MySQL from phpMyAdmin. I then disabled the module.
The concept of the block is good but not usable at the moment.
Comment #5
matthew999123 CreditAttribution: matthew999123 commentedHow exactly do you use "git code"?
Comment #6
ANDiTKO CreditAttribution: ANDiTKO commentedJust paste the code that i quoted before in yout git client:
git clone --recursive --branch 7.x-1.x http://git.drupal.org/project/taxonomy_block.git
Or download the module code that works. Im going to attach the file
Comment #7
mjross CreditAttribution: mjross commentedThis patch fixes both erroneous calls to i18n_langcode() in taxonomy_block.module. But it should only be applied to websites that are using English taxonomy terms exclusively. This is intended as a workaround to help those people whose websites have been broken by this bug. It is not intended as a long-term fix, especially for any sites that might use non-English languages in the future.
Comment #8
k.dani CreditAttribution: k.dani commentedHi Everyone,
I don't really know, why is this variable neccessary in the taxonomy_block_block_view(), because nothing uses it inside the function, so my suggestion is to remove this line from the code and everything works as it should.
Best,
Daniel
Comment #9
k.dani CreditAttribution: k.dani commentedI create a patch from it, I think it is the simpliest way to solved this issue.
Comment #10
DanielWashbrook CreditAttribution: DanielWashbrook commentedJust removing that instance of the function isn't going to fix it. It should really check if the functions exist.
A 'better' solution at this point is to just install the i18n module that it's calling. Especially since the taxonomy tree building function is using similar translation functions anyway.
For the record, these seemed to fix it:
i18n, variable, locale ,i18n_taxonomy, i18n_translation, i18n_string
Comment #11
cwithout CreditAttribution: cwithout commentedMarking this as duplicate of #1631846: Server 500 Error while enabling the module. There's no need to patch this issue, since the current repo doesn't have the issue.
The solution until the maintainer fixes the current release is to either revert to 1.2 or follow the instructions in #6 of this issue to download the current code via git or the zip file ANDiTKO uploaded.
Comment #12
rubofvil CreditAttribution: rubofvil commentedI load the last version and don't work.
My solution is do it the same query that the module but with entity field query and with the condition of language.
The field of the taxonomy and content type is necessary configurate manually.
Comment #13
cwithout CreditAttribution: cwithout commentedI've just added a dev release for this module . It should be available on the project page once the system process it. I would like to move that to a new Taxonomy Block 7.x-1.4 release after testing
When the dev becomes available, please test. Post results to #1631846: Server 500 Error while enabling the module.
Comment #13.0
cwithout CreditAttribution: cwithout commentedAdd message to refer to the open issue