• I’ve found a couple of other threads with similar titles, but they don’t seem to be about the same issue that I have.

    When I edit or add a widget, sometimes one or more widgets that have been placed in the sidebar just disappear. It doesn’t always happen, and I can’t spot a pattern. I’ve had to start keeping a log of all the code and settings for every widget, as I often have to re-install them all.

    I’m almost certain this is to do with running Widget Logic and PHP Code Widget plugins. I’m in the process of testing variations of deactivating and activating these, but I thought I’d see if anyone has encountered and maybe solved this?

    The other hope is that the new widgets system in 2.8 might smooth things out…

Viewing 9 replies - 61 through 69 (of 69 total)
  • I am having the same problems of the last 3 people

    this is confusing as the last 3 people have slightly different problems.

    if anyone having problems with 2.8 when widget logic is active (ie where the problem goes if widget logic is inactive) can give a step by step way to reproduce the problem, i can try to help.

    so far, all the descriptions of problems that are clear enough for me to follow, do not reproduce the issue on my really standard 2.8 install.

    (i have had issues with widgets misbehaving in general, but not in a way fixed by deactivating WL.)

    The problem I’m seeing is that when I look at my posts via their permalink, the post is centered in the blog window and the widgets disappear because there’s not enough room for them. But when I view the posts via archives or my main blog page, they are left justified and the widgets appear like they’re supposed to.

    Thanks for your help,

    Tom

    I forgot to say that I was having the problem of my posts being centered when viewed via permalink with 2.7.1, so I upgraded to 2.8.4, but the problem remained.

    Tom

    If I wasn’t so tired, I would have included the link to my blog: https://www.chronicillnesscoach.com/blog .

    Tom

    you are using the default WP theme which doesn’t have a sidebar on the single post view.

    Thanks Alan,

    I’ll find another theme.

    Tom

    I took a look at the default theme files, and even though I don’t know php, I have enough programming experience so that I was able to to change single post view so that it displayed the sidebar.

    I’m having problems with disappearing Widgets too. It started while I was using the PHP Code Wdiget plugin, but I’m not sure it has much to do with that Widget. I’m pretty sure it has more to do with what is in the custom PHP code.

    Example…here is a code I’m using to carry profile information to Tag Archive pages:

    <?php
     $wp_tagID = get_query_var('tag_id');  
    
    mysql_select_db("jwrbloom_hhr");
    
    $query = 'SELECT * FROM playerRank';
    $results = mysql_query($query);
    while($line = mysql_fetch_assoc($results)) {
    
    if ($line['wpID'] == $wp_tagID)  {
    
    	echo '<div class="player">';
    	echo '<div>' . $line['nameFirst'] . ' ' . $line['nameLast'] . '</div>';
    	echo '<div><strong>' . $line['height'] . ' ';
    		if ($line['position'] == 'PG')  {echo 'Point Guard';}
    		elseif ($line['position'] == 'SG')  {echo 'Shooting Guard';}
    		elseif ($line['position'] == 'SF')  {echo 'Small Forward';}
    		elseif ($line['position'] == 'PF')  {echo 'Power Forward';}
    		elseif ($line['position'] == 'C')  {echo 'Center';}
    		echo '</strong></div>';
    	echo '<div><strong>' . $line['hschool'] . '</strong></div>';
    
    	echo '<div><img src="/wp-content/uploads/' . $line['nameLast'] . $line['nameFirst'] . '.jpg" width=150 height=200></div>
    
    	</div>';
    }
    
    }
    ?>

    The line that causes all of my widgets to disappear is the second line of my PHP code:

    mysql_select_db(“jwrbloom_hhr”);

    I’ve tried a couple of other options, but then my code doesn’t work.

Viewing 9 replies - 61 through 69 (of 69 total)
  • The topic ‘Widgets disappearing’ is closed to new replies.