Por que os arquivos CSS no meu .info não são aplicados (os scripts funcionam bem)?
-
29-09-2020 - |
Pergunta
Eu tenho uma lista de arquivos CSS de um tema pré-fabricado chamado razão artificial
eles estão listados no meu arquivo .info como tal
stylesheets[all][] = assets/css/style.css
stylesheets[all][] = assets/css/preload.css
stylesheets[all][] = assets/css/style-aqua.css
stylesheets[all][] = assets/css/style-blue.css
stylesheets[all][] = assets/css/style-blue2.css
.....Et Cetera para todos os arquivos na pasta assets/css/
Eu também tenho scripts listados no arquivo de informações
scripts[] = assets/js/app.js
scripts[] = assets/js/carousels.js
scripts[] = assets/js/coming.js
scripts[] = assets/js/coming2.js
scripts[] = assets/js/commerce.js
etc.
Eu tenho as variáveis de estilo e script no meu html.tpl.php
<?php print $styles; ?>
<?php print $scripts; ?>
Porém, quando vou ao meu site os estilos não são aplicados e não há referência a eles no HTML.No entanto, HÁ referência a todos os scripts, conforme visto abaixo
<script src="http://WEBSITENAME/sites/all/themes/SITEDIREC/assets/js/app.js?nqtizi">
Recebo algumas folhas de estilo sendo extraídas dos módulos, mas a maior parte do CSS restante é extraída disso
<link media="all" href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css" rel="stylesheet" type="text/css">
Alguém tem idéias sobre por que isso não está funcionando?Sou bastante novo no Drupal, então provavelmente estou ignorando algo bastante importante.
Eu deveria ter mencionado isso antes:Limpei o cache várias vezes e ativei e desativei a agregação CSS/JS para ver se funcionaria sem sucesso.
Aqui estão os erros que recebo quando inicio o site
[Thu Jul 02 08:34:40.847061 2015] [fcgid:warn] [pid 3816:tid 416] mod_fcgid: process 5448 graceful kill fail, sending SIGKILL
[Thu Jul 02 08:34:46.941527 2015] [fcgid:warn] [pid 3816:tid 416] mod_fcgid: process 7124 graceful kill fail, sending SIGKILL
[Thu Jul 02 08:34:50.401630 2015] [fcgid:warn] [pid 3816:tid 416] mod_fcgid: process 2324 graceful kill fail, sending SIGKILL
Aqui está o arquivo de informações COMPLETO
name = ART REASON sub-theme
description = based on artifical reason
core = 7.x
base theme = bootstrap
;;;;;;;;;;;;;;;;;;;;;
;; Regions
;;;;;;;;;;;;;;;;;;;;;
regions[navigation] = 'Navigation'
regions[header] = 'Top Bar'
regions[highlighted] = 'Highlighted'
regions[help] = 'Help'
regions[content] = 'Content'
regions[sidebar_first] = 'Primary'
regions[sidebar_second] = 'Secondary'
regions[footer] = 'Footer'
regions[page_top] = 'Page top'
regions[page_bottom] = 'Page bottom'
regions[social] = 'Social'
;;;;;;;;;;;;;;;;;;;;;
;; Stylesheets
;;;;;;;;;;;;;;;;;;;;;
stylesheets[all][] = assets/css/style.css
stylesheets[all][] = assets/css/preload.css
stylesheets[all][] = assets/css/style-aqua.css
stylesheets[all][] = assets/css/style-blue.css
stylesheets[all][] = assets/css/style-blue2.css
stylesheets[all][] = assets/css/style-blue3.css
stylesheets[all][] = assets/css/style-blue4.css
stylesheets[all][] = assets/css/style-blue5.css
stylesheets[all][] = assets/css/style-fuchsia.css
stylesheets[all][] = assets/css/style-gray.css
stylesheets[all][] = assets/css/style-green.css
stylesheets[all][] = assets/css/style-green2.css
stylesheets[all][] = assets/css/style-green3.css
stylesheets[all][] = assets/css/style-green4.css
stylesheets[all][] = assets/css/style-green5.css
stylesheets[all][] = assets/css/style-orange.css
stylesheets[all][] = assets/css/style-orange2.css
stylesheets[all][] = assets/css/style-orange3.css
stylesheets[all][] = assets/css/style-pink.css
stylesheets[all][] = assets/css/style-red.css
stylesheets[all][] = assets/css/style-red2.css
stylesheets[all][] = assets/css/style-red3.css
stylesheets[all][] = assets/css/style-violet.css
stylesheets[all][] = assets/css/style-violet2.css
stylesheets[all][] = assets/css/style-violet3.css
stylesheets[all][] = assets/css/style-yellow.css
stylesheets[all][] = assets/css/style-yellow2.css
stylesheets[all][] = assets/css/vendors.css
stylesheets[all][] = assets/css/width-full.css
stylesheets[all][] = assets/css/width-boxed.css
stylesheets[all][] = assets/css/syntaxhighlighter/shCore.css
stylesheets[all][] = assets/css/syntaxhighlighter/shCoreDefaulter.css
stylesheets[all][] = assets/css/syntaxhighlighter/shCoreDjango.css
stylesheets[all][] = assets/css/syntaxhighlighter/shCoreEclipse.css
stylesheets[all][] = assets/css/syntaxhighlighter/shCoreEmacs.css
stylesheets[all][] = assets/css/syntaxhighlighter/shCoreFadeToGrey.css
stylesheets[all][] = assets/css/syntaxhighlighter/shCoreMDUltra.css
stylesheets[all][] = assets/css/syntaxhighlighter/shCoreMidnight.css
stylesheets[all][] = assets/css/syntaxhighlighter/shCoreRDark.css
stylesheets[all][] = assets/css/syntaxhighlighter/shThemeDefault.css
stylesheets[all][] = assets/css/syntaxhighlighter/shThemeDjango.css
stylesheets[all][] = assets/css/syntaxhighlighter/shThemeEclipse.css
stylesheets[all][] = assets/css/syntaxhighlighter/shThemeEmacs.css
stylesheets[all][] = assets/css/syntaxhighlighter/shThemeFadeToGrey.css
stylesheets[all][] = assets/css/syntaxhighlighter/shThemeMDUltra.css
stylesheets[all][] = assets/css/syntaxhighlighter/shThemeMidnight.css
stylesheets[all][] = assets/css/syntaxhighlighter/shThemeRDark.css
;;;;;;;;;;;;;;;;;;;;;;
;; JS
;;;;;;;;;;;;;;;;;;;;;;
scripts[] = assets/js/app.js
scripts[] = assets/js/carousels.js
scripts[] = assets/js/coming.js
scripts[] = assets/js/coming2.js
scripts[] = assets/js/commerce.js
scripts[] = assets/js/e-commerce_product.js
scripts[] = assets/js/home_full.js
scripts[] = assets/js/home_inverse_navbar.js
scripts[] = assets/js/home_login_full.js
scripts[] = assets/js/home_plain.js
scripts[] = assets/js/home_product.js
scripts[] = assets/js/home_profile.js
scripts[] = assets/js/home_services.js
scripts[] = assets/js/html5shiv.min.js
scripts[] = assets/js/index.js
scripts[] = assets/js/jquery.min.map
scripts[] = assets/js/lightbox.min.map
scripts[] = assets/js/page_charts.js
scripts[] = assets/js/portfolio.js
scripts[] = assets/js/respond.min.js
scripts[] = assets/js/slidebars.js
scripts[] = assets/js/styleswitcher.js
scripts[] = assets/js/vendors.js
; For information on choosing the desired method, please read the Drupal
; Bootstrap sub-theme "how-to" documentation:
; https://drupal.org/node/1978010
; ;----------------------------------
; ; METHOD 1: Bootstrap Source Files
; ;----------------------------------
;
; ;;;;;;;;;;;;;;;;;;;;;
; ;; Scripts
; ;;;;;;;;;;;;;;;;;;;;;
;
; scripts[] = 'bootstrap/js/affix.js'
; scripts[] = 'bootstrap/js/alert.js'
; scripts[] = 'bootstrap/js/button.js'
; scripts[] = 'bootstrap/js/carousel.js'
; scripts[] = 'bootstrap/js/collapse.js'
; scripts[] = 'bootstrap/js/dropdown.js'
; scripts[] = 'bootstrap/js/modal.js'
; scripts[] = 'bootstrap/js/tooltip.js'
; scripts[] = 'bootstrap/js/popover.js'
; scripts[] = 'bootstrap/js/scrollspy.js'
; scripts[] = 'bootstrap/js/tab.js'
; scripts[] = 'bootstrap/js/transition.js'
RESOLVIDO:Um problema tão simples, considerando quanto trabalho eu coloquei para tentar resolvê-lo.Eu não tinha o caminho do arquivo correto especificado no arquivo .info porque pensei, incorretamente, que o caminho do arquivo era relativo ao modelo em vez do arquivo .info.então tive que usar templates/assets/css em vez de assets/css.Eu já havia tentado essa solução antes, mas acho que esqueci de limpar meu cache primeiro.Obrigado pela ajuda
-Mat
Solução 2
RESOLVIDO:Um problema tão simples, considerando quanto trabalho eu coloquei para tentar resolvê-lo.Eu não tinha o caminho do arquivo correto especificado no arquivo .info porque pensei, incorretamente, que o caminho do arquivo era relativo ao modelo em vez do arquivo .info.então tive que usar templates/assets/css em vez de assets/css.Eu já havia tentado essa solução antes, mas acho que esqueci de limpar meu cache primeiro ao aplicar essa correção.Obrigado pela ajuda
-Mat
Outras dicas
Considere verificar as diversas respostas à pergunta sobre Não é possível desativar o cache e a agregação CSS ...inclui algumas dicas que também podem ajudar no seu caso, como:
- Tente limpar o cache?
- Agregação CSS/JS ativada?
- Algum mecanismo de cache (como Varnish) instalado no servidor?
- Poderia ser um módulo ou tema que codificou o cache CSS?
Como nada disso é mencionado na sua pergunta, achei que valeria a pena apontá-los ...