Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter slamman

    (@slamman)

    Ok I figured this out. I changed the line in question to:

    query_posts( ‘p=’. $postid );

    makes perfect sense now that I think about about it.

    Thread Starter slamman

    (@slamman)

    Thanks for your suggestion, but it doesn’t work. I think I see where you are going and I think it is the right track. Initially I thought there was a problem in the way I was using the loop, but thanks to your suggestion and further testing I believe there is a problem with passing the variable in this part:

    <?php query_posts( ‘p=$postid’ );

    My code is working and I am getting a post…or more correctly every post.

    Prior to inserting the complete code I tested the rest of the code to make sure the variable was available by running this:

    echo $postid;

    This worked resulting in: 42

    This broke the widget:
    <?php query_posts( p=$postid );

    This resulted in no change to the original:
    <?php query_posts( ‘p=”.$postid.”‘ );

    Careful following these instructions could cause loss of data.

    1. FTP to your website and copy (download) the folders of the pluggins for backup.
    2. Then delete the plugin folders from your server.
    3. Reload your web page (ctrl + f5) and see if everything is working (except the now missing plugins).
    4. Then try re-installing plugins individually to see which one caused the problem.
    5. If you have the same problem after installing one of the plugins go back to step 2 and do not re-install this plugin. You may have to stick with the older version or figure out what the problem is.

    I agree with emke, but unless you have physical access to the server you are going to need to learn to use FTP quickly. It’s not to difficult. Download Filezilla. You will most likely need the username and password for the ftp account of the domain user.

    Good Luck!

    I am no expert, I am suggesting that you could replace you .htaccess file as a way to quickly determine if that is the reason for your 500 error. DEFINITELY keep a backup. If that fixes your problem then it would help narrow down the problem. You could then piece by piece add back sections of the backed up .htaccess file until you are able to identify the offending piece. I have seen w3 total cache cause this problem on a site of mine, but I had little to no content at the time so I just reinstalled the whole thing including w3 total cache and the problem was solved. My guess is that something went wrong while writing the .htaccess changes. I do not think the plugins will automatically re-write the .htaccess file, you would probably have to de-activate and then re-activate the plugins, but I would be concerned about potential data loss depending on the plugins.

    I would suggest backing up your .htaccess file and then use a fresh one that hasn’t been modified by the plugin.

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