Hello!
I've been trying to track down an issue where my panels disappear after clearing the cache. I started working through the suggestions found on this panels ticket until I discovered that the culprit was missing skinr theme functions. Based on this comment by merlinofchaos in the same thread, I created the attached patch to see if moving hook_ctools_plugin_directory() to skinr.module fixes the problem. It does fix the problem!
This means that modules/panels.skinr.inc isn't getting loaded during the theme cache rebuild sometimes.
I know my patch isn't acceptable as-is -- because it defeats the modularlarity of keeping panels support in a seperate include file. However, I couldn't find where in Skinr this file is loaded! Can you please point out where the loading takes place?
Also, I'm not entirely sure how to trigger its loading at the right time. We really can't detect when ctools is about to call hook_ctools_plugin_directory()... So, maybe we should always load it? What do you think?
At the very least, this patch will help other users experiencing this problem work around it temporarily.
Best regards,
David.
| Comment | File | Size | Author |
|---|---|---|---|
| skinr-979912.diff | 1.33 KB | dsnopek |
Comments
Comment #1
yosisays commentedI'm a bit confused about what to do here.
Do I remove or add the last line where is says */ ?
Comment #2
yosisays commentedanyone? I also find that my php error logs record the following errors:
[24-Feb-2012 11:48:56] PHP Fatal error: fatal flex scanner internal error--end of buffer missed in /home3/babblefl/public_html/sites/all/modules/skinr/modules/panels.skinr.inc on line 388
[24-Feb-2012 11:48:59] PHP Warning: Unterminated comment starting line 388 in /home3/babblefl/public_html/sites/all/modules/skinr/modules/panels.skinr.inc on line 388
Comment #3
moonray commented"No newline at end of file" just means that. There was previously a line break at the end of the file, where there currently is none. Leave the "*/" on the last line.
You should read about applying patches in the drupal docs.
http://drupal.org/node/60108
Comment #4
moonray commentedComment #5
moonray commentedComment #7
yosisays commentedThis patch did not work for me. Panels is still not showing.
any updates?
moonray, there was no line break at the end of the file previously which is why I was confused.
Comment #8
jvieille commentedThis patch solved my problem
http://drupal.org/node/979912#comment-6390122
Can the skinr team consider this bug and commit this?
Only the patch is malformed, but it should be easy to fix
Thanks!
Comment #9
yosisays commentedYou realize that your link is a goose chase back to this thread? It brings me to your post #168 in issue #979912 where you provide a link that brings me to comment # 102 of that same thread/issue which provides a link back to this thread! What patch are you referring to?
either way, this patch did not work for me. any updates on this?
Comment #10
jvieille commentedWell, I realize your trouble following the links I submitted...
There is a logic though, but it would be long to explain and worthless..
So instead, I will just affirm that the patch submitted in the head of this issue is the one that worked for me.
Sorry for the mess...
Comment #11
dsnopek@jvieille, if it works for you, could you mark it as "reviewed & tested by the community"? This will hopefully help us in convincing the skinr upstream maintainers to accept this patch. :-)
Comment #12
jvieille commentedRight!
A zero fault patch submitted 16 months ago really reserves to be committed.
Comment #13
moonray commentedComment #14
astonvictor commentedD6 reached its EOL back in February 2016, and there is no active release for D6 for this module anymore.
Development or support is not planned for D6. All D6-related issues are marked as outdated in a bunch.