Posts: 36
Threads: 13
Joined: Jul 2012
Hi,
I am using Commentics included in my pages.
When I use the 'Recent Comments' add-on on just 1 page, it works fine.
When I include it in more than 1 page, I'm getting an error as :
Code:
Notice: Constant IN_COMMENTICS already defined in /home/domain/domains/mydomain.com/public_html/lib/classes/class.usertagoperations.inc.php(265) : eval()'d code on line 1
This is a directory/file of my cms.
Is there a way to prevent this error?
Thanks
JohN
Posts: 2,904
Threads: 59
Joined: Jun 2010
Have
you completed
the interview?
Posts: 36
Threads: 13
Joined: Jul 2012
Posts: 36
Threads: 13
Joined: Jul 2012
I'm not getting the logic of these errors.
What is tried is:
I've placed the code for the Recent Comments as a test in a separate php file.
Removed the add-om from the home page and placed it only on an other page. The page is not a sub page but root as well. I've include the test page with [include 'core/com/nl/comments/test.php';]
The errors come up:
Code:
Notice: Constant IN_COMMENTICS already defined in /public_html/core/com/nl/comments/test.php on line 2
Notice: Undefined variable: cmtx_mysql_table_prefix in public_html/core/com/nl/comments/test.php on line 9
If I place [include 'core/com/nl/comments/test.php';] on the home page, it works fine.
I am aware that it seems to be a problem of my cms but as the add-on works fine on the home page, I have hope that it could be solved.
Posts: 2,904
Threads: 59
Joined: Jun 2010
Have
you completed
the interview?
Posts: 2,904
Threads: 59
Joined: Jun 2010
Have
you completed
the interview?
Posts: 36
Threads: 13
Joined: Jul 2012
I have tried the
Code:
global $cmtx_mysql_table_prefix;
option, with no result.
I have noticed that I get a bunch of 'Notices' but the data is displayed correctly in between. All new entries are shown as in:
Code:
Notice: Constant IN_COMMENTICS already defined in /public_html/lib/classes/class.usertagoperations.inc.php(265) : eval()'d code on line 1
Notice: Undefined variable: cmtx_mysql_table_prefix in /public_html/lib/classes/class.usertagoperations.inc.php(265) : eval()'d code on line 4
Name: ........
From: ....
At: .....
Remains very strange that all works nice on the home page but the module refuses to do it's job at every other page. (even as a copy of the home page)
So I thought that turning all php error messaging of, would do the trick.
But that did not keep the notices away.
Though shutting off the error reports should not be the way to go, I'd appreciate it if you have a working option to keep the messages away.
Thanks
Posts: 1
Threads: 0
Joined: Mar 2023
Is this add-on still available? I cannot find any references to add-ons on the site.
Posts: 2,904
Threads: 59
Joined: Jun 2010
Hi Peter, yes it's now known as 'Extractor' and it's available in the Client Area if you have a licence.
https://commentics.com/clients
Have
you completed
the interview?