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

Integration not working.
#1

I have uploaded and integrated. It didn't work.

Here is the example page. The page is there, but no comments:

http://animalsandwildlife.co/test.html

Can anyone suggest how to fix this?

Thanks
Reply
#2

Hi JMunce,

Please take the time to read the detailed installation and integration guides that I wrote.

1. It looks like you've uploaded the whole /commentics/ folder but you're only meant to upload the /upload/ folder inside it. See here for more info.

2. Your file is a HTML file. If you view the source of the page then you'll see that the PHP code isn't being executed. You should either change the file extension to PHP or modify your website's .htaccess file so that it executes. See here for more info.

3. Due to your current setup (see point 1) the $cmtx_path value in your integration code should be 'commentics/upload/'.

Have you completed the interview?
Reply
#3

Thanks, Steven,

I am attempting to try that. I have deleted commentrics folder from my public.html, and I deleted and created anew my database.

I upped just the Upload folder to my public. But when I go to http://domain.co/upload/admin/ it looks like it still remembers the old install;

Quote:Commentics
Sorry, there is a database details problem.
If you haven't yet installed the programme
You need to run the installer
If you have already installed the programme
Check that /db/details.php exists

I tried deleting all the files form my FTP, but the message persists. How can I start from scratch?

Thanks
Reply
#4

You need to run the installer to generate the database details file.

http://domain.co/upload/installer/database.php

Have you completed the interview?
Reply
#5

I have tried this.

I just get the message:

Sorry, there is a database connection error:
1044: Access denied for user 'USERNAME'@'localhost' to database 'commentics'
This error appears to be because your username is wrong.
The following are steps to help fix it:
(a) Open the file /db/details.php
(b) Check the value of $cmtx_mysql_username
© Does it match with your MySQL username?

I tried creating a new database and a new user. The message I get is the same. I can't find /db/details.php I can't find this on my site.

How can I totally remove commentics from my site so I can start again please?

Thanks
Reply
#6

1. Delete the whole /upload/ folder. (Make sure to rename this to something more descriptive next time).
2. After deleting the whole /upload/ folder, make sure that the /upload/includes/db/details.php file is deleted. This is set to have read-only permissions after it's created by the script which can mean that it's not deletable without first changing its permissions back to writeable.
3. Delete and create a new database.

Have you completed the interview?
Reply
#7

I again deleted the files and db, and reinstalled them.

The install seems to work.

However, when I try out the example page (after directing:
$cmtx_path = 'commenticsfolder/';

I just get an error still:

Warning: require_once(commenticsfolder/includes/variables/set_variables.php) [function.require-once]: failed to open stream: No such file or directory in /home/animalsa/public_html/commenticsfolder/includes/commentics.php on line 41

Fatal error: require_once() [function.require]: Failed opening required 'commenticsfolder/includes/variables/set_variables.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/animalsa/public_html/commenticsfolder/includes/commentics.php on line 41

However, commentics.php IS at that location.
Reply
#8

The error isn't saying that commentics.php is not at that location. It's saying that set_variables.php is not at that location.

So it's likely that the value of the $cmtx_path variable is the issue.

1. Can you post the URL of the page where you're seeing that error.

2. Can you post your full integration code (the code that looks like this):

PHP Code:
<?php
$cmtx_identifier
= '1';
$cmtx_reference = 'Page One';
$cmtx_path = 'upload/';
require
$cmtx_path . 'includes/commentics.php'; //don't edit this line
?>

Have you completed the interview?
Reply
#9

The URL is http://animalsandwildlife.co/example.php

The code right now is:

<?php
$cmtx_identifier = '1';
$cmtx_reference = 'Page One';
$cmtx_path = 'commenticsfolder/';
require $cmtx_path . 'includes/commentics.php'; //don't edit this line
?>
Reply
#10

1. Have you checked if the file /commenticsfolder/includes/variables/set_variables.php exists on your server?

2. What happens if you change the $cmtx_path line to this:

PHP Code:
<?php 
$cmtx_path
= str_replace('\\', '/', realpath(__DIR__)) . '/commenticsfolder/';

If the above doesn't help then it may be easier if you provide FTP details at the link below:

http://www.commentics.org/support/index.php?a=add

Have you completed the interview?
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by paulkienitz
06-Dec-2024, 08:53 PM
Last Post by nsuomine
20-Jan-2023, 08:32 AM
Last Post by Steven
23-Jan-2019, 02:07 PM
Last Post by mtnlvy
06-Jan-2019, 06:29 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)