Problem/Motivation
There are duplicate css and js files. It was likely caused by mis-applying patch in https://www.drupal.org/node/2015227
Proposed resolution
Remove top-level ./hide_submit.css and ./hide_submit.js in favor of ./css/hide_submit.css and ./js/hide_submit.js
Remaining tasks
Patch or direct commit
User interface changes
n/a
API changes
Paths for CSS and JS change
Data model changes
n/a/
Original report by @mastoll
My modules are located in sites//modules/contrib.
Line 62 of hide_submit.module looks like this:
$form['#attached']['css'][drupal_get_path('module', 'hide_submit') . '/hide_submit.css'] = array(
It returns the wrong path to the hide submit module css file = sites//modules/hide_submit/hide_submit.css.
Notice that it misses the contrib folder. This throws a Page Not Found warning.
How do I remedy this?
Comment | File | Size | Author |
---|---|---|---|
#5 | hide-submit.png | 65.56 KB | c4rl |
Comments
Comment #2
mastoll CreditAttribution: mastoll as a volunteer commentedComment #3
gregglesWhat do you get if you run this query:
select * from system where name = 'hide_submit';
?
Comment #4
gregglesAwaiting your input, so updating status.
If there's no response in 2 weeks I'll assume this got fixed by a cache clear.
Comment #5
c4rl CreditAttribution: c4rl commentedComment #6
c4rl CreditAttribution: c4rl commentedComment #7
c4rl CreditAttribution: c4rl commentedComment #8
rymcveigh@c4rl, things look better now. @greggles reapplied the patch here: https://www.drupal.org/node/2015227#comment-11083841
Comment #9
c4rl CreditAttribution: c4rl commentedSwell