I went to view the available updates on my site and instead got the WSOD. Now the whole site is showing the WSOD and after enabling php errors I get the following error message:

Fatal error: Call to undefined function _icl_wrapper_create_roles() in /var/www/html/trainingmaterials/sites/all/modules/translation_management/icl_translate/icl_translate.module on line 33

Anyone know what I can do to fix this?
Thanks

Comments

icanlocalize’s picture

Thank function is defined in icl_core/icl_core.wrapper.inc.

Is it missing from your installation?

brucepearson’s picture

Status: Active » Postponed (maintainer needs more info)
psykomf’s picture

I checked and that file is there and the function is in it, so not sure what is causing the issue. I removed the module and the site is working fine now.

icanlocalize’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
simonfunk’s picture

Status: Closed (cannot reproduce) » Needs work

Same Issue

Its cause the module_load_include() function is not avaiable, that's why icl_core.wrapperinc won't be loaded and _icl_wrapper_create_roles() is not exist.

icanlocalize’s picture

In which situation is 'the module_load_include' not available?

If you can explain a little bit what you understand causes the problem, it will take us less time to fix it. Thanks!

simonfunk’s picture

ok, sorry it isn't the problem that module_load_include() isn't avaiable. i have tested different things and i figured out, that's the only file which will not be included is icl_core.wrapper.inc. So i copied this file to icl_translate folder and addjust the includepath to module_load_include('inc', 'icl_translate', 'icl_core.wrapper'); what happend? it included! But now appear logicly different error message like warning: include_once() file not found... cause the path is wrong... so the fauled is that the system don't include the file from the right folder in the file icl_translate.module

Best wishes

Simon

simonfunk’s picture

now i have deinstalled all icanlocalize and translate modul and installed every modul seperatly. previous i installed all together. now it installed and looks first fine, but then i co to the Translation Jobs and this error showd: user warning: Unknown column 'translation_service' in 'where clause' query: SELECT COUNT(*) FROM icl_translate_job tj JOIN icl_core_status crs ON crs.rid = tj.rid LEFT JOIN users u ON tj.uid = u.uid WHERE translation_service='local' in C:\...\drupal\sites\all\modules\translation_management\icl_translate\icl_translate.module on line 341.

brucepearson’s picture

Do you have the "core" module enabled in Translation Management?

simonfunk’s picture

Yes, enabled is:
Translation Management - Translate
Translation Service - Google translate, ICanLocalize translation service, Local translation service, OneHourTranslation Service
ICanLocalize - ICanLocalize Content, ICanLocalize Core
Internationalization

brucepearson’s picture

Under "Translation Management" you should have Translate, Core and Content enabled.

You shouldn't use the ICanLocalize translator module, http://drupal.org/project/icanlocalize. The "Translation Management" module is a replacement for this.

simonfunk’s picture

ok, thank ou for the information.

i tried this, so i uninnstalled icanolcalize, translate and deleted the folders. but as soon i copy the translation_management folder to the modules, which i've downloaded new form the drupal.org website, the fatal error appears again.

icanlocalize’s picture

There might be something corrupt due to the fact that you had the wrong translation module enabled as core. This might have left values in the DB which are causing this problem.

Try a clean install (for testing), enable just Translation Management and see if this is still happening. If it's OK, we can help you identify the DB keys that are causing this in the site you're debugging.

icanlocalize’s picture

Status: Needs work » Postponed (maintainer needs more info)
guysaban’s picture

I am having the same problem.

As far as I remember the translation_management module needs to have the icl_core enable.

I think I am confused.

icanlocalize’s picture

Guy, do you have the 'icanlocalize' module enabled too? for Translation Management, you only need Translation Management. The older icanlocalize module may cause contention issues so you must not have both modules enabled.

guysaban’s picture

Thanks for the reply.

Yes, I did have the icanlocalize (icl_core) module installed. At the same time I enabled the translation_management module. That's when the problem occurred - white screen.

I could not use drush to disable or uninstall the translation_management module so I removed the module code. I was then able to use drush to disable and uninstall the icl_core module and its associated database tables.

Then, using the schema module, I found the following "extra" tables:
# icl_notifications
# icl_translate
# icl_translate_job_pairs

I dropped them manually from the DB using phpMyAdmin.
However, I then proceeded to install translation_management module thinking all is clean and reverted. But again I got the white screen.

After drush en translation_management I got:
PHP Fatal error: Call to undefined function _icl_wrapper_create_roles() in /var/www/vhosts/.../sites/all/modules/translation_management/icl_translate/icl_translate.module on line 25

icanlocalize’s picture

There are probably left-overs in the DB. Somewhere.

Can you try with a clean install and see if you're getting any of these problems?

guysaban’s picture

ok.

I did a fairly clean install. No problems - a successful install.

Also, part of my confusion was that there is no drupal module file called "translation_management.module" - "translation_management" is just the directory that holds the module files.

This time I used drush en icl_core which worked fine on the clean install.

Question is how do I get the other dev site operational with the "translation_management module" (icl_core). I decided to go back to the original dev site that gave the error and instead of:
drush en translation_management
I tried:
drush en icl_core

It did not work. I still got the white screen.

guysaban’s picture

ok. I did a database regex search for 'icl' using phpMyAdmin and found some fields in table 'system' left over from the original icanlocalize module in additional to some new fields from 'translation_management'.

i removed them as follows:
DELETE FROM `system` WHERE CONVERT(`system`.`filename` USING utf8) = 'sites/all/modules/icanlocalize/icl_content/icl_content.module' LIMIT 1;
DELETE FROM `system` WHERE CONVERT(`system`.`filename` USING utf8) = 'sites/all/modules/icanlocalize/icl_core/icl_core.module' LIMIT 1;
DELETE FROM `system` WHERE CONVERT(`system`.`filename` USING utf8) = 'sites/all/modules/translation_management/google_translations/google_translations.module' LIMIT 1;
DELETE FROM `system` WHERE CONVERT(`system`.`filename` USING utf8) = 'sites/all/modules/translation_management/icanlocalize_translations/icanlocalize_translations.module' LIMIT 1;
DELETE FROM `system` WHERE CONVERT(`system`.`filename` USING utf8) = 'sites/all/modules/translation_management/icl_translate/icl_translate.module' LIMIT 1;
DELETE FROM `system` WHERE CONVERT(`system`.`filename` USING utf8) = 'sites/all/modules/translation_management/local_translations/local_translations.module' LIMIT 1;
DELETE FROM `system` WHERE CONVERT(`system`.`filename` USING utf8) = 'sites/all/modules/translation_management/one_hour_translations/one_hour_translations.module' LIMIT 1;

I then disabled and enabled the icl_core that comes with "translation_management" - no white screen. it works.

simonfunk’s picture

Status: Postponed (maintainer needs more info) » Reviewed & tested by the community

GREAT!!!

No it works for mee too with the sql commands of guysaban. so it was realy a problem of the icanlocalize deprecated installation.
Thanks to guysaban and of course a lot of thank icanlocalize too!!!

brucepearson’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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