The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

CSS file not rendering

Hi,
I've been trying to help a user of my dropdown menu plugin with a problem.

For some reason, their CSS file (style.php) is not rendering on their page. It can be access directly, but when used within the page it does not seem to be working The response headers indicate that the CSS file is indeed being sent as text/css and I can download the page, change the link to a local .css file and it works fine.

I have another user with exactly the same problem now. I badly need to find the cause of this issue. Anyone have any ideas?

I've set up a demo of the problem in action. The first menu displays correct, it is using a style.php file from my own site. The second one uses a style.php from one my plugin users sites, it doesn't render the menus CSS at all, despite the CSS file being directly accessible via a browser AND being served as text/css. Even the web developers toolbar picks it up as a regular CSS file

I forgot to add that users are claiming this is occurring after switching their WordPress permalinks. One user reported it when using the following permalink structure ... /category/year/month/day/blog

This seems completely nonsensical to me as the permalinks should have absolutely zero impact on how a separate script held within my plugin is operating. And the script is simply generating a CSS file, so the question about why the CSS is not rendering on the page still remains.

I've posted a support topic on the WordPress.org forums about this now too, but I haven't had much luck getting help there in the past so I'm not holding out much hope http://wordpress.org/support/topic/175052

One of my plugins users has noticed that on my demo page, the style.php which works is downloadable in IE7 (ie: you can right click and save as, or just view it in the browser directly), whereas the one which doesn't work at all is not accessible in any way, a 404 error is given if you try to access it directly and attempting to right click and save as gives a message saying "Internet Explorer cannot download style.php from www.routinefly.com. Internet Explorer was not able to access this internet site. The requested site is either unavailable or cannot be found. Please try again later.

However you CAN save as and access the file in Firefox2, but it still doesn't render the CSS on the page

I'm getting a little desperate here. I am 100% stumped as to what the problem is and not sure where to even start trying to fix the problem.

I'd start by looking at how the plugin is connecting with WordPress. Do you know if it's limited to a particular version of WordPress, or is it affecting every (current, as in 2.2.x, 2.3.x, and 2.5.x) version of WordPress?

I'd start by looking at how the plugin is connecting with WordPress. Do you know if it's limited to a particular version of WordPress, or is it affecting every (current, as in 2.2.x, 2.3.x, and 2.5.x) version of WordPress?

I've only heard reports from 2.5.x, but I've been assuming that shouldn't have any affect on the way the file is fed to the browser.

Unfortunately I can't remove blog-header.php. I'm sure that is the problem, but it is a problem I need to work around as it is used to pull the data for the CSS from the WordPress database. Or perhaps there is another way to access that data?