This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Fatal error: Cannot redeclare htmLawed()
#1

Hi,

I would like to use Commentics with our CMS (Concrete5). After the installation, I get the following message when trying to post a comment:

Fatal error: Cannot redeclare htmLawed() (previously declared in /var/www/ourcms/updates/concrete5.6.1.2_updater/concrete/libraries/3rdparty/htmLawed.php:12) in /var/www/comments/includes/htmLawed/htmLawed.php on line 113[/color]

I can understand that htmLawed() is declared twice (one time with Concrete5 and one time with Commentics) but I don't know how to solve this issue.

Do somebody know a way to solve this?

Thank you,
Reply
#2

Hi denilama,

What happens if you open /comments/includes/functions/processor.php and change this (line 949):

PHP Code:
<?php 
require_once $cmtx_path . 'includes/htmLawed/htmLawed.php'; //load htmLawed script

To this:

PHP Code:
<?php 
if (!function_exists('htmLawed')) {
require_once
$cmtx_path . 'includes/htmLawed/htmLawed.php'; //load htmLawed script
}

Have you completed the interview?
Reply
#3

Thank you very much Steven. This has solved my problem.
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by MattyP
11-Apr-2020, 08:08 PM
Last Post by CommiC
13-Aug-2012, 09:16 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)