Subtle and Wordpress 2.2


I haven’t had a chance to install 2.2 yet, but I’m hearing from a few people that the widget API changed so much in the latest version of Wordpress that a number of themes have broken widget support – including Subtle. I’ll be looking into the problem over the next few days. For the time being, I’d suggest sticking with a pre-2.2 installation if you’re planning to continue using Subtle.

Information and Links

Join the fray by commenting, tracking what others have to say, or linking to it from your blog.


Other Posts

Write a Comment

Take a moment to comment and tell us what you think. Some basic HTML is allowed for formatting.

Reader Comments

Theme works find but yeah the widgets are broken. :-(

Looks like K2’s taking an interesting approach by disabling the built-in widget handling. Something to look at.

Yes the widgets are broken! This is a really great theme, I hope you can fix it soon! Thanks a ton!

I’ve found a tricky solution.
http://www.eldemonionegro.com/wordpress/archivos/2007/05/30/upgrade-to-wordpress-22-problems-exec-php-and-gluedideas-theme/
I use a modified version of gluedideas, but this solution should work for everyone.

I fixed the widgets too. Just a quick hack to the functions.php and the home.php files. I posted it here:

http://www.darrenmothersele.com/web-design/fixing-widgets-in-the-subtle-theme-for-wordpress/

Darren’s solution is the direction I’m thinking I’ll have to go, but it breaks previous widget setups, so I’m not super excited to go that direction. A part of me would prefer to wait for WP to get fixed before jumping on “fixing” Subtle.

I use the Subtle theme and just upgraded my site to WordPress 2.2. Big mistake: I should have checked herefirst. Now my home page is giving me these errors:

Warning: main(/home/zachever/public_html/margaretandzach/wp-content/themes/gluedideas_subtle/styles/) [function.main]: failed to open stream: Success in /home/zachever/public_html/margaretandzach/wp-content/themes/gluedideas_subtle/header.php on line 28

Warning: main() [function.include]: Failed opening ‘/home/zachever/public_html/margaretandzach/wp-content/themes/gluedideas_subtle/styles/’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/zachever/public_html/margaretandzach/wp-content/themes/gluedideas_subtle/header.php on line 28

Fatal error: Call to undefined function: getheadercss() in /home/zachever/public_html/margaretandzach/wp-content/themes/gluedideas_subtle/header.php on line 29

I made a backup of the site before I upgraded, but installing that version did not fix the problem (I had the rep at my hosting company help with the install too). My site reverted to 2.1.3 (that backend interface works fine), but it still won’t load.

Any idea how I can fix this problem?

I’ve got exactly the same problem! And there is no way to downgrade, because there is a severe bug the old version preventing static sites from being edited. Arrrgh.

I tried out the fixes mentioned above, but they don’t work. There’s a parse error: “Parse error: syntax error, unexpected T_STRING, expecting ‘)’ in /www/htdocs/custom/wp-content/themes/glued-ideas-subtle-01/functions.php on line 253″

Is there any fix pleeeaaase???

Alex, et. al – I’ve installed and tested 2.2 now on a number of systems and it’s looking like your problems aren’t 2.2 related – you might have issues with your database upgrade. I’ve seen that happen in the past – WP doesn’t always do a great job of updating formats.

Specifically – serialized data has been problematic for me. I’ve seen errors pop up on almost ever upgrade I’ve done.

I don’t think it is a database problem – and it is related to former versions, too.

See: I tried to downgrade to 2.1.3 and imported the old database which worked before, and now got this:

Warning: main(/www/htdocs/custom/wp-content/themes/glued-ideas-subtle-01/styles/) [function.main]: failed to open stream: Success in /www/htdocs/custom/wp-content/themes/glued-ideas-subtle-01/header.php on line 28

Warning: main() [function.include]: Failed opening ‘/www/htdocs/custom/wp-content/themes/glued-ideas-subtle-01/styles/’ for inclusion (include_path=’.:/usr/share/php:..’) in /www/htdocs/custom/wp-content/themes/glued-ideas-subtle-01/header.php on line 28

Fatal error: Call to undefined function: getheadercss() in /www/htdocs/custom/wp-content/themes/glued-ideas-subtle-01/header.php on line 29

I was able to fix my site’s problem; I called my hosting company and, on the second try, got a competent rep who was able to restore the backup I’d made before upgrading.

Alex – yup, it’s the database. Your settings for Subtle have been corrupted and so the theme isn’t able to correctly load your Theme Style. I’ve had this happen on a normal 2.2 upgrade AND a WPMU upgrade. WP has a few problems with upgrade scripts.

The issue seems to be with serialized data – objects that have structure in memory but are turned into a string to be stored in the DB. The upgrade process corrupts the string and so the server can’t convert the data back into a PHP object.

Either that or your theme style is actually missing, which may in fact be the case.

Yes, I think you are right. Actually I tried to downgrade to 2.1.2 by restoring a backup.

Now an error shows up in the theme options :

The following errors occured when saving your options:

Warning: Invalid argument supplied for foreach() in /www/htdocs/custom/wp-content/themes/Kopie von glued-ideas-subtle-01/functions.php on line 125

So the problem seems to lie in some recent version. Is there any chance to fix this?

Does anybody happen to have Darren’s fix posted somewhere? I tried his link, but it’s returning a server error.

I just installed this template and a couple of the styles tonight, and I have to tell ya that it really, really kicks fat arse. Great job. Only issue I’m having, of course, is with widgets. I’m using WP 2.2 and they seem pretty damn busted.

Thanks,

Justin

@Justin: google-cache still shows darrens solution:

