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

not connecting to database
#1

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!
Reply
#2

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?
Reply
#3

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.
Reply
#4

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?
Reply
#5

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 ...Smile
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by amwassil
06-Jan-2018, 01:13 AM
Last Post by angeljs
21-May-2012, 01:58 PM
Last Post by jbsmith
10-Mar-2012, 02:31 AM
Last Post by iwede
07-Jan-2012, 05:29 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)