0
Welcome Guest! Login
0 items Join Now

Installation problems Gantry Modulus Theme

    • clint_g's Avatar
    • clint_g
    • Newbie
    • Posts: 1
    • Thanks: 0

    Installation problems Gantry Modulus Theme

    Posted 13 years 10 months ago
    • Hallo everyone,

      Cloud someone be so kind to help me out? Ik have installed the modulus theme with gantry and now I get this:

      Warning: Invalid CRT parameters detected in C:\wamp\www\libraries\gantry\core\utilities\gantrydate.class.php on line 242
    • JEM's Avatar
    • JEM
    • Preeminent Rocketeer
    • Posts: 17917
    • Thanks: 4

    Re: Installation problems Gantry Modulus Theme

    Posted 13 years 10 months ago
    • Google for 'Warning: Invalid CRT parameters detected in C:\wamp\www\libraries\gantry\core\utilities\gantrydate.class.php on line 242'

      You will find many post links this with possible solutions:

      code.google.com/p/gantry-framework/issues/detail?id=16

      An alternative would be to use XAMPP...

      I have no errors with this template using it.
    • Thanks,
      jim
    • Tim Millar's Avatar
    • Tim Millar
    • Rocketeer
    • Posts: 63
    • Thanks: 3
    • Microsoft Certified System Engineer

    Re: Installation problems Gantry Modulus Theme

    Posted 13 years 10 months ago
  • Re: Installation problems Gantry Modulus Theme

    Posted 13 years 10 months ago
    • Edit the following file:
      <Joomla Root>/libraries/joomla/utilities/date.php

      Around line 240, find below codes:
       
      function _strftime($format, $time)
      {
          if(strpos($format, '%a') !== false)
              $format = str_replace('%a', $this->_dayToString(date('w', $time), true), $format);
          if(strpos($format, '%A') !== false)
              $format = str_replace('%A', $this->_dayToString(date('w', $time)), $format);
          if(strpos($format, '%b') !== false)
              $format = str_replace('%b', $this->_monthToString(date('n', $time), true), $format);
          if(strpos($format, '%B') !== false)
              $format = str_replace('%B', $this->_monthToString(date('n', $time)), $format);
          $date = strftime($format, $time);
          return $date;
      }
       

      Change the codes to:
       
      function _strftime($format, $time)
      {
          if(strpos($format, '%a') !== false)
              $format = str_replace('%a', $this->_dayToString(date('w', $time), true), $format);
          if(strpos($format, '%A') !== false)
              $format = str_replace('%A', $this->_dayToString(date('w', $time)), $format);
          if(strpos($format, '%b') !== false)
              $format = str_replace('%b', $this->_monthToString(date('n', $time), true), $format);
          if(strpos($format, '%B') !== false)
              $format = str_replace('%B', $this->_monthToString(date('n', $time)), $format);
          if(PHP_OS == 'WINNT'){
              $format = str_replace("%h", "%b", $format);
              $format = str_replace("%e", "%#d", $format);
          }   
          $date = strftime($format, $time);
          return $date;
      }
       

Time to create page: 0.070 seconds