(Note: This post is a reworking of a post at the Commentics forum.)
Hi all. I am reasonably proficient in PHP and HTML, but I recently became unhappy with one server I was using. I created an account here, and all seemed to be well until I tried to use the Commentics script. I didn't use it on my old server, but thought it would be good to implement for the new one. The script worked fine during local testing using a PHP module installed in Apache. When I uploaded what I had done to the new server, I got:
I have searched this forum for similar errors, but the vBulletin search returned:
You guys familiar with CGI servers can probably solve this one quickly. My sever has a "cgi-bin" folder, and I've read online posts about having to run PHP scripts from that folder. I really don't understand running PHP as a CGI module. Will I have to run it from that folder? I don't really understand, if so, since my site's pages have a PHP extenstion, and they run just fine.
Anyway, to further try to chase down the problem, I made a script to test to see if the file is there:
It prints:
I am also somewhat mystified that my script does not generate the full error, but the integration code does.
My integration code is:
My commentics script installed just fine.
I saw a post, claiming you were running PHP in safe mode for free accounts; but someone replying denies this. The post that poster was referring to was talking about a popen function that was disabled, and would not be enabled for free accounts. Perhaps they have disabled "require"?
I suppose there is a Softaculous script to do something similar; and I'm open to considering one. I don't know what it would be, and I am now curious to find out the nature of this problem
Hi all. I am reasonably proficient in PHP and HTML, but I recently became unhappy with one server I was using. I created an account here, and all seemed to be well until I tried to use the Commentics script. I didn't use it on my old server, but thought it would be good to implement for the new one. The script worked fine during local testing using a PHP module installed in Apache. When I uploaded what I had done to the new server, I got:
Fatal error: require_once() [function.require]: Failed opening required 'includes/variables/set_variables.php' (include_path='.:/usr/local/php53/pear') in /home/behindth/public_html/comments/includes/commentics.php on line 31
I have searched this forum for similar errors, but the vBulletin search returned:
The following words are either very common, too long, or too short and were not included in your search:
"failed opening required"
You guys familiar with CGI servers can probably solve this one quickly. My sever has a "cgi-bin" folder, and I've read online posts about having to run PHP scripts from that folder. I really don't understand running PHP as a CGI module. Will I have to run it from that folder? I don't really understand, if so, since my site's pages have a PHP extenstion, and they run just fine.
Anyway, to further try to chase down the problem, I made a script to test to see if the file is there:
PHP:
<?php
if (file_exists("comments/includes/commentics.php")) {
print "File exists!\n";
} else {
print "File does not exist!\n";
}
require "comments/includes/commentics.php";
?>
It prints:
File Exists.
Access denied.
I am also somewhat mystified that my script does not generate the full error, but the integration code does.
My integration code is:
PHP:
<?php
$page_id = "1";
$reference = "test";
$path_to_comments_folder = "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
?>
My commentics script installed just fine.
I saw a post, claiming you were running PHP in safe mode for free accounts; but someone replying denies this. The post that poster was referring to was talking about a popen function that was disabled, and would not be enabled for free accounts. Perhaps they have disabled "require"?
I suppose there is a Softaculous script to do something similar; and I'm open to considering one. I don't know what it would be, and I am now curious to find out the nature of this problem