Zen Cart Logo
Forums / General Questions / What file calls csshover.htc?

What file calls csshover.htc?

Locked

Views: 3,906

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
28 Mar 2009, 8:43 AM
#1
pjgscrap avatar

pjgscrap

New Zenner

Join Date:
Aug 2008
Posts:
40
Plugin Contributions:
0

What file calls csshover.htc?

I'm having a problem with csshover.htc in IE where "Error: Access is denied to:
http://pjgscrapbookheaven.com/csshover.htc"

I'm trying to figure out while file is calling csshover.htc so that I can change the path calling the file.

I should also note that this error appears on either the https://www.pjgscrapbookheaven.com or the pjgscrapbookheaven.com, whichever way I do not have it in includes/configure.php.

If anyone knows where the file is being called or another possible solution besides using mod rewrite to change the .htaccess file please let me know.

28 Mar 2009, 8:53 AM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: What file calls csshover.htc?

The file is usually called in the stylesheet.

Read the install instructions that come with the particular add-on you are using that requires this htc file.

also... look at this thread:
http://www.zen-cart.com/forum/showthread.php?t=115855

28 Mar 2009, 9:29 AM
#3
pjgscrap avatar

pjgscrap

New Zenner

Join Date:
Aug 2008
Posts:
40
Plugin Contributions:
0

Re: What file calls csshover.htc?

It's not in my stylesheet.css, or at least I cannot find a reference to it in there.

28 Mar 2009, 9:42 AM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: What file calls csshover.htc?

Have you used:

admin>>>tools>>>developers toolkit

... to find possible references to that htc file ?

28 Mar 2009, 9:50 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: What file calls csshover.htc?

pjgscrap:

I'm having a problem with csshover.htc in IE where "Error: Access is denied to:
http://pjgscrapbookheaven.com/csshover.htc"

I should also note that this error appears on either the https://www.pjgscrapbookheaven.com or the pjgscrapbookheaven.com, whichever way I do not have it in includes/configure.php.
Looks like you need a rewrite rule in your .htaccess to insert the www. into the URL if the visitor hasn't typed it themselves.

pjgscrap:

I'm trying to figure out while file is calling csshover.htc so that I can change the path calling the file.

If anyone knows where the file is being called ...
It's the wrong approach, but ... to answer your question about where it's called from, it's in your stylesheet files ... maybe not in stylesheet.css, but in one of your .css files. (ie: you likely have several .css files in your CUSTOM_TEMPLATE/css/ folder ... start there)
eg: /includes/templates/sophyblue/css/stylesheet_categories_menu.css
pjgscrap:

... or another possible solution besides using mod rewrite to change the .htaccess file please let me know.
Honestly, the best solution (if you need to keep the csshover at all) is a fix to .htaccess to make sure all your URLs are always including the "www." prefix (OR always NOT including it if your configure.php files don't use it). Pick one URL style, and stick with it (in both your .htaccess and configure.php) ... best to use whatever your SSL is required to use, to keep it simple.
It doesn't require "mod_rewrite", just the apache rewrite-engine. There are multiple threads here on the forum discussing the csshover challenges. It's a good thing the csshover file is generally only needed for out-of-date browsers like IE6.

If you go changing the calling path in the .css file, you're going to run into the same headaches.
The problem is not a CSS issue ... it's a browser+permissions issue. The only solution is to fix the URL used by the visitor. Or remove the requirement altogether.

28 Mar 2009, 9:51 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: What file calls csshover.htc?

schoolboy:

Have you used:

admin>>>tools>>>developers toolkit

... to find possible references to that htc file ?

If I recall correctly, even as of v1.3.8 the Developers Toolkit only searches .php files; the support for searching .css files (where the reference is likely located for the csshover.htc file) is added in v1.3.9 and newer.

28 Mar 2009, 10:14 AM
#7
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: What file calls csshover.htc?

DrByte:

If I recall correctly, even as of v1.3.8 the Developers Toolkit only searches .php files; the support for searching .css files (where the reference is likely located for the csshover.htc file) is added in v1.3.9 and newer.

... yes. In my experience it does not search css files... but as OP had indicated that the htc was not in the css, I was wondering if there was a (extremely remote) possibility that a reference to it had somehow been put into a php file.

DrByte's observation that there are sometimes "several" css files is important.

28 Mar 2009, 10:18 AM
#8
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: What file calls csshover.htc?

this file is usually called in a htaccess file.

28 Mar 2009, 10:20 AM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: What file calls csshover.htc?

yellow1912:

this file is usually called in a htaccess file.

Um, no, that's not correct.

28 Mar 2009, 10:42 AM
#10
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: What file calls csshover.htc?

DrByte was CORRECT about the additional stylesheets.

Your site is loading a stylesheet called:

stylesheet_cateories_menu.css

... and the first few lines of it are:

body  {
behavior: url(./csshover.htc);
/* WinIE behavior call */}
28 Mar 2009, 7:07 PM
#11
pjgscrap avatar

pjgscrap

New Zenner

Join Date:
Aug 2008
Posts:
40
Plugin Contributions:
0

Re: What file calls csshover.htc?

Would this work?

body  {
if ($request_type == 'www') {
behavior: url(www.pjgscrapbookheaven.com/csshover.htc);
}
else {
behavior: url(pjgscrapbookheaven.com/csshover.htc);
} 
/* WinIE behavior call */}

I mean it seems to be working, but will this still call the file when needed?

28 Mar 2009, 9:35 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: What file calls csshover.htc?

No, you're mixing PHP logic into CSS, which is entirely different.

The right solution is the .htaccess rewrite-rule.

29 Mar 2009, 3:30 AM
#13
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: What file calls csshover.htc?

Your SSL Certificate is issued to

www.pjgscrapbookheaven.com

But you do not have your configure.php files correctly annotated for this. So edit both configure.php files and ensure that they have the following

/includes:

  define('HTTP_SERVER', 'http://www.pjgscrapbookheaven.com');
  define('HTTPS_SERVER', 'https://www.pjgscrapbookheaven.com'); 

admin/includes:

  define('HTTP_SERVER', 'http://www.pjgscrapbookheaven.com');
  define('HTTPS_SERVER', 'https://www.pjgscrapbookheaven.com');
  define('HTTP_CATALOG_SERVER', 'http://www.pjgscrapbookheaven.com');
  define('HTTPS_CATALOG_SERVER', 'https://www.pjgscrapbookheaven.com');

Then add to your .htaccess file:

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.pjgscrapbookheaven.com$
RewriteRule ^(.*)$ http://www.pjgscrapbookheaven.com/$1 [R=301]
11 Jul 2009, 4:53 PM
#14
greengreetings avatar

greengreetings

Zen Follower

Join Date:
May 2009
Location:
Virginia
Posts:
90
Plugin Contributions:
0

Re: What file calls csshover.htc?

Thanks you guys. The above code worked perfectly. No more error messages on my page. I thought that the problem came from file permissions but when I changed them, nothing happened. I had no idea it was from the fact that I was leaving out "www". I really appreciate the complete answer to the thread.

:clap: