Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Shared Hosting Support

Notices

Reply
 
Thread Tools
  #1  
Old 01-20-2012, 12:18 PM
Webbie2 Webbie2 is offline
Hatchling Croc
 
Join Date: Jan 2012
Posts: 5
Default Includes are simply not working

I have been tearing my hair out trying to get includes files to work. I use the syntax <!--#include virtual="/includes/name-of-include.shtml" --> It simply DOES NOT WORK. I can see the code on the uploaded page, but nothing is pulled in to show. You can see two examples at http://www.californiarendezvous.com/...a-del-mar.html . One is just above <h1> and one is at the bottom of the text column. The top one is an ad, the bottom is a table with images and text. I have also noticed that my Includes files have become corrupted. Here is a link from one of them: <a href="%20../romantic-picnic-ideas.html"> . (I fixed the above-noted includes before re-loading.) I don't know if the two issues are related, but it is suspicious. My gut feeling is that the very first Help person who "helped" ("J") did not help, but rather messed up the File Manager. I have been having recurring problems that absolutely stop me in my tracks for hours at a time. This is not normal. I tried submitting a Help ticket and got no response at all. Honestly, the only reason I am still here is because a colleague whose opinion I value tells me that HG is the best on the planet.
Reply With Quote
  #2  
Old 01-20-2012, 02:48 PM
bcaa8ra bcaa8ra is offline
Junior Croc
 
Join Date: Aug 2008
Location: Sarasota, FL
Posts: 106
Default Re: Includes are simply not working

You have to make sure the files have executable attributes.
__________________
Bernie Clark
MAKO Web Sales LLC
Sarasota Florida’s Only Certified Paypal Developer!

Sarasota: 941-870-2271
Toll Free: 877-625-6932
http://www.makoweb.com
Reply With Quote
  #3  
Old 01-20-2012, 03:02 PM
EarlyOut's Avatar
EarlyOut EarlyOut is online now
King Croc
 
Join Date: Aug 2009
Location: Sector R
Posts: 1,475
Default Re: Includes are simply not working

You might also find that you have to give the calling page a .shtml extension, like:

5-crowns-corona-del-mar.shtml
Reply With Quote
  #4  
Old 01-21-2012, 12:16 AM
Webbie2 Webbie2 is offline
Hatchling Croc
 
Join Date: Jan 2012
Posts: 5
Default Re: Includes are simply not working

The files worked just fine on another host, so I have to believe they are executable.

Thanks, Early Out, but I cannot imagine that a host as big as HG would force me to change every single page to an shtml page, and then create hundreds of redirects. That doesn't sound real. My gut is still telling me there is something wrong in the initial setup.
Reply With Quote
  #5  
Old 01-21-2012, 12:27 AM
EarlyOut's Avatar
EarlyOut EarlyOut is online now
King Croc
 
Join Date: Aug 2009
Location: Sector R
Posts: 1,475
Default Re: Includes are simply not working

Why not just try my suggestion? It's not really a philosophical question, after all!
Reply With Quote
  #6  
Old 01-21-2012, 12:30 AM
EarlyOut's Avatar
EarlyOut EarlyOut is online now
King Croc
 
Join Date: Aug 2009
Location: Sector R
Posts: 1,475
Default Re: Includes are simply not working

Some light reading:

http://support.hostgator.com/article...-side-includes

There's a way to avoid it, but it's not recommended because of the processing overhead it generates:

http://support.hostgator.com/article...ng-html-as-php
Reply With Quote
  #7  
Old 01-24-2012, 10:59 PM
buzznet buzznet is offline
Hatchling Croc
 
Join Date: Mar 2005
Posts: 1
Default Re: Includes are simply not working

I've been using includes on my .shtml pages for years and in the past couple of weeks all of the executable (php and cgi) included files stopped working. Now in place of the data formally returned by the php or cgi, I get [an error occurred while processing this directive]. My work-around for those pages that were pulling php files was to use php includes and convert the shtml page to a php page. However, I have no solution for the pages that use includes to pull in cgi. I am very surprised I can't find any reports of similar problems since this would appear to be a server-wide behavior change and includes are such a common practice.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSI server side includes not working. Jesse Smith Linux VPS Support 2 12-07-2010 02:02 PM
Since primary domain change and SSL, includes now not working. apples Shared Hosting Support 10 05-08-2009 08:37 AM
My includes all stopped working!! darrenii Shared Hosting Support 6 07-04-2008 03:07 AM
Server Side Includes no longer working dukes Network Status 3 05-09-2008 02:08 AM

All times are GMT -5. The time now is 08:10 AM.