If you get the error after publishing a module/component into your joomla website, then here is an easy fix to it. Add the following code to the file below
defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.');
require_once (JPATH_SITE.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'route.php'); if(!class_exists('ContentHelperRoute')) require_once (JPATH_SITE . '/components/com_content/helpers/route.php');
if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR); require_once (JPATH_SITE.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'route.php'); if(!class_exists('ContentHelperRoute')) require_once (JPATH_SITE . '/components/com_content/helpers/route.php');
If you still face issues with fixing the issue, then feel free to contact us. Our technical team will assist you in fixing the issue.