TideLog Archive for the “Wordpress Bugs” Category

If I find bugs in Wordpress, I’ll post them, and fixes, here.

This past week, Warren Buffett’s Berkshire Hathaway agreed to buy the Duracell brand battery products division from Procter & Gamble. Though primarily known for its alkaline batteries, Duracell also makes NiMH and lithium rechargeable products. Some analysts speculate that the deal could have broader implications for the power technology industry.

Some analysts say the acquisition of Duracell by Warren Buffett's Berkshire Hathaway could have implications in the areas of wireless powerand electric vehicles.

Some analysts say the acquisition of Duracell by Warren Buffett’s Berkshire Hathaway could have implications in the areas of wireless power
and electric vehicles.

For example, wireless charging is one technology that could see a boost. The new investment may accelerate Duracell’s plans to place PowerMat charging devices in Starbucks coffee shops, which number more than 21,000 worldwide. Another area of speculation revolves around Berkshire Hathaway’s investment in the Chinese electric car maker BYD and the possibility that this deal could be a way for Duracell to expand into batteries for vehicles and the power grid.

Comments No Comments »

I’ve been using a heavily customized version of Mandigo as TideLog’s flagship theme for a while, and it’s been perfect, bar a slight layout issue with the footer. However, I upgraded to WordPress 3.0 a while back, but when attempting to block a new page from showing in the navigation bar via the theme’s Theme Options screen I receive an error complaining about permissions. I had to check to see if I had modified anything recently that could have caused these permissions but was unable to come up with anything. I did install a plugin that allowed me to change the default username from admin, but that wasn’t the cause.

Turns out in the changelog that I keep for Kana and myself in the theme itself, the item that made the most sense was the upgrades from WordPress 2.X to WordPress 3.X. Below I describe the error in more detail followed by how to resolve the issue as it’ll likely affect others. Here’s what the error looks like:

you-do-not-have-sufficient-permissions-to-access-this-page

After visiting the internal WP site that Rikku uses for Matsuki Transport, which is still running WordPress 2.x and has the Mandigo theme installed, I noticed the difference was in the URL used to access the Theme Options page. The URL of the site running WP 2.X was “/wp-admin/themes.php?page=Theme%20Options” but in the updated WordPress 3.X the URL was attempting to access “/wp-admin/themes.php?page=ThemeOptions”. Since I knew that I had not upgraded Mandigo the problem must be with the WordPress upgrade as thought previously but instead of modifying WP it made more sense to update Mandigo to resolve the issue as noted below by modifying the theme_options.php file located at the below path.

Mandigo theme_options.php Location:

/wp-root/wp-content/themes/mandigo/backend/theme_options.php

My code snip below shows the original section that we will change in the second code snip below.

Original theme_options.php add_theme_page PHP Function:

// the functions that load the theme options page
        function add_mandigo_options_page() {
                global $dirs;
                add_theme_page(
                        'Theme Options',
                        '<img src="'. $dirs['www']['backend'] .'images/attention_catcher.png" alt="" /> Theme Options',
                        'edit_themes',
                        'Theme Options',
                        'mandigo_options_page'
                );

        }

Updated theme_options.php add_mandigo_options_page PHP Function:

// the functions that load the theme options page
        function add_mandigo_options_page() {
                global $dirs;
                add_theme_page(
                        'ThemeOptions',
                        '<img src="'. $dirs['www']['backend'] .'images/attention_catcher.png" alt="" /> ThemeOptions',
                        'edit_themes',
                        'ThemeOptions',
                        'mandigo_options_page'
                );

        }

Once you replace the original snip of code with my updated one, save the file, refresh your blog, the issue should be gone! 🙂

Comments 2 Comments »

A few posts ago, I mentioned how I was having trouble with ToCA Race Driver 3’s StarForce DRM driver under 64bit Windows 7, and detailed a manual driver removal method. Well, after some more playing about, I’ve installed 32bit Windows 7 on my laptop on a separate hard drive, and guess what? The driver STILL DOES NOT WORK! But, this time, it doesn’t stop the computer starting, Windows simply disables the driver every boot.

bmaytum, a user on Codemasters’ forum, sent off a support request, and here was Rob from Codemasters’ reply:

I just got an Impressively quick response via email from “Rob” at CodeMaster’s Customer Service. SADLY, Rob said this:

“Thank you for submitting your recent request to Codemasters Customer Services concerning Toca Race Driver 3.

Unfortunately Toca Race Driver 3 does not work under Windows 7; the game will only work under those versions of Windows listed on the back of the box. Due to the way the game was programmed it is not possible to patch the game to work under Windows 7, unfortunately. Sorry.

If you need further assistance, please reply to this email and INCLUDE THIS LINE IN YOUR REPLY:- ……”

So Codemasters are REFUSING OURTRIGHT to provide a patch!! Starforce say patching has got to be done via developers too, so we’re out of luck. Aha, you didn’t really think that was it, did you? There’s a slightly illegal way round this, and that is to use a No-DVD cracked EXE with it.

Scared you’ll get sued? I wouldn’t be, they’re too damn lazy and customer non-focused to care themselves to make an official patch!

Here’s a proper removal method for the StarForce crap, first:

1. Download the official StarForce removal tool by clicking this link: sfdrvrem

2. It’s hosted here on TideLog, so download it and extract it using your favourite unzipper, you don’t need to worry about viruses.

