PDA

View Full Version : shtml virtual include not working


CPMinga
6-14-06, 09:45 AM
Hey there,

I've just been migrated to the new platform. I'm using the following line in an .shtml file

<!--#include virtual="site-files/archives/000434.php" -->

as I have been for months now. It seems, though, after the migration it no longer works.

Any thoughts? That is the sole content of the .shtml file but when I load it in a browser, I just get a blank page.

snobrega
6-14-06, 10:54 AM
What's your domain? We can't check into this without that info.

Thanks!

Sally

CPMinga
6-14-06, 11:35 AM
flying-glove.com

I should add that pointing to an html file works. But apparently not a php file

snobrega
6-14-06, 11:59 AM
I took a look at your directory structure on the server and I don't see that PHP file that you're trying to include. What's the full path for the file you're looking for, not just the relative path?

Also, what's the URL for the file that's using the include?

Sally

CPMinga
6-14-06, 12:04 PM
http://flying-glove.com/john/index.shtml

is trying to load

http://flying-glove.com/john/site-files/archives/000434.php

snobrega
6-14-06, 12:30 PM
Ok, we're working on this. Getting an error message now, but that should allow us to dig into the logs.

Stay tuned.

Sally

CPMinga
6-14-06, 02:36 PM
looks like someone got it working! Thanks for the help! For future refference, was something changed localy to my account that I need to be aware of?

snobrega
6-14-06, 02:59 PM
Nope, this wasn't account specific. We adjusted an Apache setting and everyone doing virtual includes for PHP files should have no trouble. One thing we did need to change was putting the /john/ folder in the file path.

Sally

maxx85
6-14-06, 05:53 PM
snobrega Hi, I have the same problem. I have included until yesterday PHP scripts in htm html static pages. Now after the migration they don't work any more. How can?
In the .htaccess I have
AddType Type application/x-httpd-php .htm
AddType server-parsed .html

I used to have AddHandler istead of AddType.

What can I Do?

Max

tbonekkt
6-14-06, 05:58 PM
snobrega Hi, I have the same problem. I have included until yesterday PHP scripts in htm html static pages. Now after the migration they don't work any more. How can?
In the .htaccess I have
AddType Type application/x-httpd-php .htm
AddType server-parsed .html

I used to have AddHandler istead of AddType.

What can I Do?Use the following:AddType application/x-httpd-php html htm

maxx85
6-14-06, 06:41 PM
tbonekkt Many thanks. Now the parse works. But old pages with spaces like this one don't work anymore.

http://www.londraweb.com/alloggio%20a%20Londra.htm

:(

I know I have to be patient for this migration. I just hope it could be solved soon. :( I also have a wordpress blog that does not work anymore properly. The posts alwyas redirects to the home page
http://blog.londraweb.com/paul-weller-quando-lo-stile-sale-sul-palco/

thanks again for your help

Massimo

maxx85
6-14-06, 07:38 PM
Maybe AllowOverride directive is set to None in Apache httpd.config file ?

maxx85
6-14-06, 08:55 PM
Hi all
AllowOverride directive is set to None on htdocs in Apache httpd.config file. My wordpress permalinks are not working since the migration because of that.

Please Help

Massimo

Jeff321
6-15-06, 01:35 AM
Where are you seeing the httpd.config file? .htaccess files are working fine for me if that's what problem you're having.

maxx85
6-15-06, 09:10 AM
Hi all,
hope someone from endurance/powweb can help on this issue. I have old pages idexed by google and other search engines which have spaces that the browser like internet explorer see as %20. Now, since my site migrated either I use AddType to include PHP scripts in html pages, or I delete AddType in .htaccess and the old pages with spaces work fine.

What can I do? Thanks in advance for any help.

Max

Ps. This is my .htaccess

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName XXXXXX
AuthUserFile /home/users/web/b1141/pow.XXXXX/htdocs/_vti_pvt/service.pwd
AuthGroupFile /home/users/web/b1141/pow.XXXXX/htdocs/_vti_pvt/service.grp
AddType application/x-httpd-php html htm
AddType server-parsed .html

rtoohil
6-15-06, 09:20 AM
I know I have to be patient for this migration. I just hope it could be solved soon. :( I also have a wordpress blog that does not work anymore properly. The posts alwyas redirects to the home page
http://blog.londraweb.com/paul-weller-quando-lo-stile-sale-sul-palco/
Massimo

There's a fix for the WordPress problem (assuming this is WordPress 2.0). You need to change one variable in a WordPress file:

open up wp-includes/classes.php

and change:

$use_verbose_rules = false;

to

$use_verbose_rules = true;

Log into your WP Admin, go to Options/Permalinks, and resave. That should make your .htaccess file much bigger, but your permalinks should all just work.

maxx85
6-15-06, 10:41 AM
rtoohil thanks for the tip. Unfortunately it did not work. The permalinks appears in the URL but somehow they show only the home page again and again. :confused:

rtoohil
6-15-06, 04:06 PM
rtoohil thanks for the tip. Unfortunately it did not work. The permalinks appears in the URL but somehow they show only the home page again and again. :confused:

I just checked your site. Doesn't look like you'd made the change.

If you resave the permalink option now, you should get a new .htaccess file generated and it should all work.

terpenjj
7-22-06, 10:34 PM
Nope, this wasn't account specific. We adjusted an Apache setting and everyone doing virtual includes for PHP files should have no trouble. One thing we did need to change was putting the /john/ folder in the file path.

Sally

Hi, Sally.

I am having the same problem as well. My slideshows worked before the migration, but now they won't work. Here is the url: http://www.terpennings.com/terpennings/josselyn2003.shtml.

Can you help?

Thank you.

James