Posts: 9
Threads: 4
Joined: Feb 2017
Hi Steve
My installation completed successfully w v3.1
However, I am unable to connect to the database with the examples provided.
see
https://rxight.com/wp-content/themes/sal...ample1.php
Could you assist?
Many thanks!
Posts: 2,894
Threads: 59
Joined: Jun 2010
Hi wmbower,
How are you certain it's a database connection issue? Have you opened the config.php file (commentics-31/config.php) to verify your connection details are correct?
Can you try turning on error reporting? See link below. On the 'Settings -> Error Reporting' page follow the link to view the error log.
https://www.commentics.org/support/knowl...article=15
Have
you completed
the interview?
Posts: 9
Threads: 4
Joined: Feb 2017
Hi Steven
Checked config.php and the connection details are correct. I turned on error reporting through the admin panel and set output to both screen and file. However, nothing was returned on the screen and nothing returned as a file.
Posts: 2,894
Threads: 59
Joined: Jun 2010
What's the value of the $cmtx_folder variable in your integration code? It looks like you have the example1.php file inside the Commentics folder.
Have
you completed
the interview?
Posts: 9
Threads: 4
Joined: Feb 2017
value of $cmtx_folder was "upload" and example1.php was outside the commentics folder
I got it to work by changing path:
<?php
$cmtx_identifier = '1';
$cmtx_reference = 'Page One';
$cmtx_folder = 'wp-content/themes/salient/commentics-31/upload/';
require($_SERVER['DOCUMENT_ROOT'] . $cmtx_folder . 'frontend/index.php');
?>
<?php
$cmtx_folder = 'wp-content/themes/salient/commentics-31/upload/';
require_once($_SERVER['DOCUMENT_ROOT'] . $cmtx_folder . 'extractor.php');
$extractor = new extractor($cmtx_folder);
..
hank you again! Great product ...