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

Blank page when integrating
#1

Hi Steven,

Thank you for your help. I was able to install system. But I am still not able to make it work.

I placed following codes in a test page on website (http://companyinfoz.com/test.php) :

<?php
session_start();
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<?php
$cmtx_identifier = '1';
$cmtx_reference = 'Page One';
$cmtx_folder = '/comments/';
require($_SERVER['DOCUMENT_ROOT'] . $cmtx_folder . 'frontend/index.php');
?>

Page is appearing blank. I do not see any php error also, Any idea how can I fix this ?

Regards,

Kumar
Reply
#2

Thanks Steven,

Please suggest possible solution.
Reply
#3

Okay it might be that your server is suppressing the PHP error from displaying.

Try using the example.php file in the download package. It has all the HTML that your test.php file is missing.

Then change the integration code to this:

PHP Code:
<?php
$cmtx_identifier
= '1';
$cmtx_reference  = 'Page One';
$cmtx_folder     = '/comments/';

echo
$_SERVER['DOCUMENT_ROOT'] . $cmtx_folder . 'frontend/index.php';

if (
file_exists($_SERVER['DOCUMENT_ROOT'] . $cmtx_folder . 'frontend/index.php')) {
echo
'<br>File exists';
} else {
echo
'<br>File does not exist';
}

require(
$_SERVER['DOCUMENT_ROOT'] . $cmtx_folder . 'frontend/index.php');
?>

It will display the path to the file that it's trying to include and whether it exists or not.

Also try this FAQ:
https://www.commentics.org/support/knowl...article=15

Have you completed the interview?
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by drwx
29-Jun-2023, 09:34 AM
Last Post by Steven
04-Jul-2020, 06:46 PM
Last Post by MattyP
13-Apr-2020, 08:33 PM
Last Post by Steven
04-Mar-2016, 06:53 PM
Last Post by Steven
21-Sep-2015, 05:40 PM
Last Post by Steven
10-Jul-2015, 07:24 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)