<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WordPress Snippets &#187; wp-table</title>
	<atom:link href="http://www.wpsnippets.com/tag/wp-table/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wpsnippets.com</link>
	<description>Random musings about life, in addition to tips, code snippets and plugins for the average and newbie WordPress user</description>
	<lastBuildDate>Thu, 08 Sep 2011 14:07:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>WP-Table plugin &#8211; Fatal Error fix for WordPress 2.5+</title>
		<link>http://www.wpsnippets.com/2008/06/wp-table-plugin-fatal-error-fix/</link>
		<comments>http://www.wpsnippets.com/2008/06/wp-table-plugin-fatal-error-fix/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 03:34:42 +0000</pubDate>
		<dc:creator>flick</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[activation]]></category>
		<category><![CDATA[alex boelinger]]></category>
		<category><![CDATA[buttonsnap]]></category>
		<category><![CDATA[embedded video with link]]></category>
		<category><![CDATA[fatal error]]></category>
		<category><![CDATA[jovel stefan]]></category>
		<category><![CDATA[kimili flash embed]]></category>
		<category><![CDATA[michael bester]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[support]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wp-table]]></category>

		<guid isPermaLink="false">http://wpsnippets.wordpress.com/?p=7</guid>
		<description><![CDATA[25/05/2009: Now superceded by WP-Table Reloaded &#8211; see below for info! WP-Table plugin by Alex Boelinger is a unique WordPress plugin that allows admins to create tables, by this I mean the ones with rows and columns like in Excel, &#8230; <a href="http://www.wpsnippets.com/2008/06/wp-table-plugin-fatal-error-fix/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p class="info"><span style="color: #ff0000;"><strong>25/05/2009:</strong></span> Now superceded by <a title="Plugin WP-Table Reloaded (English)" href="http://tobias.baethge.com/wordpress-plugins/wp-table-reloaded-english/"><strong>WP-Table Reloaded</strong></a> &#8211; see below for info!</p>
<p><a title="Wordpress Plugins - WP-Table" href="http://alexrabe.boelinger.com/wordpress-plugins/wp-table/"><strong>WP-Table</strong></a> plugin by <a title="Alex Boelinger" href="http://alexrabe.boelinger.com/"><strong>Alex Boelinger</strong></a> is a unique WordPress plugin that allows admins to create tables, by this I mean the ones with rows and columns like in <em>Excel</em>, easily in WordPress. It is the <span style="text-decoration: underline;">only</span> one that I am aware of at the moment that makes it possible to add actual tables without putting-in extra HTML when creating new posts and pages.</p>
<p>However, activating the latest version (1.52) of the plugin triggers a fatal error (shown below) in WordPress 2.5+:</p>
<blockquote><p>Plugin could not be activated because it triggered a <strong>fatal error</strong>.</p></blockquote>
<p>Fortunately there is a quick fix that can be done to resolve this issue, where the full credit for this solution goes to <a title="Kimili - About Michael Bester" href="http://kimili.com/about/"><strong>Michael Bester</strong></a>, the developer of the <a title="Kimili Flash Embed" href="http://kimili.com/plugins/kml_flashembed/"><strong>Kimili Flash Embed</strong></a>, who posted <a title="Jovelblog - Embedded Video with Linl" href="http://www.jovelstefan.de/embedded-video/#comment-112182">a comment on Jovel Stefan&#8217;s Embedded Video Plugin post</a> about a fix to ensure that a plugin should check for the <strong>buttonsnap </strong>class upon activation.</p>
<p>This class is used to add a button to your WordPress editor, and should only ever be loaded once, so if any other plugin uses <strong>buttonsnap</strong>, it will cause the fatal error to occur.</p>
<p>To resolve this problem, find <strong>Line 344 in wp-table.php</strong></p>
<p><code>require_once(WPTABLE_ABSPATH.'js/buttonsnap.php');</code></p>
<p>and <strong>add before it</strong>:</p>
<pre class="brush: php; title: ; notranslate">if(!class_exists('buttonsnap'))</pre>
<p>So ultimately you should see this:</p>
<pre class="brush: php; title: ; notranslate">// ButtonSnap needs to be loaded outside the class in order to work right
if(!class_exists('buttonsnap'))
require_once(WPTABLE_ABSPATH.'js/buttonsnap.php');</pre>
<p>I tested this on a local install of WordPress 2.5.1, and it worked very well. This quick fix has also been posted on the <a title="WP-Table] Need a fix for 2.5 compatability" href="http://wordpress.org/support/topic/168271?replies=12#post-791381">WordPress Support Forums</a>, and hopefully others will find it helpful as well.</p>
<p>Any feedback would be brilliant! If it works for you, please let me know by posting in the comments. Similarly, if it doesn&#8217;t work for you, then again, please do post! I don&#8217;t see the plugin requiring any further edits for the time being (apart from new features) and am confident that it will also work with later WordPress versions as well.</p>
<p class="update"><strong>UPDATE 20/07/08:</strong> Apparently the plugin <a title="Comment!" href="http://wpsnippets.wordpress.com/2008/06/27/wp-table-plugin-fatal-error-fix/#comment-7">does work</a> with WP 2.6!<br />
<strong>UPDATE 28/12/08:</strong> And in <a title="Comment!" href="http://www.wpsnippets.com/2008/06/wp-table-plugin-fatal-error-fix/#comment-95">WP 2.7 as well</a>!</p>
<p class="update"><strong><span style="color: #ff0000;">FINAL UPDATE 25/05/09</span></strong><span style="color: #ff0000;">: <strong><span style="color: #000000;"><a title="Plugin WP-Table Reloaded (English)" href="http://tobias.baethge.com/wordpress-plugins/wp-table-reloaded-english/">WP-Table Reloaded</a> </span></strong><span style="color: #000000;">has been released by </span></span><a title="About Tobias" href="http://tobias.baethge.com/about/"><strong>Tobi<strong>as </strong></strong><strong>Bäthge</strong></a>, and is <a title="Alex Rabe - WP-Table" href="http://alexrabe.boelinger.com/wordpress-plugins/wp-table/">officially the next generation</a> of our beloved <strong>WP-Table</strong> plugin. WPT-Reloaded even allows you to import your old WPT tables, and I can testify that it works seamlessly.  Thanks to Tobias for his hard work!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wpsnippets.com/2008/06/wp-table-plugin-fatal-error-fix/feed/</wfw:commentRss>
		<slash:comments>47</slash:comments>
		</item>
	</channel>
</rss>

