0
Welcome Guest! Login
0 items Join Now

SOLVED Sucuri site check and gantry

    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13482
    • Web Designer/Developer

    Re: SOLVED Sucuri site check and gantry

    Posted 8 years 11 months ago
    • Sorry but I can't add any more to what I've said already, I don't have any other suggestions.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
  • Re: SOLVED Sucuri site check and gantry

    Posted 8 years 10 months ago
    • This is the bug.

      2. our error page has an outstanding bug ticket because it cannot handle extensions that it does not recognise. Our developers have yet to find a solution to this.

      What we need is to at least catch 404javascript.js at the htaccess level and send a 403 instead of 500.

      <files 404javascript.js>
      order allow,deny
      deny from all
      </files>

      This cleared up my sucuri error. Scum hide details and try to force you to pay them. I do not trust them after this.

      My template also had a bad error.less resulting in a 404 for a missing image
      /*background-image: url(../images/patterns/preset@{index}/pattern.png);*/
      This is not important however.
    • Last Edit: 8 years 10 months ago by Hola789432.
    • Quenda's Avatar
    • Quenda
    • Hero Rocketeer
    • Posts: 472
    • Thanks: 4
    • Audio-video-web freelancer. Apple hardware/software tech. support_

    Re: SOLVED Sucuri site check and gantry

    Posted 8 years 10 months ago
    • Sorry if I reply in a SOLVED (Closed) thread.......but I have the exact same problem with this Joomla 3.4.8 with Myriad template & Gantry 4.

      This is the Sucuri check response:

      Site error detected. Details: sucuri.net/malware/php-error-fatal-error?v6
      Fatal error: Uncaught exception 'RuntimeException' with message 'Unable to load renderer class' in /web/htdocs/www.salumificiobertoletti.com/home/libraries/joomla/document/document.php:1018

      So is this a "false positive"???
      To correct the problem do I need to add the suggested code to my .htaccess file?

      Thank-you.

      ettore
  • Re: SOLVED Sucuri site check and gantry

    Posted 8 years 10 months ago
    • It's a false positive and I have an even better solution now. It's very simple and I don't know why rockettheme won't tell people. This bug occurs when you are using SEF urls, especially with extensions like .html.

      Forget the .htacess, do this.

      In error.php, under
      defined( '_JEXEC' ) or die( 'Restricted access' );
      
      // Load and Inititialize Gantry Class
      global $gantry;
      require_once(dirname(__FILE__) . '/lib/gantry/gantry.php');
      $gantry->init();
      
      $doc = JFactory::getDocument();
      $app = JFactory::getApplication();

      add
      $_format = JFactory::getApplication()->input->get('format', 'html');
      if ($_format != "html") {
        header("HTTP/1.0 404 Not Found"); 
        die();
      }
    • Last Edit: 8 years 10 months ago by Hola789432.
    • The following users have thanked you: Johnnie K2

    • Quenda's Avatar
    • Quenda
    • Hero Rocketeer
    • Posts: 472
    • Thanks: 4
    • Audio-video-web freelancer. Apple hardware/software tech. support_

    Re: SOLVED Sucuri site check and gantry

    Posted 8 years 10 months ago
    • Thank-You Hola!

      ettore
  • Re: SOLVED Sucuri site check and gantry

    Posted 8 years 10 months ago
    • worked for me but my code misses one line, can you check if its ok what I did?
      because after this line:
      $doc = JFactory::getDocument();
      instead this one: $app = JFactory::getApplication();

      I have this one instead: $doc->setTitle($this->error->getCode() . ' - '.$this->title);

      // load and inititialize gantry class
      global $gantry;
      require_once(dirname(__FILE__) . '/lib/gantry/gantry.php');
      $gantry->init();
      
      $doc = JFactory::getDocument();
      $doc->setTitle($this->error->getCode() . ' - '.$this->title);
      
          $_format = JFactory::getApplication()->input->get('format', 'html');
          if ($_format != "html") {
            header("HTTP/1.0 404 Not Found"); 
            die();
          }
      
      
    • The following users have thanked you: Hola789432, Daniel Benson

  • Re: SOLVED Sucuri site check and gantry

    Posted 8 years 10 months ago
    • yes keep what you have
    • Matias Griese's Avatar
    • Matias Griese
    • Sr. Rocketeer
    • Posts: 249
    • Thanks: 104
    • Lead Developer

    Re: SOLVED Sucuri site check and gantry

    Posted 8 years 10 months ago
    • The fix looks good, except that it renders empty page where Joomla itself renders html error page in this case.
    • Gantry 5, enjoy!
  • Re: SOLVED Sucuri site check and gantry

    Posted 8 years 10 months ago
    • Then your template is different because html is specifically excluded
    • John Langlois's Avatar
    • John Langlois
    • Sr. Rocketeer
    • Posts: 113
    • Thanks: 0
    • President, Foggy Bottom Web Design

    Re: SOLVED Sucuri site check and gantry

    Posted 8 years 9 months ago
    • Hola789432 wrote:
      It's a false positive and I have an even better solution now. It's very simple and I don't know why rockettheme won't tell people. This bug occurs when you are using SEF urls, especially with extensions like .html.

      Forget the .htacess, do this.

      In error.php, under
      defined( '_JEXEC' ) or die( 'Restricted access' );
      
      // Load and Inititialize Gantry Class
      global $gantry;
      require_once(dirname(__FILE__) . '/lib/gantry/gantry.php');
      $gantry->init();
      
      $doc = JFactory::getDocument();
      $app = JFactory::getApplication();

      add
      $_format = JFactory::getApplication()->input->get('format', 'html');
      if ($_format != "html") {
        header("HTTP/1.0 404 Not Found"); 
        die();
      }
      I don't mean to hijack your thread.
      We are having the same issue in rt_stratos.
      The error.php page is slightly different.
      Should this code work there or is there a different thread I could pursue?

      Thanks
    • John Langlois
      www.foggybottomwebdesign.com

Time to create page: 0.068 seconds