After adding the script into an existing HTML page (extension switched to .php), after re-uploading the page displays blank. I'm pretty sure my directory path is correct using ../comments/ Tried using ./comments/ but got a bunch of error messages. I don't have access to cPanel or Plesk to do a chmod (to 777), so would that matter? Please help. I can include the entire page code in a new thread if needed. Thanks!
Warning: main(./comments/engine.php): failed to open stream: No such file or directory in /home/content/j/e/f/jefg2007/html/Logos-Identity/GK_overview_identity.php on line 3
Fatal error: main(): Failed opening required './comments/engine.php' (include_path='.:/usr/local/lib/php') in /home/content/j/e/f/jefg2007/html/Logos-Identity/GK_overview_identity.php on line 3
CHMOD is required if php is unable to write to path where it needs to write some data. It all depends on your web server configuration, but in most cases CHMOD is required.
The error says it all: File "engine.php" can not be found on a path you provided (./comments/engine.php). You will need to find out correct path to the comments/ folder and place it in the "CS_COMMENTS_PATH" constant.
According to the error message you posted, Comments script should be located at /home/content/j/e/f/jefg2007/html/Logos-Identity/comments/ (this is absolute path on your server)
Hi Avram, Thanks for the feedback! I have many folders in the website each with their own index page. Does this mean that I have to install Pro Add Comments into every separate folder that will be needing the comment feature? Or can I have Pro Add only in the root and have a different directory path back to the Pro Add engine for each different folder? My scripting skills are not anywhere near expert, I'm a graphic designer. Per the Pro Add instructions, I tried several different variations of directing to the comments file - ../../comments/ etc... to no avail. Any other suggestions or advise is greatly appreciated. Thanks again! Jef
No, of course you don't need to install separate script per each folder. You just need to change the value of CS_COMMENTS_PATH, just the way you tried ("./comments/" for current directory level, "../comments/" for sub-directory, "../../comments" for sub-sub-directory, etc...).
You said that you have tried using "./comments/" but got a bunch of error messages? What error messages? Maybe the path was fine but something else wasn't correct?
Also, it would be better to open support ticket and provide as much data as you can - it would be faster and we can keep track of your problems with our script.
It depends on your server configuration what your CS_COMMENTS_PATH would be set to. On most web servers the default code (one you quoted) will work. If you have problems integrating our software please open support ticket and provide as many information as you can.