Problem/Motivation

There are duplicate css and js files. It was likely caused by mis-applying patch in https://www.drupal.org/node/2015227

hide-submit

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?

CommentFileSizeAuthor
#5 hide-submit.png65.56 KBc4rl
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mastoll created an issue. See original summary.

mastoll’s picture

Issue summary: View changes
greggles’s picture

What do you get if you run this query:

select * from system where name = 'hide_submit';

?

greggles’s picture

Status: Active » Postponed (maintainer needs more info)

Awaiting your input, so updating status.

If there's no response in 2 weeks I'll assume this got fixed by a cache clear.

c4rl’s picture

Title: path to css is incorrect, Page Not Found warning » Duplicate CSS files
Issue summary: View changes
FileSize
65.56 KB
c4rl’s picture

Status: Postponed (maintainer needs more info) » Active
c4rl’s picture

Issue summary: View changes
rymcveigh’s picture

@c4rl, things look better now. @greggles reapplied the patch here: https://www.drupal.org/node/2015227#comment-11083841

c4rl’s picture

Status: Active » Fixed

Swell

Status: Fixed » Closed (fixed)

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