Title: 404 and content.
Last modified: August 20, 2016

---

# 404 and content.

 *  [lohray](https://wordpress.org/support/users/lohray/)
 * (@lohray)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/404-and-content/)
 * [http://aws.lohray.com/wptr/wp-content/plugins/pretty-simple-progress-meter/css/psp_styles.php](http://aws.lohray.com/wptr/wp-content/plugins/pretty-simple-progress-meter/css/psp_styles.php)
   is a php script that generates some css. The plugin does not work as the php 
   returns a 404 header.
 * However, it also returns the content. I have been checking it using firebug.
 * Any ideas on how to resolve this?
 * Thank you 🙂
 * Added Later:
 *     ```
       <?php define('WP_USE_THEMES', false);
       //header("Content-type: text/css");
       require('../../../../wp-blog-header.php');
       ?>
       <?php
       header('Content-type: text/css; charset: UTF-8');
        	$backgroundOption = get_option('background_color');
        	$backgroundOption = ($backgroundOption == "") ? 'ddd' : $backgroundOption;
        	$meterOption = get_option('meter_color');
        	$meterOption = ($meterOption == "") ? 'f00' : $meterOption;
        	$titleOption = get_option('title_color');
        	$titleOption = ($titleOption == "") ? '333' : $titleOption;
        	$detailOption = get_option('detail_color');
        	$detailOption = ($detailOption == "") ? '777' : $detailOption;
        	$progressOption = get_option('progress_color');
        	$progressOption = ($progressOption == "") ? 'aaa' : $progressOption;
        	$minorOption = get_option('minor_color');
        	$minorOption = ($minorOption == "") ? 'ccc' : $minorOption;
   
        	$thickOption = get_option('bar_thick');
        	$thickOption = ($thickOption == "") ? '10' : $thickOption;
        	$heightOption = get_option('height_option');
        	$heightOption = ($heightOption == "") ? '30' : $heightOption;
        	$widthOption = get_option('width_option');
        	$widthOption = ($widthOption == "") ? '30' : $widthOption;
        ?>
       div.prettysimpleprogresswidget {
       	padding:0;
       	margin:10px 0 0 0;
       	}
   
       div.prettysimpleprogresswidget div.show {
       	height:<?php echo $heightOption; ?>px;
       	width:<?php echo $widthOption; ?>px;
       	padding:0;
       	margin:2px 6px 0 0;
       	float:left;
       	background-color:#<?php echo $meterOption; ?>;
       	background-position:center;
       	background-repeat:no-repeat;
       	}
       ```
   
 * is a part of the php that is generating it.

The topic ‘404 and content.’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 0 replies
 * 1 participant
 * Last reply from: [lohray](https://wordpress.org/support/users/lohray/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/404-and-content/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
