I am getting the following error message on my Joomla site:
Fatal error: require(): Cannot redeclare class mailtohelper in /home/web/public_html/joomla/components/com_content/helpers/icon.php on line 84
Any help is appreciated
I am getting the following error message on my Joomla site:
Fatal error: require(): Cannot redeclare class mailtohelper in /home/web/public_html/joomla/components/com_content/helpers/icon.php on line 84
Any help is appreciated
A 3rd party extension is causing this. The mailtohelper shouldn't be invoked directly. Just use the Joomla mail object:
$mailer = JFactory::getMailer();
instead of
require ('file_path_here');
try using
require_once('file_path_here');
Whenever you need any file to be included in the current page then remember,
require() includes file that previously been included. require_once() ignore the file if it is previously been included in the same page.
try to figure out difference between include(), include_once(), require(), require_once() then use whichever is best for you.