an error occurred whil processing this directive

mharris1969

Registered
Jul 30, 2006
1
0
151
St. Louis, MO.
Hello all,

I am new to using cpanel, so thank you in advance for being patient with me. I just uploaded my new website, and am getting the 'an error occurred whil processing this directive' on my index.shtml page. My navbar is an includes file, and it's the only piece not showing up on my site.

Any help is most appreciated.

Thanks,
mharris1969
 

inalto

Member
Mar 27, 2004
22
0
151
Look in your index.shtml there is a line like this:

<!--#include virtual="/navbar.shtml" -->

check the path file with your browser, lynx or wget http://yourhost.ws/navbar.shml to see if you can access it.
Maybe you cant reach that file (if you can avoid spaces in filenames, use "_" instead. for example use nav_bar.shtml instead nav bar.shtml

Check if the navbar.shtml permissions are ok. You must be the owner of navbar.shml and permissions should be like 644, avoid 777.

If you navbar uses cgi within (like perl scripts) check that scripts are in a sub-directory with Options +ExecCGI enabled in the .htaccess (or in cgi-bin of course) and with execution permissions for the owner of the file.

If you include a cgi, pay attention to the header of the generated file, the first line should be "Content-type: text/html" + "\n"

Hope it helps :)