<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Error in plugin userimages</title>
		<link>https://www.cotonti.com</link>
		<description>Last topic posts</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Mon, 20 Apr 2026 10:05:55 -0000</pubDate>

		<item>
			<title>SergeySt</title>
			<description><![CDATA[<blockquote><a href="https://www.cotonti.com/forums?m=posts&amp;q=7792&amp;d=1#39904">#39904</a> <strong>Macik: </strong>
<p>Please, write these data:</p>

<ul><li>version of  Cotonti</li>
	<li>version of plugin</li>
	<li>version of PHP</li>
</ul><p><strong>Добавлено 12 минуты спустя:</strong></p>

<p>Ok. I had check the code. It happend due to PHP using strict standards. In this case <strong style="margin:0px;padding:0px;border:0px;font-size:13.63636302948px;vertical-align:baseline;color:rgb(0,0,0);font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;line-height:17.8048000335693px;">Only variables should be passed by reference</strong>.</p>

<p>So you must use temporary variable. Change code as follows:</p>

<pre class="brush:php;">
			$gd_supported = array('jpg', 'jpeg', 'png', 'gif');
			$var = explode(".", $file['name']);
			$file_ext = strtolower(array_pop($var));
			$fcheck = cot_file_check($file['tmp_name'], $file['name'], $file_ext);
</pre>

<p> </p>
</blockquote>

<p>Your code also helped. Thanks a lot.</p>
<p><strong>Added 3 minutes later:</strong></p><blockquote><a href="https://www.cotonti.com/forums?m=posts&amp;q=7792&amp;d=1#39907">#39907</a> <strong>Macik: </strong>
<p>Already fixed on GitHub repo.</p>
</blockquote>

<p>Cool! Thank a lot again!</p>
]]></description>
			<pubDate>Fri, 12 Sep 2014 10:18:00 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7792&d=0#post39908]]></link>
		</item>
		<item>
			<title>Macik</title>
			<description><![CDATA[<p>Already fixed on GitHub repo.</p>
]]></description>
			<pubDate>Fri, 12 Sep 2014 10:13:34 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7792&d=0#post39907]]></link>
		</item>
		<item>
			<title>SergeySt</title>
			<description><![CDATA[<blockquote><a href="https://www.cotonti.com/forums?m=posts&amp;q=7792&amp;d=1#39902">#39902</a> <strong>Lover: </strong>
<p>yes same problem for me too , you can put @ for error closed ?</p>

<p><strong>Added 4 minutes later:</strong></p>

<p>$file_ext = strtolower(end(explode(".", $file['name'])));</p>

<p>like this :D</p>

<p>@$file_ext = strtolower(end(explode(".", $file['name'])));</p>
</blockquote>

<p>Thank you, this one helped</p>

<blockquote>
<p style="margin:.6em 0px;padding:0px;border:0px;vertical-align:baseline;line-height:1.6em;color:rgb(68,68,68);font-family:sans-serif;background:rgb(238,238,238);"><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;line-height:1.6em;background:transparent;">Check gd library. </span>If you don't installed dg library this error is normal and contact your host provider.</p>

<p style="margin:.6em 0px;padding:0px;border:0px;vertical-align:baseline;line-height:1.6em;color:rgb(68,68,68);font-family:sans-serif;background:rgb(238,238,238);">Save the following code as gd.php and upload public_html. Check it yoursite.com/gd.php</p>
</blockquote>

<p>I checked. This is the message I got:</p>

<p>array(12) { ["GD Version"]=&gt; string(26) "bundled (2.1.0 compatible)" ["FreeType Support"]=&gt; bool(true) ["FreeType Linkage"]=&gt; string(13) "with freetype" ["T1Lib Support"]=&gt; bool(false) ["GIF Read Support"]=&gt; bool(true) ["GIF Create Support"]=&gt; bool(true) ["JPEG Support"]=&gt; bool(true) ["PNG Support"]=&gt; bool(true) ["WBMP Support"]=&gt; bool(true) ["XPM Support"]=&gt; bool(true) ["XBM Support"]=&gt; bool(true) ["JIS-mapped Japanese Font Support"]=&gt; bool(false) }</p>

<p> </p>

<p> </p>
]]></description>
			<pubDate>Fri, 12 Sep 2014 08:54:32 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7792&d=0#post39905]]></link>
		</item>
		<item>
			<title>Macik</title>
			<description><![CDATA[<p>Please, write these data:</p>

<ul><li>version of  Cotonti</li>
	<li>version of plugin</li>
	<li>version of PHP</li>
</ul><p><strong>Добавлено 12 минуты спустя:</strong></p>

<p>Ok. I had check the code. It happend due to PHP using strict standards. In this case <strong style="margin:0px;padding:0px;border:0px;font-size:13.63636302948px;vertical-align:baseline;color:rgb(0,0,0);font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;line-height:17.8048000335693px;">Only variables should be passed by reference</strong>.</p>

<p>So you must use temporary variable. Change code as follows:</p>

<pre class="brush:php;">
			$gd_supported = array('jpg', 'jpeg', 'png', 'gif');
			$var = explode(".", $file['name']);
			$file_ext = strtolower(array_pop($var));
			$fcheck = cot_file_check($file['tmp_name'], $file['name'], $file_ext);
</pre>

<p> </p>
]]></description>
			<pubDate>Fri, 12 Sep 2014 08:34:26 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7792&d=0#post39904]]></link>
		</item>
		<item>
			<title>Gökhan YILDIZ</title>
			<description><![CDATA[<p><span style="line-height:1.6em;">Check gd library. </span>If you don't installed dg library this error is normal and contact your host provider.</p>

<p>Save the following code as gd.php and upload public_html. Check it yoursite.com/gd.php</p>

<pre class="brush:php;">
&lt;?php
var_dump(gd_info());
?&gt;</pre>

<p> </p>
<p><strong>3 dakikalar dakika sonra eklendi:</strong></p><blockquote><a href="https://www.cotonti.com/forums?m=posts&amp;q=7792&amp;d=1#39902">#39902</a> <strong>Lover: </strong>
<p>yes same problem for me too , you can put @ for error closed ?</p>

<p><strong>Added 4 minutes later:</strong></p>

<p>$file_ext = strtolower(end(explode(".", $file['name'])));</p>

<p>like this :D</p>

<p>@$file_ext = strtolower(end(explode(".", $file['name'])));</p>
</blockquote>

<p>error hiding is not good solution :)</p>
]]></description>
			<pubDate>Fri, 12 Sep 2014 08:27:17 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7792&d=0#post39903]]></link>
		</item>
		<item>
			<title>Lover</title>
			<description><![CDATA[<p>yes same problem for me too , you can put @ for error closed ?</p>
<p><strong>Added 4 minutes later:</strong></p><p>$file_ext = strtolower(end(explode(".", $file['name'])));</p>

<p>like this :D</p>

<p>@$file_ext = strtolower(end(explode(".", $file['name'])));</p>
]]></description>
			<pubDate>Fri, 12 Sep 2014 08:20:49 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7792&d=0#post39902]]></link>
		</item>
		<item>
			<title>SergeySt</title>
			<description><![CDATA[<p>On server appears file error_log:</p>

<blockquote>
<p><span style="line-height:1.6em;">PHP Strict Standards:  Only variables should be passed by reference in /home/********/public_html/plugins/userimages/userimages.profile.update.php on line 33</span></p>
</blockquote>

<p><span style="line-height:1.6em;">This file - </span><span style="line-height:20.7999992370605px;">userimages.profile.update.php -</span><span style="line-height:1.6em;"> hasn't been changed or modified by me, this is system file.</span></p>

<p>I think that this happens after user uploads his photo or avatar to his profile.</p>

<p>This thing doesn't change anything on site, so everything works fine and photo uploads for user. But in this log file new line is appeared and it's happening everytime new photo is uploaded.</p>

<p>Please, solve this problem. If you need more information to solve this - let me know.</p>
]]></description>
			<pubDate>Fri, 12 Sep 2014 06:27:40 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7792&d=0#post39901]]></link>
		</item>
	</channel>
</rss>