1. Change the functions.php that comes with the Theme so that it registers the widgets correctly. I commented out calls to the register_sidebars() function and added in one call to this function, as below:

register_sidebars(2, array(’name’ => ‘SideBar’, ‘before_widget’ => ‘’, ‘after_widget’ => ‘’, ‘before_title’ => ‘’, ‘after_title’ => ‘’) );

2. Change the home.php and search.php to add in the calls to the new widget sidebars. To do this I just updated the calls to the dynamic_sidebar() function, as below:

dynamic_sidebar(1);
dynamic_sidebar(2);

http://64.233.183.104/search?q=cache:K-72mdhlMdUJ:www.darrenmothersele.com/web-design/fixing-widgets-in-the-subtle-theme-for-wordpress/+http://www.darrenmothersele.com/web-design/fixing-widgets-in-the-subtle-theme-for-wordpress/&hl=de&ct=clnk&cd=1&gl=de&ie=UTF-8&client=firefox-a

Just updated the german translation started by… (?).
http://www.ich-war-hier.de/pub/wordpress/gluedideas_subtle_de_DE_20070813.tar.gz

I don’t know why, but things like “archives” and footer are not replaced (?). By the way, darren’s fix does not work for me (version 2.2.2) :-(

Thanks, Frank!

Didn’t even think to try the Google cache… Works like a charm now.

Justin

@Justin: Could you please send me your functions.php, home.php and search.php? I don’t know what I’m doing wrong :-( [spam.frank(at)ich-war-hier(dot)de]

No problem, Fank. They’ll be on their way shortly.

For anyone else watching… I did run into two problems when I tried to just copy and paste the previously posted snippet:

1. The > changed into their ANSI equivalents (> if I remember correctly).

2. The consecutive single quotes copied as those open/closing type of single quotes instead of the plain ol’ apostrophe one (‘). Had to go through and make sure those were kosher, too.

Justin

Can you distinguish them? Antialiasing forever ^^
http://www.ich-war-hier.de/pub/wordpress/post15.png

Thanks Justin!

I think it’s every one of the single quotes in the array passed to the register_sidebars() function:

register_sidebars(2, array(‘name’ => ‘SideBar’, ‘before_widget’ => ”, ‘after_widget’ => ”, ‘before_title’ => ”, ‘after_title’ => ”) );

hi Christopher,

just to know, did you decide to update glued theme to get it working with wp 2.2?

cheers

Unfortunately Darren’s fix does not work for me either. Subtle does not support WordPress 2.2.3 yet.

WP 2.3 upgrading destroyed, a sort of, my blog, as of now, i can do nothing until this very good theme, glued is fixed. :(

+1 to get a theme upgrade to latest wordpress… sidebars doesn’t work :(



Allie Perdue milfsoup crazy ass fucking Dirty World Tour ass parade fuckteamfive magicalfeet milfsoup bangbus bang bus bigmouthfuls Newbie Black Spanish Diosa ass parade facialfest fucking pussies milf soup Marquetta Jewel Bait Bus magicalfeet Alanna Ackerman bigtitsroundasses bigtitcreampie Working Latinas workinglatinas Vivian West Alexis Silver milfsoup Allie Foster fucking girls couple pussies milfsoup bangbus juicy round ass facialfest Fuck Team Five gothic chick Alexa Benson Assparade BIG booty latina lips milf lessons fuck team five bigtitcreampie milfsoup Alicia Silverjones bangbros eva angelina Eva Angelina big mouthfuls Backroommilf Alix Lakehurst Bait Bus milflessons Blowjob Ninjas milf soup celeb king Puma Sweede Sophie Dee cock hungry big mouthfuls Fuck Team Five Sativa Rose big mouthfuls Fuck Team Five Alicia Tease Tugjobs Shy Love big mouthfuls Britney Blew bang bus pushing up daisies bigmouthfuls bang bros sinfulcomics Catholic school girls fucking teen ball honeys bangbus pimpin Busty Milf Jessi Summers fuck videos bangbus big bubble butt Esperanza Gomez sweet pussy Celeb Nudity Ahryan Astyn Alayah Sashu squirting 3DS Max 8 OEM3Q 3GP Video Converterdownload acdsee 2009 oemred eye remover procheapest AutoCADDownload AutoCAD 2009cheap AutoCAD 2009Vision Backup Enterprisecheap Macromedia ColdFusionfree nero 5 downloadcheap adobe photoshop cscoldfusion mx 7 downloadkamagra sildenafil citratekamagra generic viagraorder caverta onlinecaverta 100buy cavertatadaliscasodex 50 mg tabletbisexual pornbisexual sexbisexual videos Big Tits Cream Pie BIG booty milfsoup Alix Lakehurst Allie Perdue big mouthfuls facialfest Newbie Black Working Latinas Abby Skyy bigtitsroundasses milflessons bang bus momsanaladventure Bait Bus facialfest pussy movies Assparade Monstersofcock magicalfeet ball honeys big mouthfuls bangbus ass parade big mouthfuls newbieblack facialfest fuck team five blowjobninjas fucking girls Tugjobs Magical Feet bangbros milf soup Fuck Team Five Alexis Silver ass parade Allie Foster fucking pussies Monstersofcock ball honeys big mouthfuls bangbros bangbus fuck videos Ahryan Astyn Alanna Ackerman Alayah Sashu bang bros Fuck Team Five Alexa Benson fucking teen couple pussies Alicia Tease ass parade bang bros fuckteamfive Bait Bus Fuck Team Five FuckTeamFive bigmouthfuls Alicia Silverjones