Tag Archive for 'bugs'

Fixing a bug I’m not sure how I got.

I’m not sure what happened, but after I installed the “Currently Reading” plugin for Wordpress, I get this

“Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in [...]”

error on lines 104-105 of wp-includes/classes.php file. I deactivated the plugin (which was a complete mess on this layout anyway) and proceeded to delete the whole folder thinking it’ll fix the problem. It didn’t. Good thing I found a way: I checked the file and added “@” in front of preg_match.

So these lines:

104       if (preg_match("!^$match!", $request_match, $matches) ||
105           preg_match("!^$match!", urldecode($request_match), $matches)) {

are now:

104       if (@preg_match("!^$match!", $request_match, $matches) ||
105           @preg_match("!^$match!", urldecode($request_match), $matches)) {

problem fixed!

… BUT I STILL HAVE OTHER ISSUES on the site that won’t go away. WHAT THE HELL!

UPDATE!

Alright!! I finally fixed it by updating the permalinks.



Macs and Firefox Text Rendering glitch

Text rendering on my site had bugged me for the longest time. It drove me nuts and I never really thought there was a fix for it, but dayummm I should’ve looked into it sooner because there is!!

So what was the moronic bug exactly? It’s how the fonts would go thinner or thicker from time to time. Actions that trigger this are like scrolling the page or clicking on a link or activating hover styles. It is really annoying because I couldn’t get the right look I want.

Sample
bug

Well, it turns out that Firefox running on Macs can’t correctly render text every time (I know, huh!). What sucks is that it is too obvious because you see it on a single static page… really UGLY!

Anyway, the fix that I found is not perfect but it works on how I have my layout coded (with floats) so I’ll stick to it. Besides, who cares if this website isn’t W3C compliant… Actually, I should get a beating for saying that… I mean, being a web development student, I should be strict about stuff like that. BUT again.. WHO CARES!

One major drawback that I do care about though is, flash embedded videos won’t show up while the opacity isn’t set to 1 (or 100). I guess I’ll just have to set up a pop up box for that or a link…. or ditch videos.

Here’s what I did: to my body { } I added the attribute opacity: 0.9.
Fixed my site in no time.
Hell yeahhhh!






ss_blog_claim=35739f9be1892a9a37310c3e7bc290e8