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

Error integrating commentics in my page
#1

I've installed Commentics without any problems.All seems to be ok but when I try to integrate the script in a page I get this error:
Fatal error: require() [function.require]: Failed opening required 'comments/includes/commentics.php' (include_path='.:/usr/local/php/lib/php') in /home/u7101974/mysite.com/mediaplayer/test.php on line 29I
Reply
#2

Hello, Enrik, and welcome to the forums!
It seems like you have the wrong path in the integration part. If you are trying to access the comment script from a higher directory, then you'll need to edit the path to include "../" to go up a directory.
E.G. Page located here: http://www.example.com/mediaplayer/test.php
Commentics directory here: http://www.example.com/comments/
Needed path:
PHP Code:
<?php 
$path_to_comments_folder
= "../comments/";

I'm giving you three guesses...
Reply
#3

It works now after changing of the path. Thank you so much!
Reply
#4

I also have error

Fatal error: require() [function.require]: Failed opening required '/comments/includes/commentics.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a2244954/public_html/default.php on line 84

Help ! Rolleyes
Reply
#5

Hi,

1. Can you post your integration code.
2. Do you have the folder: yoursite.com/comments/

Have you completed the interview?
Reply
#6

(26-Apr-2011, 10:27 AM)Steven Wrote:  Hi,

1. Can you post your integration code.
2. Do you have the folder: yoursite.com/comments/

I fxed the error

<?php
$page_id = "1";
$reference = "Page One";
$path_to_comments_folder = "commentics/comments/";
define ('IN_COMMENTICS', 'true'); //no need to edit this line
require $path_to_comments_folder . "includes/commentics.php"; //no need to edit this line
?>

i had to put my folder where comments was located in front of path to comments which is commentics

but now i cant cant chmod my connect.php to 444 any idear? It just keeps reverting back to 655 using 000webhost.com.

Reply
#7

Try opening your site control panel (e.g. cPanel) where a feature such as 'File Manager' should be available. Using that, navigate to the file and set the 444 permission.

If you can't do that then try this suggestion:
http://www.commentics.org/forum/showthre...79#pid1679

As a last resort you can do this:
http://www.commentics.org/forum/showthread.php?tid=213

Have you completed the interview?
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
04-Jul-2020, 06:46 PM
Last Post by MattyP
13-Apr-2020, 08:33 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)