0
Welcome Guest! Login
0 items Join Now

editing styledeclaration.php causes theme to "crash"

    • evilC's Avatar
    • evilC
    • Jr. Rocketeer
    • Posts: 39
    • Thanks: 0

    editing styledeclaration.php causes theme to "crash"

    Posted 13 years 6 months ago
    • I am trying to learn how to code gantry features etc, and I am coming across a wierd problem.

      If I make a mistake in styledeclaration.php, the theme can "crash". You get a white screen with no CSS and only a few DIVs (rt-blog containing blog-wrapper containing rt-leading-articles).
      The Template admin screen for that gantry theme is also affected, it just ends up white with plain text.

      The problem is that reverting out styledeclaration.php (or even all changed files) to a known good version sometimes does NOT fix the issue. I guess styledeclaration.php builds a CSS file that is used by both the front end and the template configuration in the back end?

      The only way I know how to fix it is to uninstall and reinstall the theme - this hampers my development efforts...

      Any ideas?
    • evilC's Avatar
    • evilC
    • Jr. Rocketeer
    • Posts: 39
    • Thanks: 0

    Re: editing styledeclaration.php causes theme to "crash"

    Posted 13 years 6 months ago
    • Hmm, I turned the gantry cache off, and since then, all "crashes" have been recoverable by undoing the file edit.
  • Re: editing styledeclaration.php causes theme to "crash"

    Posted 12 years 4 months ago
    • Hi,

      I have de same problem.

      I edit the "styledeclaration.php" file and now my rt-ionosphere template CSS is not working.

      I put the original "styledeclaration.php" file and the CSS is not apllying yet.

      I tried do clear gantry cache and joomla cache and didn' work...

      What is wrong?
  • Re: editing styledeclaration.php causes theme to "crash"

    Posted 12 years 4 months ago
    • Hi,

      I find out that the problem was because in folder "features" I made a copy of the "styledeclaratrion.php" before I change it.

      So I create in that folder รก copy named "styledeclarationORIGINAL.php". And this crashed the inline CSS generated from the rt-ionosphere template.

      Only when I deleted that file the site starts running ok and with all the CSS.

      I hope this could help others...

Time to create page: 0.061 seconds