Closed (fixed)
Project:
Skinr
Version:
6.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2010 at 22:32 UTC
Updated:
27 Feb 2011 at 12:37 UTC
Upgrading to Skinr 6.x-2.x-dev from 2010-Jul-11 kills my site, including the admin area, with the following fatal error:
Fatal error: Call to undefined function skinr_fetch_config() in /var/www/drupal/sites/all/modules/skinr/skinr_ui.module on line 317
How do I continue?
Thanks & greetings, -asb
Comments
Comment #1
asb commentedSimilar error messages, but different cicumstances:
#732804: Better to rename it as Error Description: 404: Not Found (initial title: "Fatal error: Call to undefined function skinr_fetch_config()")
The code from
skinr_ui.modulearound line 317 is:Comment #2
nscad_nathan commentedSame problem here! I followed the steps in http://groups.drupal.org/node/53798. Rolling back to 1.X fixes issue.
Comment #3
asb commentedAnyone?
Comment #4
asb commentedSince the maintainer/s seem/s not to read the issue queue, II posted a question in the Skinr group.
Comment #5
stephthegeek commentedCan you provide a bit more information about your setup? What modules are you using? Anything in the logs?
The error occurs on any page load when you enable the module? Have you tried running update.php, or completely uninstalled and reinstalled the module?
Comment #6
asb commentedI can not access the logs since the site is dead, as I wrote, including the admin area.
Obviously I haven't added any modules since the site is dead; the only thing that changed is the last code update three weeks ago. So most probably there is a connection between the applied changes to Skinr and this issue.
Installed modules:
Not all of them are enabled, about the status of 'css_gzip' and 'javascript_aggregator' I'm not sure since there were issues with panels and caching/aggregation.
"Kills my site" means that there is nothing but this error message, anywhere. No page is loading without this error, including the admin area.
Running the web-based
update.phpresults in an error. Which one it is you might have guessed by now. But yes, the fileupdate.phploads indeed without giving the error. However, putting an$update_free_access = TRUE;into./sites/default/settings.phpand then clicking on "Continue" produces it.No, I have not completely uninstalled the module since this would mean that I loose all layout definitions and formatings, as far as they're based on Skinr. I was hoping for some kind of advice or a quick fix for the "undefined function", at least when I wrote this issue.
OK, now to what Drush tells me:
Running update.php from the shell:
Listing watchdog messages:
Getting rid of Skinr:
The site is back, of course without the eye candy provided by Skinr.
And back to square 1:
Comment #7
moonray commentedCan you check skinr.module and make sure the skinr_fetch_config() function exists?
If it does (which it should), it means that your drupal setup is somehow not including skinr.module file when trying to execute the skinr_ui_form_alter() function in skinr_ui.module. WHY that's happening is a mystery to me right now.
Comment #8
asb commentedYes, the file skinr.module from the installed 6.x-2.x-dev has this:
(Skinr 6.x-1.x doesn't have skinr_fetch_config(), right?)
Comment #9
asb commentedAh, I see, it's your code. OK, I understand that most probably there won't be a quick fix if you have no idea what might be wrong.
I'll do now what I should have done a long time ago: Fall back to the last working backup (which is running the last dev release before the broken one from 2010-Jul-11).
However, thank you for looking into this!
Comment #10
asb commentedDone, Went back to the last backup, and everything is working again.
Comment #11
ChrisBryant commented@asb, thanks for the heads up and following up and closing this issue. It's good to hear you were able to get it working again!
Comment #12
mlncn commentedI received the same error. I think the real reason may be using drush to update–
Using Drush to update skinr resulted in a botched *downgrade* from the recommended new dev 2.x release shown on the update status page to the staple 1.x release. Furthermore it seems drush did not delete old files, so the 2.x skinr_ui stayed around. Enabling that was naturally fatal.
Comment #13
ChrisBryant commentedThat's great to hear, thanks for the confirmation Benjamin!
Comment #14
dillonm commentedKind of along the lines of Benjamin ... when upgrading Skinr, I get this error on sites only when I don't delete the 1.x version before installing the new version of skinr.
Seems to work for me. Also, don't forget to install the various necessary jquery/dialog modules noted here http://groups.drupal.org/node/53798
Comment #15
asb commentedUnexpected downgrades through Drush happen all the time - so keep in mind to always compare what branch you're running and what Drush tried to install. This applies also to almost all dev releases you might be running (boost, image...), Drush will always try to downgrade to the "latest" release marked as "stable". In most cases this is unwanted, so beware.
Comment #16
asb commentedI was just bitten by this again and can confirm the Drush problem (#12).