Everything is a Freaking DNS problem - php http://127.0.0.1:8080/blog/taxonomy/term/485/0 en Mollom and Views http://127.0.0.1:8080/blog/mollom-and-views <p>You might have noticed that this blog stopped accepting comments about a month ago.. well. stopped accepting is a big word.. I was still accepting comments, only they were never submitted to the database and after entering a comment to my blog people ended up on a white page.</p> <p>So upon returning from holliday I set out to debug the issue together with one of our Inuits Drupal geeks and quickly ran into the following error.<br /> <div class="geshifilter"><pre class="text geshifilter-text" style="font-family:monospace;"><ol><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">PHP Fatal error: Call to a member function has_more_records() on a non-object in /somepath/modules/views/plugins/views_plugin_display.inc on line 1992, referer: http://www.krisbuytaert.be/blog/comment/reply/1014</div></li></ol></pre></div></p> <p>So apparently my veasion of views 6.x-3.0-alpha3 didn't really like to play with Mollom,<br /> I downgraded views again to 6.x-2.11 and Mollom started showing its Captcha's etc again .</p> <p>So apart from wondering how I ended up installing that alpha3 version (I`m sure Drush didn't do that), all is back to normal. and you should be able to comment on this blog again</p> http://127.0.0.1:8080/blog/mollom-and-views#comments comments drupal mollom opensource php views Tue, 03 Aug 2010 22:06:21 +0000 Kris Buytaert 1015 at http://127.0.0.1:8080/blog Planet , Drupal Style http://127.0.0.1:8080/blog/planet-drupal-style <p>So when you setup an aggregator there's this one thing you miss from a regular planet ...the list of blogs with their individual Feeds.</p> <p>I wanted to use this for planet.loadays.org again and realized I don't know where I got this snippet from or if I wrote it myselve or whatever .. but I do realize that unless I document it here I won't be able to point other people to it again :) So just create a block like this one :</p> <p><div class="geshifilter"><pre class="text geshifilter-text" style="font-family:monospace;"><ol><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&lt;?php</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> $subscriptions = db_query('SELECT title,link,url FROM {aggregator_feed} ORDER BY title');</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> while ($list = db_fetch_object($subscriptions)) {</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> print &quot;&lt;a href=\&quot;$list-&gt;link\&quot;&gt;$list-&gt;title&lt;/a&gt; (&lt;a href=\&quot;$list-&gt;url\&quot;&gt;feed&lt;/a&gt;)&lt;br&gt;\n&quot;;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> }</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">?&gt;</div></li></ol></pre></div></p> http://127.0.0.1:8080/blog/planet-drupal-style#comments code drupal open source php planet Fri, 15 Jan 2010 19:02:21 +0000 Kris Buytaert 977 at http://127.0.0.1:8080/blog Option D http://127.0.0.1:8080/blog/option-d <p>Lots of people writing about Snorkle again today ,Monty <a href="http://monty-says.blogspot.com/2009/12/help-saving-mysql.html" rel="nofollow">Says, help saving MySQL</a></p> <p>He gives us different options, a , b or c .. but I , and some others, want an option d </p> <p>No I don't trust Oracle, it's not like they have been a very good Open Source Citizen, yes they contribute to the kernel and other projects but my feeling says it's only because they have to (Kernel, Xen and others ) not because they Want to (thinking about Unfakable etc) , if they would really want to they probably would work with the CentOS community more etc, and as Monty mentions their InnoDB track record could be better.</p> <p>But on the other hand I don't think the EU should block the deal because Monty wants his baby back , cheap , as honestly imvho that's what they really want, be able to buy MySQL back for a nice price, either beceause Oracle is being forced by the EU to split up Sun, or eventually the deal doesn't come trough and they can buy MySQL back when Sun really goes belly up (which is what probably happens when option a) is chosen.</p> <p>According to <a href="http://money.cnn.com/news/newsfeeds/articles/marketwire/0568514.htm" rel="nofollow">CNN</a> , Oracle has made some pledges about MySQL earlier today.<br /> My main question there however is about the Opposite of option 5. which is exactly what created the problem.<br /> <cite><br /> 5. Support not mandatory. Customers will not be required to purchase support services from Oracle as a condition to obtaining a commercial license to MySQL. </cite></p> <p>Yes we want support, but no we don't want a commercial license with it, we want support on the GPL version, which is a problem lots of Open Source vendors struggle with , some of them<br /> force people wanting to buy support to go for the commercial license. And it is exaclty that upselling that got MySQL in the troubles it has today .</p> <p>Josh Berkus has a point declaring<br /> <a href="http://it.toolbox.com/blogs/database-soup/snoracle-mysql-and-the-death-of-duallicensing-35850?rss=1" rel="nofollow">Dual Licensing dead</a>, just as I he sees much more future in the Percona like model than in the Dual License model MySQL used to have ..</p> <p>Dries <a href="http://pooteeweet.org/blog/0/1639#m1639" rel="nofollow"> points</a> to one of the comments on<br /> <a href="http://twitter.com/Dries/status/6660856340" rel="nofollow"> Lukas Kahwe Smith 's Come On Money er Monty article</a> stating<br /> <cite>Monty walks away with several millions in hard cash, while [PHP +] MySQL cheerleaders who bet on "MySQL" franchise only walk away with a cute dolphin T-shirt</cite></p> <p>Which makes me wonder when I`ll be getting a nice Acquia T-shirt :)</p> http://127.0.0.1:8080/blog/option-d#comments acquia drupal eu mysql open source oracle php snorkle Mon, 14 Dec 2009 20:30:42 +0000 Kris Buytaert 969 at http://127.0.0.1:8080/blog Geekdinner Antwerp Edition 2 http://127.0.0.1:8080/blog/geekdinner-antwerp-edition-2 <p>Last Wednesday after the LSec event with Bruce Schneier and the R ans S from RSA , we already had a mini AdHoc GeekDinner in Leuven, one that pretty would have matched Philips requirements for having it called Geek dinner</p> <p><a href="http://www.paeps.cx/weblog/life/proliferation_of_geek_events.html" rel="nofollow">Philip</a> has been ranting this week about different events titled "Geek" not attrackting real geeks. that know hex and binary is but merely atrackting the Startup/Web crowd, now there's nothing wrong with both crowds, and I happen to be part of both but it can cause strange situations<br /> <a href="http://www.geekdinner.be/" rel="nofollow">Geekdinner.be</a>Tom K arranged a nice deal with <a href="http://detroubadour.be/" rel="nofollow">De Troubadour</a> so foodwise it promises to be great.</p> <p>And with the list currently showing a variety of<br /> Linux and BSD geeks, (both on Kernel and System Level it seems) the Apache geeks , some Ruby geeks, some Legal geeks, some Java geeks, etc that part should be covered ..</p> <p>So I`m pretty sure that the majority of Geeks at the upcoming Geekdinner will realize there are only 10 kind of people</p> <p>Still missing however from that list are the Drupal and PHP folks, the Django crowd, some Distribution geeks, some Gnome Geeks and some KDE geeks. Heck you all know I`m talking about you .. so go and subscribe <a href="http://geekdinner20090331.pbwiki.com/FrontPage" rel="nofollow">here</a></p> <p>I hope we aren't scaring away too much folks with this really Open Source oriented GeekDinner :) </p> <p>PS. And yes I think it's time for <a href="http://blog.elisehuard.be" rel="nofollow">Elise</a> to organise a Real Belgian Girl Geek Dinner :)</p> http://127.0.0.1:8080/blog/geekdinner-antwerp-edition-2#comments antwerpen apache detroubadour django drupal geekdinner linux open source php Sun, 01 Mar 2009 19:14:29 +0000 Kris Buytaert 882 at http://127.0.0.1:8080/blog This should *never* happen! http://127.0.0.1:8080/blog/node/724 <p>While playing around with the great <a href="http://gert.sos.be/en/" rel="nofollow">MySQL Activity Reporter</a> , I ran into the following error.</p> <p>[client 192.168.254.72] PHP Fatal error: strftime() [<a href='function.strftime'>function.strftime</a>]: Timezone database is corrupt - this should *never* happen! in /var/lib/mysqlard/mysqlar.php on line 62</p> <p>Now the error is clear .. the Timezone database is corrupt and I`m the one to blame for .. this was on a pretty stripped down Centos that lives in UTC. So there wasn't a real Timezone database.</p> <p>Obviously a quick apt-get install tzdata solved the problem, but once again the lesson is.. don't strip too much .. you'll eventually endup needing those 3 Kb of free space you gained anyhow.</p> http://127.0.0.1:8080/blog/node/724#comments centos mysql mysqlar opensource php timezone Wed, 10 Sep 2008 18:23:48 +0000 Kris Buytaert 724 at http://127.0.0.1:8080/blog Stupid PHP Error http://127.0.0.1:8080/blog/node/447 <p>Dear Future self,</p> <p>The next time you run into PHP Fatal error: Call to undefined method DB_Error::query() and you are pretty sure all the correct libraries are installed , check if you can connect to the database with the username / password you have configured. Just as today you might have migrated to a new mysql server and forgotten to update the connection string.</p> <p>thank you for your attention.</p> http://127.0.0.1:8080/blog/node/447#comments drupal error mysql php Tue, 11 Sep 2007 21:03:07 +0000 Kris Buytaert 447 at http://127.0.0.1:8080/blog