Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I get the following:
Fatal error: Call to undefined function stringoverrides_admin_export_submit() in /home/.../public_html/includes/form.inc on line 1409
I use Drupal 7.4 on a multilingual site. Also, Internationalization is installed.
Thanks.
Comment | File | Size | Author |
---|---|---|---|
#8 | Export_broken-1210180-8.patch | 1.28 KB | mariacha1 |
#6 | 0001-Fixes-for-export-form-handler-functions-renamed-incl.patch | 1.67 KB | kolen |
#5 | 0001-Fixes-for-export-form-handler-functions-renamed-incl.patch | 1.71 KB | kolen |
Comments
Comment #1
codesmithAny word on this? Just not done yet?
Comment #2
RobLoachLooks like exporting is broken.
Comment #3
sphism CreditAttribution: sphism commentedHello,
2 functions have had their names changed, but this change was not made to the callbacks for them.
Very simple fix:
Open stringoverrides_migrate.admin.inc
search:
stringoverrides_admin_export_submit
and replace with:
stringoverrides_migrate_admin_export_submit
AND then
search:
stringoverrides_admin_export_text
and replace with:
stringoverrides_migrate_admin_export_text
Comment #4
Michael-IDA CreditAttribution: Michael-IDA commented# 3 Doesn't work with 7.x-1.8.
Uninstalled String Overrides Migrate, double cache flush, search and replace(copy&paste), re-enable, and still get the error:
Fatal error: Call to undefined function stringoverrides_admin_export_submit() in .../includes/form.inc on line 1430
Have too many overrides input to test uninstalling "String Overrides" as well.
Best,
Sam
Comment #5
kolen CreditAttribution: kolen commentedFixed function name references of functions that was renamed.
Also, seems that now locale.inc is not included by drupal core always, only if "locale" builtin module is turned on. So export not worked if locale module is not enabled.
To not adding dependency to locale module, added require_once of just include file of it containing _locale_export_po_generate, so now export works even if locale module is not turned on. (Whole locale module, and fact that it is installed is actually not needed by export, only _locale_export_po_generate function).
Comment #6
kolen CreditAttribution: kolen commentedFixed file names in patch (as in module repository, not my repository with drupal install)
Comment #7
Michael-IDA CreditAttribution: Michael-IDA commentedHi kolen,
Probably won't happen, but if locale gets removed from core, not creating the dependency will crash and burn. Obviously it would be best if there were the availability of some sort of "if module exists on server" dependency criteria in the .info, but I don't think there is?
This isn't my module, but I'd make the suggestion to use a full dependency.
Best,
Sam
Comment #8
mariacha1 CreditAttribution: mariacha1 commentedWith as many references as there are to functions within the locale module, I don't think it's practical to not make it a full dependency. I'm adding a patch that basically does that and alters the submitted patch above to work with the latest dev version (7.x-1.8+4-dev).
Comment #9
Vic_ CreditAttribution: Vic_ commented+1
Comment #10
aburrows CreditAttribution: aburrows as a volunteer commentedTested on 7.x-1.8 and works. RTBC+
Comment #13
nagy.balint CreditAttribution: nagy.balint commentedPatch works for me as well.
Please commit.
Comment #14
nicolaj.knudsen@gmail.com CreditAttribution: nicolaj.knudsen@gmail.com commentedI'm bumping this as the issue seems to be solved. It would be nice to have the export feature working.
Edit: Since the documentation is sparse, and google leads to this page, here is a workaround for exporting string overrides with Strongarm and Features.
With both modules enabled, create a feature and select the custom locale variables you need under 'strongarm', i.e. locale_custom_strings_%langcode% and locale_custom_disabled_strings_%langcode%.
In a standard english installation there will be only two of them, both with %langcode% = 'en'.
When you enable the feature on your other site, remember to clear the cache before visiting the string overrides page, otherwise the variable will revert to the old value.
Comment #15
RobLoach@Nicolaj Thanks for testing. The patch is still good to be committed? Just re-confirming.
Comment #16
a8w4Hi guys, I stumbled into this problem today - now we're having 2018 an the non functioning export was still not fixed.
Patch #8 seems perfectly fine for me - I wonder why it isn't used for a new release...
Comment #18
RobLoachThanks!