Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Forum: Fixing WordPress
    In reply to: Site hacked!
    Thread Starter thomasareed

    (@thomasareed)

    I was kind of hoping for more specific advice. I’ve already done most of the things in the Hardening WordPress document, and have been working through some of those other documents as well. However, I’m still concerned about how the hacker got in in the first place, and why I’m not finding any modifications where most pages tell me to look.

    Thread Starter thomasareed

    (@thomasareed)

    Thanks for the response, but yesterday I finally managed to work out a solution on my own. I simply did this:

    <?php
    $args= array(
    	'category_name' => 'front-page',
    	'posts_per_page' => -1,
    	'orderby' => 'date',
    	'order' => 'ASC'
    );
    $the_query = new WP_Query( $args );
    $numBoxes = 0;
    $boxGroup = 1;
    
    // The Loop
    while ( $the_query->have_posts() ) {
    	$the_query->the_post();
    	if ($boxGroup > 1)
    		$hideStyle = 'style="display: none;" ';
    	else
    		$hideStyle = '';
    	if ($numBoxes == 0)
    		echo '<div '.$hideStyle.'class="frontBoxGroup" id="frontBoxGroup-'.$boxGroup.'">';
    	echo '<div class="frontBoxContent">';
    	the_content();
    	echo '</div>';
    	$numBoxes++;
    	if ($numBoxes >= 3) {
    		echo '</div>'."\r";
    		$numBoxes = 0;
    		$boxGroup++;
    	}
    }
    if ($numBoxes < 3)
    	echo '</div>'."\r";
    ?>

    After that block of code, you just have to do:

    <?php wp_reset_query(); ?>

    Then proceed with the code to display the content of the page.

    Thread Starter thomasareed

    (@thomasareed)

    It doesn’t seem that that ought to be the case, but I suppose one could argue that I’m using it incorrectly by having the base address for my blog be a news.php page, rather than a news/ subdirectory. I suppose I’ll just have to accept that I have to either replace the index.php file with my own file after every update or move the WordPress stuff into a subdirectory. (Any pointers to instructions on doing the latter?)

    Thread Starter thomasareed

    (@thomasareed)

    Is this not something that anyone else has ever experienced?

    Thread Starter thomasareed

    (@thomasareed)

    Any ideas?

    Thread Starter thomasareed

    (@thomasareed)

    Ahh, that makes sense. Although, that doesn’t seem like a very effective strategy if you get a reply that doesn’t answer the question, as I’ve seen happen. But I suppose there’s no perfect way for this sort of thing to work! πŸ™‚

    Thread Starter thomasareed

    (@thomasareed)

    I’m not sure what’s wrong with a single bump in a case like this – how else do you suggest I get a simple question noticed after it’s spent 2 days falling off the radar? But, in any case, thanks for the answer. I’ll give that plugin a try.

    Thread Starter thomasareed

    (@thomasareed)

    Bump!

    Thread Starter thomasareed

    (@thomasareed)

    Here’s a screenshot of the problem in action. I’ve seen it in both Safari 5.0.5 and Firefox 4.0.1, both on the Mac. It’s tricky to spot, since it only happens where the line breaks between sentences. Notice the slight indent before the words At and There.

    http://www.reedcorner.net/images/wpissue.png

    Thread Starter thomasareed

    (@thomasareed)

    Nobody has any ideas?

    Forum: Fixing WordPress
    In reply to: Uploading photos
    Thread Starter thomasareed

    (@thomasareed)

    I’ve seen that advice numerous times, and it just plain doesn’t work. Maybe it does for some, but it didn’t for me, and I’ve seen lots of other posts, on these forums and others, from people who never got it working with that sort of trick either. Honestly, this needs to be addressed, because I finally found a solution, and it wasn’t that simple, but wasn’t difficult either once I decided to ignore all the advice that wasn’t working and that maybe it wasn’t something I had done wrong with installation and configuration.

    After talking to some folks on another forum and with the folks at pair Networks (my web service provider), I’ve found the problem. Files uploaded by PHP, and folders created by PHP, were being assigned the owner “nobody”. pair support said that I needed to run PHP through php-cgiwrap, which would cause files uploaded by PHP scripts to have my user as the owner. This appears to have solved the problem, and I have switched the permissions on the upload folder back to 755.

    For others using pair Networks, here’s the knowledgebase article for their system:

    http://kb.pair.com/f25

    For everyone else having the same problem and unable to resolve it, talk to your web hosting service provider.

Viewing 11 replies - 1 through 11 (of 11 total)