3. Run the EXE, and then when it asks you to reboot, do so.

4. You should now be fine and dandy, without the “Windows disabled this driver due to incompatibility” message on every boot.

5. DON’T UNINSTALL the game, but go find a cracked EXE for your version of the game, and it should run fine. I’m not providing cracked EXE’s so I don’t get done for distributing copyrighted works, so am NOT RESPONSIBLE for you picking up viruses from Russian warez sites. THESE from GameCopyWorld seem to work fine, though….

And finally:

6. Don’t buy Codemasters’ software. They don’t care about loyal customers, so don’t give a damn about them!

 

Comments No Comments »

The article in the Metro shocked me this morning. 11,000 children have been admitted with drug and drink abuse problems last year. The total included 6,075 under 16’s hooked on cannabis. 102 of these were under 12.

And, as usual, the first point of blame is the Government. Shadow Health Secretary Andrew Lansley said, “It’s a sad indictment of our broken society that so many are turning to things like drink or drug abuse at such young ages. ”

Labour are neglecting a forgotten generation of children.”

Err, Andrew, hold it there a minute. There’s something called Parenting that sits in between the government and society. You a parent yourself, or did you forget they exist? If kids have rubbish parents, which they often do, they’ll end up like they do. Parents are the biggest influence on kids, forget society. It’s the crap parenting that makes them give in to peer pressure. They see parents smoking, drinking and snorting cannabis, they follow suit. It’s natural. There’s also Law that the parents seem to ignore too.

But, instead of doing something about the parents, such as improving their parenting, and making the kids feel loved, who do you blame? The Government.

It’s the easiest way out. Blame the Government, they’re responsible for the thousands of children, making sure they’re fed, clothed and nannied.

Not. Wake up, Shadow Health Secretary. And get a life.

Comments No Comments »

I’ve finally remembered to bring my Ralink USB dongle to Jenny’s, so I can use Ami, my Fujitsu Li 1818 with Mac OS Leopard 10.5.6 x86, on the Internet. She runs really well, as a Core 2 Duo based Mac should. For these occasions, I’ve even brought an Apple logo fridge magnet, to stick to the computer, so that I’m not breaking the T&C’s which state that OS X “must be used only on an Apple branded machine”, which Ami now is, when Mac OS is running, anyway, and not Windows 7!

I’ve always thought that rather unfair, Mac users can use Windows on their posh, expensive aluminium boxes, but us standard PC users can’t use Mac OS, Apple have always forbidden it, and were unwilling to license it for such use, even after they switched to Intel processors.

This is my way of saying, “I can, Mr Steve Jobs, and try stopping me!” The hacking community is always 10 steps ahead! Here’s my About This Mac dialog:

My Fujitsu Amilo Li 1818 is a Mac!

My Fujitsu Amilo Li 1818 is a Mac!

Comments No Comments »

The computer hardware & software industries have gone nuts. Microsoft have been sued for including Windows Media Player and IE with their OS, when they’ve been doing it for YEARS, everyone branded it ‘anti-competitive’. Apple forced people to use their crappy iTunes software with iPods. They’re now forcing you to use their shitty earbuds with the new Shuffle, or pay 150% more for third party higher quality ones. The new design has the playback controls on the earbud data cable, meaning one of two things:

1. You stick with the shit things that come with the Shuffle;

or:

2. You buy a special set of earphones from companies Apple have done schmuck deals with, such as Bose, and Sennheiser, which are vastly overpriced! You see them on display in Apple stores, for £200, about 40% more than the cost of a 160GB iPod Classic!

Yet, no one seems to have cried….not even FANBOIS….you can here a pin drop…….

Plus the new earphones are reported to have DRM in them….DRM, in earphones? Apparently so, there’s a tiny chip, minuscule, hiiden under the button board, glued to the plastic. This could mean headphone manufacturers having to pay fees to make earphones for the Shuffle!

Why? Why should Microsoft be done for the tiniest thing, yet Apple get away with something like this? Hello…this is ANTI-COMPETITIVE, even WORSE than Microsoft, at least you can still install your own browser and media player alongside their built in stuff. I’m starting to go off Apple. I don’t give a crap about Steve Jobs being ‘ill’, he’s been ill all his damn life, it’s called running Apple and mugging customers off, plus getting away with it. At least now the open source movement means i’m not stuck with iTunes, which becomes more and more bloated with every new version.

Comments No Comments »

In WordPress 2.7.1 (and probably previous versions), the admin page that allows for theme activation has a bug that you might find annoying

Today I was setting up a blog for Rikku and completely replaced the default ‘wp-content/themes’ directory with a ‘wp-content/themes’ directory checked out of our SVN. This removed the default theme (Kubrick) and left only the theme I was working on for her blog.

For some reason, the theme admin page did not show any themes – it took me about 20 minutes to trace the code to figure out what was going on.

The wp-admin/themes.php file has code at line 139 that checks to see if more than one theme is present:

if ( 1 < $theme_total ) {

If more than 1 theme is found, then the grid of themes is shown so that you can choose between them. However, in my situation I had deleted all other themes leaving just 1 theme but had not yet activated that theme. In this case, no theme is active, and there is no way to select the 1 theme that is in the ‘wp-content/themes’ directory.

To fix it, change that code to:

if ( 1 <= $theme_total ) {

or upload another theme so there is more than one theme installed. Then you can select the theme you need, and you’re sorted!

Comments No Comments »