<?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>Coding Concepts</title>
	<atom:link href="http://www.codingconcepts.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codingconcepts.net</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Fri, 18 May 2012 16:46:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Joomla dispatcher.php and event.php Fix Errors</title>
		<link>http://www.codingconcepts.net/2012/05/18/joomla-dispatcher-php-and-event-php-fix-errors/</link>
		<comments>http://www.codingconcepts.net/2012/05/18/joomla-dispatcher-php-and-event-php-fix-errors/#comments</comments>
		<pubDate>Fri, 18 May 2012 16:41:52 +0000</pubDate>
		<dc:creator>Brendan</dc:creator>
				<category><![CDATA[Support Articles]]></category>

		<guid isPermaLink="false">http://www.codingconcepts.net/?p=77</guid>
		<description><![CDATA[There are a few plugins that aren&#8217;t compatible with PHP 5.3+ and Joomla 1.5x, and they may show up like the error messages below: PHP Warning: Parameter 2 to plgContentEmailCloak() expected to be a reference, value given in /libraries/joomla/event/dispatcher.php on line 136 PHP Warning: Parameter 2 to plgContentLoadModule() expected to be a reference, value given [...]]]></description>
			<content:encoded><![CDATA[<p>There are a few plugins that aren&#8217;t compatible with PHP 5.3+ and Joomla 1.5x, and they may show up like the error messages below:</p>
<p><span style="color: #ff0000;">PHP Warning: Parameter 2 to plgContentEmailCloak() expected to be a reference, value given in /libraries/joomla/event/dispatcher.php on line 136</span><br />
<span style="color: #ff0000;">PHP Warning: Parameter 2 to plgContentLoadModule() expected to be a reference, value given in /libraries/joomla/event/dispatcher.php on line 136</span><br />
<span style="color: #ff0000;">PHP Warning: Parameter 2 to plgContentPagebreak() expected to be a reference, value given in /libraries/joomla/event/dispatcher.php on line 136</span></p>
<p><span style="color: #ff0000;">PHP Warning: Parameter 2 to plgContentJA_highslide::onPrepareContent() expected to be a reference, value given in /libraries/joomla/event/event.php on line 67</span><br />
<span style="color: #ff0000;">PHP Warning: Parameter 2 to plgContentJA_tabs::onPrepareContent() expected to be a reference, value given in /libraries/joomla/event/event.php on line 67</span></p>
<p>Fortunately, this is a pretty simple thing to fix; look for line 136 in dispatcher.php and line 67 in event.php and add this one single line;</p>
<p><span style="color: #008000;">$args[1]   = &amp; $args[1];</span></p>
<p>So your final code (for dispatcher.php) will look like this:</p>
<p><span style="color: #008000;">if (function_exists($observer['handler']))</span><br />
<span style="color: #008000;">{</span><br />
<span style="color: #008000;">   $args[1]   = &amp; $args[1];</span><br />
<span style="color: #008000;">   $result[] = call_user_func_array($observer['handler'], $args);</span><br />
<span style="color: #008000;">}</span></p>
<p>and for event.php:</p>
<p><span style="color: #008000;">if (method_exists($this, $event)) {</span><br />
<span style="color: #008000;">  $args[1] = &amp; $args[1];</span><br />
<span style="color: #008000;">  return call_user_func_array ( array($this, $event), $args );</span><br />
<span style="color: #008000;"> } else {</span></p>
<p>Alternatively, you can download the fix <a href="http://www.codingconcepts.net/wp-content/uploads/2012/05/joomla.zip">here</a>. This is tested working on Joomla 1.5.23+. Hope this helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codingconcepts.net/2012/05/18/joomla-dispatcher-php-and-event-php-fix-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Assigning the return value of new by reference is deprecated</title>
		<link>http://www.codingconcepts.net/2012/05/17/depreciated/</link>
		<comments>http://www.codingconcepts.net/2012/05/17/depreciated/#comments</comments>
		<pubDate>Thu, 17 May 2012 09:00:03 +0000</pubDate>
		<dc:creator>Brendan</dc:creator>
				<category><![CDATA[Support Articles]]></category>

		<guid isPermaLink="false">http://www.codingconcepts.net/?p=1</guid>
		<description><![CDATA[So you&#8217;ve run into this error message, sometimes in WordPress or another CMS that utilizes code that is considered depreciated. This is sometimes caused by an update to PHP &#8211; which is what&#8217;s happened in this case. Essentially, Since PHP 5.3 assigning the return value is depreciated. In WordPress, in your Admin dashboard, you may [...]]]></description>
			<content:encoded><![CDATA[<p>So you&#8217;ve run into this error message, sometimes in WordPress or another CMS that utilizes code that is considered depreciated. This is sometimes caused by an update to PHP &#8211; which is what&#8217;s happened in this case. Essentially, Since PHP 5.3 assigning the return value is depreciated.</p>
<p>In WordPress, in your Admin dashboard, you may see several error messages under Incoming Links and WordPress Blog &#8211; not critical errors, just warnings. It was annoying, and instead of trying to workaround it by turning off error reporting, I wanted to actually fix the issue and find a working solution.</p>
<p>When doing some research on this, I&#8217;ve come to realize that &#8221;$var =&amp; new &#8230;&#8221; and &#8220;$var = new &#8230;&#8221; are NOT equivalent, as suggested in several places.  Removing the ampersand in some cases actually broke the code, and in fact it seems that the statment with the ampersand is the one that does not create a reference.</p>
<p>In WordPress, there&#8217;s a class called SimplePie &#8211; it contains code that is PHP4 compliant, but hasn&#8217;t yet been switched over to PHP5. The file is called class-simplepie.php. Open it in your favourite text editor (I use Notepad++).</p>
<p>For example, you will see something like this:</p>
<p><span style="color: #008000;">$this-&gt;sanitize =&amp; new SimplePie_Sanitize;</span></p>
<p>in PHP 5.3+, it needs to look like this:<br />
<span style="color: #008000;">$obj = new SimplePie_Sanitize;</span><br />
<span style="color: #008000;"> $this-&gt;sanitize =&amp; $obj;</span></p>
<p>But wait! This doesn&#8217;t solve your issue you say? In some instances I had to replace the =&amp; with = as well, and I found I actually had to go and click on &#8220;Configure&#8221; next to Incoming Links, then hit submit before it would show the changes I made. Since WordPress has no built-in caching system, I find this behavior strange, but at least we know it works.</p>
<p>Or, if you prefer, I&#8217;ve done the work for you. Here&#8217;s a link to download the actual file itself, zipped: <a href="http://www.codingconcepts.net/wp-content/uploads/2012/05/class-simplepie.zip">Download Here</a></p>
<p>Hope this helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codingconcepts.net/2012/05/17/depreciated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: www.codingconcepts.net @ 2012-05-19 22:43:19 -->
