Pregunta

Tengo una lista de archivos CSS de un tema prediseñado llamado razón artificial

están listados en mi archivo .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

.....Etcétera para todos los archivos en la carpeta activos/css/

También tengo scripts enumerados en el archivo de información.

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étera

Tengo las variables de estilo y script en mi html.tpl.php

<?php print $styles; ?>
<?php print $scripts; ?>

Sin embargo, cuando voy a mi sitio, los estilos no se aplican y no hay ninguna referencia a ellos en el HTML.Sin embargo, HAY referencia a todos los scripts como se ve a continuación.

<script src="http://WEBSITENAME/sites/all/themes/SITEDIREC/assets/js/app.js?nqtizi">

Obtengo un par de hojas de estilo extraídas de los módulos, pero la mayor parte del CSS restante se extrae de este

<link media="all" href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css" rel="stylesheet" type="text/css">

¿Alguien tiene ideas sobre por qué esto no funciona?Soy bastante nuevo en Drupal, por lo que probablemente esté pasando por alto algo bastante importante.

Debería haberlo mencionado antes:Borré el caché muchas veces y activé y desactivé la agregación CSS/JS para ver si funcionaba sin éxito.

Estos son los errores que recibo cuando inicio el sitio.

[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

Aquí está el archivo de información 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'

SOLUCIONADO:Un problema tan simple por todo el trabajo que puse para intentar resolverlo.No tenía especificada la ruta de archivo correcta en el archivo .info porque pensé, incorrectamente, que la ruta de archivo era relativa a la plantilla en lugar del archivo .info.así que tuve que ir a plantillas/activos/css en lugar de activos/css.Ya había probado esta solución antes, pero supongo que primero olvidé borrar mi caché.Gracias por la ayuda

-Mate

¿Fue útil?

Solución 2

SOLUCIONADO:Un problema tan simple por todo el trabajo que puse para intentar resolverlo.No tenía especificada la ruta de archivo correcta en el archivo .info porque pensé, incorrectamente, que la ruta de archivo era relativa a la plantilla en lugar del archivo .info.así que tuve que ir a plantillas/activos/css en lugar de activos/css.Había probado esta solución antes, pero supongo que olvidé borrar mi caché primero al aplicar esa solución.Gracias por la ayuda

-Mate

Otros consejos

Considere verificar las diversas respuestas a la pregunta sobre No se puede deshabilitar el almacenamiento en caché y la agregación de CSS ...Incluye algunos consejos que también pueden ayudar en su caso, como:

  • ¿Intentas borrar el caché?
  • ¿La agregación CSS/JS está activada?
  • ¿Algún mecanismo de almacenamiento en caché (como Varnish) instalado en el servidor?
  • ¿Podría ser un módulo o un tema que codificó el almacenamiento en caché de CSS?

Dado que ninguno de estos se menciona en su pregunta, pensé que valía la pena señalarlos...

Licenciado bajo: CC-BY-SA con atribución
No afiliado a drupal.stackexchange
scroll top