subiectiv
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Odd issue with if/else statementhave tried to add the variable to the function you use?
you have in function widget() this:
$hide = $instance['hide'];
and in function update()
$instance['hide'] = $new_instance['hide']
but is the $hide variable in the function that makes your widget work? as in:
function myfunction($variable1, $variable2, $hide)
It happens :))
Forum: Fixing WordPress
In reply to: WP bug / WP – SQL data pulling errorYeah, I turned debugging on, no errors.
Plugin list:
– Akismet
– WP Enhanced Contact Form
– Feedburner Feedsmith
– Feed Wrangler (activated a week ago)
– Get Recent Comments
– Google Sitemaps
– Lightbox 2
– Ntz Antispam
– RSS Footer
– Secure WordPress
– Smart Update Pinger
– Subscribe to Commets
– WP Optimize
– WP Post-Views
– WP Useronline
– WP SuperCacheForum: Fixing WordPress
In reply to: WP bug / WP – SQL data pulling error@mark: the thing is, though it shows nothing in the dashboard, after clicking “posts” or “comments”, it will take up to a minute or two for loading the page. And curiously enough, it shows the list of posts. Basically, it all goes back to normal, but I have this 1-2 minutes gap when it shows nothing.
Forum: Fixing WordPress
In reply to: WP bug / WP – SQL data pulling error@james: I use WP-Optimize for that, I optimeze database tables once a day or so. Plus, I did repaired all tables from phpMyAdmin two times, in the idea that WP-Optimize didn’t do it right. It’s not from there.
Forum: Fixing WordPress
In reply to: WP bug / WP – SQL data pulling errorHere’s what I see.
I wrote on my blog about that, though you probably should use Google Translate to actually understand something.
Anyway, there’s a printscreen picture at that URL. All works like a charm, but shows like having an empty database.@streetexposure: Dude, if you want to add new themes to your blog, just download the theme on your desktop, unzip it and upload it through an FTP client. It will make your life much easier.
Forum: Fixing WordPress
In reply to: WP bug / WP – SQL data pulling error@mark: my blog is hosted “on a rocket”, in the “root” of a cluster, at webfactor.ro. If you were to ask those guys, they’ll tell you they sure know my problem and have no idea what causes it. And they’re damn good in what they do. But that’s just my blog.
The other two blogs are on a media outlet server located in a huge datacenter that only provides hosting for huge corporations. Now, I guess they’re professional enough to know, plus I know the media outlet’s sysadmin, who’s some sort of a god in terms of managing servers (and I don’t say that often). Same thing.
So what I could figure out is that it can’t be the servers’ fault, it must be some sort of bug in the WP core. It only happened to me after upgrading to WP 3.0, never before.
The thing is, I only am a designer with front-end developer skills, my PHP knowledge resumes to tweaking WordPress and writing custom themes and functions from scratch (midlevel PHP knowledge or smth). I’m not that good as a programmer to actually hunt bugs in the WP core’s code. I’m working on it :)), but didn’t got to that level yet.
Forum: Fixing WordPress
In reply to: WP bug / WP – SQL data pulling errorOK, it’s like this:
One site on my host, two sites on a media outlet host, but on different machines, PHP/MySQL required for future versions of WP, so up-to-date :), nothing in the error logs.
When the problem occurs, WP is still connected to the database, but no info is shown. Think about a WP theme 404 error page. That’s what it shows on the front page, while in Dashboard, in the Right now panel, I get “0 posts, 0 pages, 0 comments, 0 categories, 0 tags”. It’s like a fresh WP install but without the default post.
After 20 or 30 seconds and a page refresh, everything comes back to normal.
Forum: Fixing WordPress
In reply to: WP bug / WP – SQL data pulling errorWell, thanks, but restarts won’t help ??
@streetexposure: do you have FTP access? Try upload the theme through an FTP client. If you’re using Windows, Total Commander or WinSCP are pretty easy to use.
Forum: Fixing WordPress
In reply to: WP bug / WP – SQL data pulling errorDude, did you actually read all I wrote above?
I use WP since version 1.2, trust me, I know what plugins I use, plus they’re all updated to the latest version.
I disabled plugins and enabled them back. That’s the first thing I’ve done. I’m not some kinda newbie when it comes to WP. I’m looking for a solution and it’s not about others’ blogs, it’s my blog involved as well.
If you have any idea where this problem has its root, shoot. Otherwise, it’s like you’d be saying: “Oh, your computer crashed and the system doesn’t boot anymore? Then please restart”.Forum: Fixing WordPress
In reply to: How do I remove Footer in Sticky Postsyeah, I guess no one’s around
Forum: Fixing WordPress
In reply to: How do I remove Footer in Sticky Posts<?php if(!is_sticky()) :?><a title="Permanent Link to <?php the_title(); ?>" rel="bookmark" href="<?php the_permalink() ?>"><?php the_title(); ?></a> <?php else : the_title();endif;?>
do you have any idea how to make this work in wp2.8? because it works just fine in 2.7, but that “if is_sticky” doesn’t make any difference in the new version.
actually, it makes a difference: if you use it as “if is_sticky”, then you’ll see it just as it is. if you use it at “if !is_sticky”, it will show all posts (no matter they are sticky or not) as being… sticky.i have this code:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post"> <?php if (is_sticky()) { ;?> <h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1> <?php the_content(__('Read more'));?> <?php } else { ?> <span class="category">Category: <?php the_category(', ') ?></span> <h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1> <?php the_content(__('Read more'));?> <div class="postmode"> <?php comments_popup_link('Leave a comment', 'One comment', '% comments'); ?> <?php edit_post_link('- Edit -', '', ''); ?> </div> <?php } ?> </div>
and the sticky post is shown just like the rest of the posts. if I ad a “!” before is_sticky, then I see the rest of the posts (sticky post included) as the first part of the code.
Forum: Fixing WordPress
In reply to: Weird /zz directory in my wp-content folderI got that too on all of mz WP installs. Basically, what I did was to set chmod 755 for the wp-content directory and, for now, it’s not back. Still, I believe that must be a WP vulnerability. Most probably, most of us set chmod 777 for wp-content so we shouldn’t set it to all theme folders we want to modify within the WP theme editor. That’s the reason I did that.
So, first of all, you should set chmod 755 to your wp-content directory, erase the folders called “zz”, “…”, “upload” and “images” (these 4 directories appeared in my wp-content – remember, don’t erase “uploads”, but “upload”, without the “s”, otherwise you’ll lose all the files you’ve uploaded before). Just as well, erase “cache” and the “js_cache” inside “uploads”.
Hopefully, after setting chmod 755 you won’t have any other problems. By the way, all my WP versions are 2.7.1. And there are a few, I can tell that.
Forum: Themes and Templates
In reply to: Custom fields with if else conditionalsthanks man, i tried almost five days to make that thing work. of course, in some other circumstances, but it worked. you rule ??