Warning: require_once(/home/sakhizwe/public_html/components/com_contactenhanced/Helper/Security.php): failed to open stream: No such file or directory in /home/sakhizwe/public_html/components/com_contactenhanced/helpers/helper.php on line 8

Fatal error: require_once(): Failed opening required '/home/sakhizwe/public_html/components/com_contactenhanced/Helper/Security.php' (include_path='.:/opt/php56/lib/php') in /home/sakhizwe/public_html/components/com_contactenhanced/helpers/helper.php on line 8
Crikey! There was an error...
Whoops \ Exception \ ErrorException (E_COMPILE_ERROR)
require_once(): Failed opening required '/home/sakhizwe/public_html/components/com_contactenhanced/Helper/Security.php' (include_path='.:/opt/php56/lib/php') Whoops\Exception\ErrorException thrown with message "require_once(): Failed opening required '/home/sakhizwe/public_html/components/com_contactenhanced/Helper/Security.php' (include_path='.:/opt/php56/lib/php')" Stacktrace: #0 Whoops\Exception\ErrorException in /home/sakhizwe/public_html/components/com_contactenhanced/helpers/helper.php:8
Stack frames (1)
0
Whoops
\
Exception
\
ErrorException
/
home
/
sakhizwe
/
public_html
/
components
/
com_contactenhanced
/
helpers
/
helper.php
8
<?php
/** @package    com_contactenhanced
* @author    Douglas Machado {@link http://idealextensions.com}
* @author    Created on 28-Jul-09
* @license    GNU/GPL, see license.txt
*/
 
 defined( '_JEXEC' ) or die( 'Restricted access' ); use Joomla\Utilities\ArrayHelper; use Joomla\CMS\Factory; use Joomla\CMS\Environment\Browser; use Joomla\Registry\Registry; use Joomla\CMS\Language\Text; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Router\Route; use Joomla\CMS\Uri\Uri; use Joomla\CMS\Component\ComponentHelper; use Joomla\CMS\Application\ApplicationHelper; use Joomla\CMS\Date\Date; use Joomla\CMS\Plugin\PluginHelper; use Joomla\CMS\String\PunycodeHelper; use Joomla\CMS\Mail\MailHelper; use Joomla\CMS\Helper\ContentHelper; use Joomla\Archive\Archive; use Joomla\Archive\Zip; use Joomla\Filesystem\Folder; require_once JPATH_ROOT.'/components/com_contactenhanced/helpers/object.php'; require_once JPATH_ROOT.'/components/com_contactenhanced/defines.php'; require_once JPATH_ROOT.'/components/com_contactenhanced/helpers/route.php'; require_once JPATH_ROOT.'/components/com_contactenhanced/Helper/Security.php'; require_once JPATH_ROOT.'/components/com_contactenhanced/Helper/File.php'; class ceHelper{ public static $cf = array(); public static $submittedfields = null; public static $contactModel = null; public static $fieldLabels = array(); public static function getActions($categoryId = 0, $contactId = 0) { if (empty($contactId) && empty($categoryId)) { $canDo = ContentHelper::getActions('com_contactenhanced'); } elseif (empty($contactId)) { $canDoCat = ContentHelper::getActions('com_contactenhanced', 'category', $this->contact->catid); } else { $canDoCat = ContentHelper::getActions('com_contactenhanced', 'contact', $this->contact->id); } } public static function httpIsSecure() { if (isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) != 'off')) { return true; } else{ return false; } } public static function getFlag($country, $attr=array(), $showNameOnEmpty=true,$imagePathOnly=false) { $country = trim($country,'.,; \t\n\r\0'); $filepath = null; if(!empty($country)) { $filename = ApplicationHelper::stringURLSafe($country); $imageFolderpath = 'images/com_contactenhanced/flags/'; if(file_exists(JPATH_ROOT.'/'.$imageFolderpath.$filename.'.svg')) { $filepath = Uri::root().$imageFolderpath.$filename.'.svg'; } elseif(file_exists(JPATH_ROOT.'/'.$imageFolderpath.$filename.'.png')) { $filepath = Uri::root().$imageFolderpath.$filename.'.png'; } if(!empty($filepath)) { if($imagePathOnly) { return $filepath; } else { return '<img src="' . $filepath . '" alt="' . $country . '" ' . trim((is_array($attr) ? ArrayHelper::toString($attr) : $attr) . ' /') . '>'; } } elseif(strpos($country, ',')) { $images = array(); $countries = explode(',', $country); foreach ($countries as $flag) { $images[] = self::getFlag($flag,$attr,$showNameOnEmpty,$imagePathOnly); } if(!empty($images)) { return implode("\n", $images); } } } if($showNameOnEmpty) { return $country; } return ''; } public static function loadJavascriptFiles() { if(!defined('CONTACT_ENHANCED_JS_LOADED')){ define('CONTACT_ENHANCED_JS_LOADED',1); $doc = Factory::getDocument(); self::loadJqueryUI(); self::loadCSSFiles(); if(!defined('CE_SHARED_JQUERY_VALIDATION_SCRIPT_LOADED')) { define('CE_SHARED_JQUERY_VALIDATION_SCRIPT_LOADED',1); $doc->addScript(Uri::root().'components/com_contactenhanced/assets/js/jquery.validate.min.js'); } if (is_readable(JPATH_SITE.'/components/com_contactenhanced/assets/js/custom.js')) { $doc->addScript(Uri::root().'components/com_contactenhanced/assets/js/custom.js'); } } } public static function loadCSSFiles() { if(!defined('CONTACT_ENHANCED_CSS_LOADED')){ define('CONTACT_ENHANCED_CSS_LOADED',1); $doc = Factory::getDocument(); $params = ComponentHelper::getParams('com_contactenhanced'); if($params->get('load_bootstrap')){ HTMLHelper::_('bootstrap.framework'); HTMLHelper::_('bootstrap.loadCss'); } if (is_readable(JPATH_SITE.'/components/com_contactenhanced/assets/css/custom.css')) { $doc->addStyleSheet(Uri::root().'components/com_contactenhanced/assets/css/custom.css'); } } } public static function loadJqueryUI() { HTMLHelper::_('jquery.framework'); $doc = Factory::getDocument(); $params = ComponentHelper::getParams('com_contactenhanced'); if($params->get('load_jqueryUI',1)){ foreach ($doc->_scripts as $key => $file) { if(strpos($key, 'jquery-ui.min.js') AND !defined('JQUERY_UI_JS_LOADED')) { define('JQUERY_UI_JS_LOADED',1); break; } } if (!defined('JQUERY_UI_JS_LOADED') && $params->get('load_jqueryUI')) { define('JQUERY_UI_JS_LOADED',1); if ($params->get('load_jqueryUI') == 1) { HTMLHelper::_('jquery.ui', array('core', 'widget','mouse')); } else { $doc->addScript('https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js'); } } } if($params->get('load_jqueryUI_theme','smoothness')){ foreach ($doc->_styleSheets as $key => $file) { if(strpos($key, 'jquery-ui.min.css') AND !defined('JQUERY_UI_CSS_LOADED')){ define('JQUERY_UI_CSS_LOADED',1); break; } } if (!defined('JQUERY_UI_CSS_LOADED') && $params->get('load_jqueryUI')) { define('JQUERY_UI_CSS_LOADED',1); if($params->get('load_jqueryUI') == 1) { if(is_readable(JPATH_ROOT.'/components/com_contactenhanced/assets/css/themes/'.$params->get('load_jqueryUI_theme','smoothness').'/jquery-ui.min.css')){ $doc->addStylesheet(Uri::root().'components/com_contactenhanced/assets/css/themes/'.$params->get('load_jqueryUI_theme','smoothness').'/jquery-ui.min.css'); }elseif(is_readable(JPATH_ROOT.'/components/com_contactenhanced/assets/css/themes/smoothness/jquery-ui.min.css')){ $doc->addStylesheet(Uri::root().'components/com_contactenhanced/assets/css/themes/smoothness/jquery-ui.min.css'); }else{ $doc->addStylesheet('https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/'.$params->get('load_jqueryUI_theme','smoothness').'/jquery-ui.min.css'); } } else { $doc->addStylesheet('https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/'.$params->get('load_jqueryUI_theme','smoothness').'/jquery-ui.min.css'); } } } } public static function loadJavascript(&$script,&$obj, $suffix='') { $doc =Factory::getDocument(); $javascript = ''; $rules = ''; if(count($script['rules'])){ $rules = "
    rules:{
        ".implode(",\n\t", $script['rules'])."
    },"; } $validation = "\n var validateCEForm = $('#ceForm{$obj->item->id}').validate({
        errorClass: 'ce-validation-error',
        success: function(label,element){},
        {$rules}
        submitHandler: function(form) {
        $('#ceForm{$obj->item->id} button[type=\"submit\"]').attr('disabled', 'disabled').html('" .addslashes( $obj->params->get('lang_override_submitting_form', Text::_('COM_CONTACTENHANCED_SUBMITTING_FORM') ) )."');
        form.submit();
    }
});"; $javascript = "
jQuery(document).ready(function($) {
    setTimeout(function(){var loadingImg=new Image();loadingImg.src = '".Uri::root()."components/com_contactenhanced/assets/images/loading-white.gif';},2000);
    $.validator.setDefaults({
        showTooltips: ".($obj->params->get('error_message_location') == 'tooltip' ? 'true' : 'false')."
    });
    $.extend($.validator.messages, {
        required:    '".Text::_('COM_CONTACTENHANCED_VALIDATION_ERROR_REQUIRED',true)."',
        remote:        '".Text::_('COM_CONTACTENHANCED_VALIDATION_ERROR_REMOTE', true)."',
        email:        '".Text::_('COM_CONTACTENHANCED_VALIDATION_ERROR_EMAIL', true)."',
        url:        '".Text::_('COM_CONTACTENHANCED_VALIDATION_ERROR_URL', true)."',
        date:        '".Text::_('COM_CONTACTENHANCED_VALIDATION_ERROR_DATE', true)."',
        dateISO:    '".Text::_('COM_CONTACTENHANCED_VALIDATION_ERROR_DATEISO', true)."',
        number:        '".Text::_('COM_CONTACTENHANCED_VALIDATION_ERROR_NUMBER', true)."',
        digits:        '".Text::_('COM_CONTACTENHANCED_VALIDATION_ERROR_DIGITS', true)."',
        equalTo:    '".Text::_('COM_CONTACTENHANCED_VALIDATION_ERROR_EQUALTO', true)."',
        maxlength:    $.validator.format('".Text::_('COM_CONTACTENHANCED_VALIDATION_ERROR_MAXLENGTH', true)."'),
        minlength:    $.validator.format('".Text::_('COM_CONTACTENHANCED_VALIDATION_ERROR_MINLENGTH', true)."'),
        rangelength:$.validator.format('".Text::_('COM_CONTACTENHANCED_VALIDATION_ERROR_RANGELENGTH', true)."'),
        range:        $.validator.format('".Text::_('COM_CONTACTENHANCED_VALIDATION_ERROR_RANGE', true)."'),
        max:        $.validator.format('".Text::_('COM_CONTACTENHANCED_VALIDATION_ERROR_MAX', true)."'),
        min:        $.validator.format('".Text::_('COM_CONTACTENHANCED_VALIDATION_ERROR_MIN', true)."')

Environment & details:

empty
empty
empty
empty
Key Value
joomla TzoyNDoiSm9vbWxhXFJlZ2lzdHJ5XFJlZ2lzdHJ5IjozOntzOjc6IgAqAGRhdGEiO086ODoic3RkQ2xhc3MiOjE6e3M6OToiX19kZWZhdWx0IjtPOjg6InN0ZENsYXNzIjo0OntzOjc6InNlc3Npb24iO086ODoic3RkQ2xhc3MiOjI6e3M6NzoiY291bnRlciI7aToxO3M6NToidGltZXIiO086ODoic3RkQ2xhc3MiOjM6e3M6NToic3RhcnQiO2k6MTUzOTc2ODAyMztzOjQ6Imxhc3QiO2k6MTUzOTc2ODAyMztzOjM6Im5vdyI7aToxNTM5NzY4MDIzO319czo4OiJyZWdpc3RyeSI7TzoyNDoiSm9vbWxhXFJlZ2lzdHJ5XFJlZ2lzdHJ5IjozOntzOjc6IgAqAGRhdGEiO086ODoic3RkQ2xhc3MiOjE6e3M6NzoiY21vYmlsZSI7Tzo4OiJzdGRDbGFzcyI6NDp7czo4OiJpc21vYmlsZSI7YjowO3M6ODoiaXNkZXZpY2UiO2I6MDtzOjY6ImRldmljZSI7czoyOiJ7fSI7czo5OiJkZXRlY3Rpb24iO086ODoic3RkQ2xhc3MiOjE6e3M6Njoic3lzdGVtIjtiOjA7fX19czoxNDoiACoAaW5pdGlhbGl6ZWQiO2I6MDtzOjk6InNlcGFyYXRvciI7czoxOiIuIjt9czo0OiJ1c2VyIjtPOjIwOiJKb29tbGFcQ01TXFVzZXJcVXNlciI6MTp7czoyOiJpZCI7aTowO31zOjE0OiJ2dmlzaXRfY291bnRlciI7Tzo4OiJzdGRDbGFzcyI6MTp7czo3OiJsYXN0bG9nIjtkOjE1Mzk3Njg2MDA7fX19czoxNDoiACoAaW5pdGlhbGl6ZWQiO2I6MDtzOjk6InNlcGFyYXRvciI7czoxOiIuIjt9
Key Value
DOCUMENT_ROOT /home/sakhizwe/public_html
GATEWAY_INTERFACE CGI/1.1
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING gzip
HTTP_AUTHORIZATION
HTTP_CONNECTION Keep-Alive
HTTP_HOST sakhizwe.co.za
HTTP_IF_MODIFIED_SINCE Thu, 16 Aug 2018 07:57:36 GMT
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
PATH /bin:/usr/bin
QUERY_STRING
REDIRECT_STATUS 200
REMOTE_ADDR 54.162.133.222
REMOTE_PORT 59432
REQUEST_METHOD GET
REQUEST_URI /
SCRIPT_FILENAME /home/sakhizwe/public_html/index.php
SCRIPT_NAME /index.php
SERVER_ADDR 198.154.255.44
SERVER_ADMIN webmaster@sakhizwe.co.za
SERVER_NAME sakhizwe.co.za
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE <address>Apache/2.2.26 (Unix) mod_ssl/2.2.26 OpenSSL/1.0.1e-fips DAV/2 mod_bwlimited/1.4 Server at sakhizwe.co.za Port 80</address>
SERVER_SOFTWARE Apache/2.2.26 (Unix) mod_ssl/2.2.26 OpenSSL/1.0.1e-fips DAV/2 mod_bwlimited/1.4
TZ America/Chicago
UNIQUE_ID W8b@1saa-ywAABheZ5oAAADE
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1539768022.85
REQUEST_TIME 1539768022
argv Array ( )
argc 0
Key Value
DOCUMENT_ROOT /home/sakhizwe/public_html
GATEWAY_INTERFACE CGI/1.1
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING gzip
HTTP_AUTHORIZATION
HTTP_CONNECTION Keep-Alive
HTTP_HOST sakhizwe.co.za
HTTP_IF_MODIFIED_SINCE Thu, 16 Aug 2018 07:57:36 GMT
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
PATH /bin:/usr/bin
QUERY_STRING
REDIRECT_STATUS 200
REMOTE_ADDR 54.162.133.222
REMOTE_PORT 59432
REQUEST_METHOD GET
REQUEST_URI /
SCRIPT_FILENAME /home/sakhizwe/public_html/index.php
SCRIPT_NAME /index.php
SERVER_ADDR 198.154.255.44
SERVER_ADMIN webmaster@sakhizwe.co.za
SERVER_NAME sakhizwe.co.za
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE <address>Apache/2.2.26 (Unix) mod_ssl/2.2.26 OpenSSL/1.0.1e-fips DAV/2 mod_bwlimited/1.4 Server at sakhizwe.co.za Port 80</address>
SERVER_SOFTWARE Apache/2.2.26 (Unix) mod_ssl/2.2.26 OpenSSL/1.0.1e-fips DAV/2 mod_bwlimited/1.4
TZ America/Chicago
UNIQUE_ID W8b@1saa-ywAABheZ5oAAADE
0. Whoops\Handler\PrettyPageHandler