Hi I am using Drupal 6.16 and LS extra 6.x-1.5. When I installed LS Extra today, I received this message:

Fatal error: Call to undefined function language_sections_format_check() in /home/site/public_html/sites/all/modules/ls_extras/ls_node_titles/ls_node_titles.module on line 22

Can someone please tell me how to fix this?

Thanks.

BB

Comments

andy inman’s picture

Category: bug » support
Status: Active » Fixed

Not a bug - you need an updated version of Language Sections - it's mentioned in the update notes.

blueblade’s picture

Status: Fixed » Needs review

Hi netgenius,

Thanks for your help. I found the note on http://drupal.org/node/746586 and have just upgraded to Language Sections 6.x-2.4 but this time I am getting the error message:

Fatal error: Cannot pass parameter 1 by reference in /home/site/public_html/sites/all/modules/language_sections/language_sections.module on line 85

Also, when Language Section is disabled, I get the following error message as soon as I upload LS Extras folder to sites/all/modules:

Fatal error: Call to undefined function language_sections_format_check() in /home/site/public_html/sites/all/modules/ls_extras/ls_node_titles/ls_node_titles.module on line 22

I found also on page http://drupal.org/node/240890/release saying:

Upgrading from 1.x
When upgrading from version 1.x, version 2 this should work as a drop-in replacement if you had a standard V1 configuration. Visit the configuration page to see new options. It is important to save the configuration even if you do not change it to make sure that LS 2 is properly initialized. Repeat this per filter format if you have more than one which uses LS.

and have saved the configurations (admin/settings/filters/2/configure) but I am still getting the first error message listed above:

Fatal error: Cannot pass parameter 1 by reference in /home/ar/public_html/sites/all/modules/language_sections/language_sections.module on line 85

Should we follow a certain order when installing these two modules or I have missed something else here? Also, I see no option to uninstall Language Sections on admin/build/modules/uninstall page, how do we completely uninstall this module for a fresh start? or is this not necessary?

Thanks again for your help

BB

andy inman’s picture

Ok, I think this is all due to a mix-up of versions.

Please try:

1. Disable all LS modules (no need for the "uninstall" option) and save the modules list.
2. Double check that you have installed the files for the correct versions, and that there are no other copies (e.g. in sites/all/modules and sites/yoursite/modules).
3. Go back to the modules list, re-enable the LS modules and save again.

I think this will fix it.

P.S. Language Sections will have a new release soon to fix http://drupal.org/node/754280 - but that will not cause this problem again. I do not expect any further compatibility issues between versions of LS and LS extras.

blueblade’s picture

Hi netgenius,

Thanks for replying again. I have Language Sections 6.x-2.4 and Language Sections Extras 6.x-1.6 installed.

Can you please tell me exactly which versions of Language Sections is supposed to work? A link to download that exact version of Language Sections will be much appreciated.

Thanks again.

BB

andy inman’s picture

2.4 and 1.6 should work fine together. Are you saying that you get the "Cannot pass parameter 1 by reference" error with this combination? That should not be possible! Are you absolutely sure of the version numbers that are active? (check what versions are shown in the active module's list.) Sorry if you've already done this, but what you're reporting is what would happen if the versions were mismatched, so it seems to me that must be the case somehow.

Version 1.3 (or higher) of LS Extras needs LS version 2.3 or higher. The latest releases will always be compatible with each other, so if a change in one module requires an update to the other, then new versions will always be released at the same time. Maybe I will include LS Extras with the main LS distribution in the future - that would avoid any further issues of this type.

blueblade’s picture

Hi netgenius,

Thanks again for your help. I did check the admin/reports/updates list and those are the numbers I see. I will try uninstall/reinstall both modules later today...but because I received the following error message as soon as I uploaded LS Extras folder to sites/all/modules (Language Section was disabled at that time), I wonder if it is possible that it is conflicting with other modules:

Fatal error: Call to undefined function language_sections_format_check() in /home/site/public_html/sites/all/modules/ls_extras/ls_node_titles/ls_node_titles.module on line 22

I will make sure to tell you the result I get later. Many thanks again for your kind help.

BB

blueblade’s picture

Status: Needs review » Fixed

Hi again netgenius,

I have just uninstalled both Language Sections and Language Section Extras, deleted both folders then uploaded new ones. I then turned on both modules at the same time and this time the site didnt go blank!!

Thanks so much for your kind help in the past couple of days!! Many thanks!!

BB

andy inman’s picture

Ok! There must have been some files in a sub-directory of one of the modules. Glad we got it sorted!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.