0
Welcome Guest! Login
0 items Join Now

Fatal error: Call to undefined method Gantry::escape()

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

    Fatal error: Call to undefined method Gantry::escape()

    Posted 7 years 3 months ago
    • I've created a com_content layout HTML override to the file layouts/joomla/content/blog_style_default_item_title.php but are now getting the following white screen error message:

      Fatal error: Call to undefined method Gantry::escape() in XXXXX/templates/rt_myriad/html/layouts/blog_style_default_item_title.php on line 18

      The file the error message refers to is as follows:


      <?php
      
      defined('JPATH_BASE') or die;
      
      // Create a shortcut for params.
      $params = $displayData->params;
      //$canEdit = $displayData->params->get('access-edit');
      JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
      ?>
      
      <?php echo $this->escape($displayData->title); ?>

      Any ideas on how to fix this?
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 21555
    • Thanks: 3090
    • messin' with stuff

    Re: Fatal error: Call to undefined method Gantry::escape()

    Posted 7 years 3 months ago
    • try disabling base_override.php file in the /html/ folder... it may break other things, but see if that helps
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:

Time to create page: 0.053 seconds