Wednesday, October 7, 2015

The Best Content Sharing WordPress Theme

ThemeForest is a website that I both love and hate, I love it because there are more than 20k templates or themes to choose from, I hate it because I need to spend hours to find the right theme. You might ask, don't they already have a search engine to help refine results? Yes, however in order to make sure the theme works as described, you should check their demo and read the comments to see how it actually works, and that is time consuming.

Recently, I purchased a theme called Foot, it consists of all the features that I need - masonry layout, front-end content submission, Facebook login, responsive menu for tablets and mobiles, review system, infinite scroll. Interested? Here is a short review of the theme.

Btw, do you know that ThemeForest has added a support feature? Say, for a regular theme license of $59, you can extend support to 12 months for an additional $17.70. What does support include? The theme purchase includes any updates made available by the author. The item support mainly includes availability of the author to answer questions. I reckon with this new author support service, more authors would be eager to provide a better support service. :)

Sunday, July 12, 2015

Strict Standards: Only variables should be passed by reference in...

Recently I switched my web hosting service to some new providers, one of the websites is having a little minor problem. The error message was "Strict Standards: Only variables should be passed by reference in... some file... some line..."

The line that had the problem:

$ext = strtolower(end(explode('.', $image_path)));

Not sure for real or not, some folks suggest that this little problem could cause a memory leak, and memory leak can eat up memory which can not be reclaimed till the script finishes. Or in some cases it can not be reclaimed until the server restarts. Little bit of this and that of memory leak can add up gradually and bring a healthy server to a crawl. Wow, sounds serious eh?

Anyway, the suggested way to fix it is really simple:

$tmp = explode('.', $image_path);
$ext = end($tmp);
$ext = strtolower($ext);

After the little modification, my website works again. Well, I guess this new provider is a bit more strict on things than the previous one.

Sunday, June 14, 2015

Images appear for a second then disappear in Internet Explorer

Recently, one of my blogs has this strange behaviour - all the images appear for a split second, and then disappear and show up as broken images. The images are only broken in Internet Explorer, they work fine with Chrome and Firefox. I wonder if that is because I haven't updated my theme for a long long time. So I try updating the theme, but the problem is still there.

Could there be a problem with the WordPress plugins? I turn off all plugins, and reactivate them one by one. The problem is with a plugin called Link Juice Keeper. Once I turn it off, all the images come back to life, and now they work with most of the popular browsers.

What is Link Juice Keeper? It redirects all non-existing URLs which normally return a 404 error to the blog front page using 301 redirect. It's a great plugin, unfortunately the last update was six years ago. It might be a bit outdated, but it still works with my other websites with the same latest WordPress version installed. So why it didn't work with this particular WordPress site, I have absolutely no idea. :) Anyway, if you have a similar problem, try deactivate your plugins. I heard that some buggy plugins would change your image path in a mysterious way, but in that case, your images wouldn't show up on any browsers.

Tuesday, April 7, 2015

The user name or password is incorrect

A week ago, I tried to login to my computer without success. The error message was "The user name or password is incorrect." I was pretty sure that I didn't change my password, even the password hint displayed was still the same. Was I being hacked?

I did install a free file cleaner software not long ago, did that software somehow screw up the system in some mysterious way? I tried to dig up info on the Internet about how to fix this user name and password login problem, there are numerous resources showing how one can remove the login requirement, edit registry, or use a tool called netplwiz for managing user accounts, blah blah blah... After a few times of trying to get into repair mode, the computer was managed to restore itself to an earlier restore point, things seemed to be working once again. I immediately did a scan on the computer, nothing malicious showed up.

A day ago, the same login problem showed up. I began to wonder if that was really a software problem, maybe it was a hardware one. So I ran to Walmart and bought a cheap keyboard, plugged it in, voila, it works again and I can sign in with my usual password. I removed the new keyboard, plugged in the old one, same old bad error message "The user name or password is incorrect" reappeared. I almost put the blame on that software and planned to send a complain email to the software author, LOL.