Fatal error: Call to undefined function fusion_core_get_width_options() in /home/xxxx/public_html/sites/all/modules/fusion_accelerator/fusion_accelerator.module on line 118
Why? How I solve it?
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #17 | fusion-accelerator-check-fusion-based-responsive-recursion.patch | 2.95 KB | sheena_d |
| #10 | fusion-accelerator-check-fusion-based-responsive.patch | 2.1 KB | sheena_d |
| #8 | clatsop_main.info_.txt | 1.96 KB | jlea9378 |
| #7 | clatsop_main.info | 1.96 KB | jlea9378 |
Comments
Comment #1
aquariumtap commentedWhich theme are you using?
Comment #2
sheena_d commentedThis error happens if you are trying to use the Responsive features in Fusion Accelerator 7.x-2.x-dev and not using the dev version of Fusion Core, which has support for Accelerator's responsive features.
Comment #3
enzo de simone commentedOK. Thanks
Comment #4
sheena_d commentedComment #5
jlea9378 commentedI followed the suggestion of updating Fusion base and Fusion Accelerator and now have these versions installed:
Fusion Accelerator 7.x-2.0-alpha2+39-dev (2012-Jan-20)
Fusion 7.x-2.x-dev (2011-Dec-30)
Marinelli 7.x-3.0-beta11
I am still receiving this error when attempting to browse to the settings page for my new sub-theme of Marinelli:
Fatal error: Call to undefined function fusion_core_get_width_options() in /var/www/html/drupal_test/sites/all/modules/fusion_accelerator/fusion_accelerator.module on line 118
Comment #6
sheena_d commentedDo you get this error on the Fusion Starter settings pages? How about on a settings page for a fresh copy of Marinelli? There isn't any reason why Fusion-related functions should be run on a non-Fusion-based theme's settings page, so these errors don't make sense.
Comment #7
jlea9378 commentedNope, no errors when loading the Fusion Core settings page, the Fusion Starter settings page, the base Marinelli settings page, or the Fusion Accelerator admin tabs. Only when I try to go to the settings page of my sub-theme of Marinelli.
I created the sub-theme by copying the subtheme folder to sites/all/themes and renaming it and the .info file, tweaked the .info file to have the correct name in it, then copied the css folder into it and created a new css file to contain any custom css (and added that to the info file). I set the unix owner/group and permissions on everything too. I've attached the info file. Since I just barely created the sub-theme, pretty much everything should be inherited from Marinelli still. Everything in Marinelli is un-tweaked.
Comment #8
jlea9378 commentedComment #9
sheena_d commentedI don't see anything out of place in your .info file. I will see if I can recreate the issue.
Comment #10
sheena_d commented@jlea9378, looks like this is indeed a bug with Fusion Accelerator. There is some code in the module to check if a theme is Fusion-based before executing the code to add Responsive settings to the theme. That code was not returning an accurate result for themes that had a base theme that was not Fusion. I am attaching a patch that will be a *temporary* fix for this bug.
@aquariumtap: since there is the possibility for an infinite number of sub-sub-%-themes, we're going to have to do some kind of recursive check to see if a theme's base theme's base theme's... base theme is Fusion. I'd like to discuss the best way to do this whenever you get a chance.
Comment #11
jlea9378 commentedThanks, that solved my problem!
Comment #12
satrich commentedI am still having this issue.
I applied the patch, and getting the same error.
Fatal error: Call to undefined function fusion_core_get_width_options() in /home/u524754092/public_html/sites/all/modules/fusion_accelerator/fusion_accelerator.module on line 118
Comment #13
sheena_d commented@satrich - Did you clear your site's cache after applying the patch? On what page do you get this error (a Fusion-based theme's theme settings page, or another theme's settings page)? Also, what version of Fusion core are you using?
Comment #14
satrich commentedYes I did clear my cache.
And it was with the latest Fusion core. With all fusion sub-themes. Tried Mix&Match, Pixture reloaded. And also the starter theme.
But I actually switched to Marinelli theme right now. So, for me it's no issue anymore. Sorry for the trouble....
Comment #15
sheena_d commented@satrich - it would be really helpful to us if we could have your assistance in testing this bug, since you are the only person who has reported problems with the patch. If you get a chance to do some more experimentation and testing, we would really appreciate your input!
Thanks!
Comment #16
jlea9378 commentedIs the patch going to get committed soon? I updated to the latest dev and ran into this error again. Time to re-patch.
Once again, applying the patch solved the problem. Thanks!
Comment #17
sheena_d commentedUpdating patch to recursively check the theme's base themes for Fusion.
Comment #18
JuliaKM commentedTo reproduce the problem, I:
1) Downloaded the Omega Theme
2) Visited the Omega HTML5 Starterkit settings page (http://drupal7fusion.site/#overlay=admin/appearance/settings/starterkit_...) and got a fatal error, "Call to undefined function fusion_core_get_width_options()".
After applying the patch, I was able to visit the Omega HTML5 Starterkit settings page without getting a fatal error.
Comment #19
sheena_d commentedThis fix is included in Fusion Accelerator 7.x-2.0-beta1
Comment #21
Salif commentedHi
I'm using (the lastess) fusion Accelerator 7.x-2.0-beta1 and Aquia_prosper them
I have this issue when trying to browse to the settings of any theme available
Fatal error: Call to undefined function fusion_core_get_width_options() in /home/savabien/public_html/sites/all/modules/fusion_accelerator/fusion_accelerator.module on line 123