Posts: 8
Threads: 1
Joined: Apr 2015
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
Posts: 2,894
Threads: 59
Joined: Jun 2010
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?
Posts: 8
Threads: 1
Joined: Apr 2015
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
Posts: 2,894
Threads: 59
Joined: Jun 2010
You need to run the installer to generate the database details file.
http://domain.co/upload/installer/database.php
Have
you completed
the interview?
Posts: 8
Threads: 1
Joined: Apr 2015
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
Posts: 2,894
Threads: 59
Joined: Jun 2010
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?
Posts: 8
Threads: 1
Joined: Apr 2015
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.
Posts: 2,894
Threads: 59
Joined: Jun 2010
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?