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

Comments

aquariumtap’s picture

Status: Active » Postponed (maintainer needs more info)

Which theme are you using?

sheena_d’s picture

This 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.

enzo de simone’s picture

OK. Thanks

sheena_d’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)
jlea9378’s picture

Status: Closed (fixed) » Active

I 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

sheena_d’s picture

Do 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.

jlea9378’s picture

StatusFileSize
new1.96 KB

Nope, 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.

jlea9378’s picture

StatusFileSize
new1.96 KB
sheena_d’s picture

I don't see anything out of place in your .info file. I will see if I can recreate the issue.

sheena_d’s picture

Assigned: Unassigned » aquariumtap
Status: Active » Needs work
StatusFileSize
new2.1 KB

@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.

jlea9378’s picture

Thanks, that solved my problem!

satrich’s picture

I 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

sheena_d’s picture

@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?

satrich’s picture

Yes 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....

sheena_d’s picture

@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!

jlea9378’s picture

Is 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!

sheena_d’s picture

Status: Needs work » Needs review
StatusFileSize
new2.95 KB

Updating patch to recursively check the theme's base themes for Fusion.

JuliaKM’s picture

Status: Needs review » Reviewed & tested by the community

To 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.

sheena_d’s picture

Status: Reviewed & tested by the community » Fixed

This fix is included in Fusion Accelerator 7.x-2.0-beta1

Status: Fixed » Closed (fixed)

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

Salif’s picture

Hi
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