<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Array Problem... - Version 3.x General Support				            </title>
            <link>https://efiction.org/community/version-3-x-general-support/array-problem/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Mon, 20 Apr 2026 19:08:54 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Re: Array Problem...</title>
                        <link>https://efiction.org/community/version-3-x-general-support/array-problem/#post-20441</link>
                        <pubDate>Mon, 20 Jun 2016 18:30:43 +0000</pubDate>
                        <description><![CDATA[Very belated, but I just wanted to say that I tried this solution and it appears to have worked. Thank you!]]></description>
                        <content:encoded><![CDATA[Very belated, but I just wanted to say that I tried this solution and it appears to have worked. Thank you!]]></content:encoded>
						                            <category domain="https://efiction.org/community/version-3-x-general-support/">Version 3.x General Support</category>                        <dc:creator>Killa</dc:creator>
                        <guid isPermaLink="true">https://efiction.org/community/version-3-x-general-support/array-problem/#post-20441</guid>
                    </item>
				                    <item>
                        <title>Re: Array Problem...</title>
                        <link>https://efiction.org/community/version-3-x-general-support/array-problem/#post-20259</link>
                        <pubDate>Fri, 25 Sep 2015 12:30:12 +0000</pubDate>
                        <description><![CDATA[Hello Tammster,If I check the current storyform.php I see the following code:$couids = array() ;if(is_array($stories&#091;&#039;coauthors&#039;]) &amp;&amp; count($stories&#091;&#039;coautho...]]></description>
                        <content:encoded><![CDATA[Hello Tammster,<br><br>If I check the current storyform.php I see the following code:<br><br><pre><br>$couids = array() ;<br>if(is_array($stories&#091;&#039;coauthors&#039;]) &amp;&amp; count($stories&#091;&#039;coauthors&#039;])) {<br>$coauths = dbquery(&quot;SELECT &quot;._PENNAMEFIELD.&quot; as penname, &quot;._UIDFIELD.&quot; as uid FROM &quot;._AUTHORTABLE.&quot; WHERE FIND_IN_SET(&quot;._UIDFIELD.&quot;, &#039;&quot;.implode(&quot;,&quot;, $stories&#091;&#039;coauthors&#039;]).&quot;&#039;) &gt; 0&quot;);<br>while($c = dbassoc($coauths)) {<br>if($c&#091;&#039;uid&#039;] == $stories&#091;&#039;uid&#039;]) continue;<br>$output .= &quot;&lt;option label=&#039;&quot;.$c&#091;&#039;penname&#039;].&quot;&#039; value=&#039;&quot;.$c&#091;&#039;uid&#039;].&quot;&#039;&gt;&quot;.$c&#091;&#039;penname&#039;].&quot;&lt;/option&gt;&quot;;<br>$couids&#091;] = $c&#091;&#039;uid&#039;];<br>}<br>$couids = implode(&quot;,&quot;, $couids);<br>}<br>$output .= &quot;&lt;/select&gt;&lt;/label&gt;<br>&lt;input type=&#039;hidden&#039; name=&#039;coauthors&#039; id=&#039;coauthors&#039; value=&#039;$couids&#039;&gt;&lt;/div&gt;&quot;;<br>}<br></pre><br><br>Your error simple means that $couids is an array (a list) while it should be a string (simple text). <br>Try moving line 74 to line 75, like this:<br><br><pre>$couids = array() ;<br>if(is_array($stories&#091;&#039;coauthors&#039;]) &amp;&amp; count($stories&#091;&#039;coauthors&#039;])) {<br>$coauths = dbquery(&quot;SELECT &quot;._PENNAMEFIELD.&quot; as penname, &quot;._UIDFIELD.&quot; as uid FROM &quot;._AUTHORTABLE.&quot; WHERE FIND_IN_SET(&quot;._UIDFIELD.&quot;, &#039;&quot;.implode(&quot;,&quot;, $stories&#091;&#039;coauthors&#039;]).&quot;&#039;) &gt; 0&quot;);<br>while($c = dbassoc($coauths)) {<br>if($c&#091;&#039;uid&#039;] == $stories&#091;&#039;uid&#039;]) continue;<br>$output .= &quot;&lt;option label=&#039;&quot;.$c&#091;&#039;penname&#039;].&quot;&#039; value=&#039;&quot;.$c&#091;&#039;uid&#039;].&quot;&#039;&gt;&quot;.$c&#091;&#039;penname&#039;].&quot;&lt;/option&gt;&quot;;<br>$couids&#091;] = $c&#091;&#039;uid&#039;];<br>}<br>}<br>$couids = implode(&quot;,&quot;, $couids);<br>$output .= &quot;&lt;/select&gt;&lt;/label&gt;<br>&lt;input type=&#039;hidden&#039; name=&#039;coauthors&#039; id=&#039;coauthors&#039; value=&#039;$couids&#039;&gt;&lt;/div&gt;&quot;;<br>}</pre><br><br><br>Could you let me know if this works? If you still get an error you can try this:<br><br><pre>$couids = &#039;&#039; ;<br>if(is_array($stories&#091;&#039;coauthors&#039;]) &amp;&amp; count($stories&#091;&#039;coauthors&#039;])) {<br>$couids = array() ;<br>$coauths = dbquery(&quot;SELECT &quot;._PENNAMEFIELD.&quot; as penname, &quot;._UIDFIELD.&quot; as uid FROM &quot;._AUTHORTABLE.&quot; WHERE FIND_IN_SET(&quot;._UIDFIELD.&quot;, &#039;&quot;.implode(&quot;,&quot;, $stories&#091;&#039;coauthors&#039;]).&quot;&#039;) &gt; 0&quot;);<br>while($c = dbassoc($coauths)) {<br>if($c&#091;&#039;uid&#039;] == $stories&#091;&#039;uid&#039;]) continue;<br>$output .= &quot;&lt;option label=&#039;&quot;.$c&#091;&#039;penname&#039;].&quot;&#039; value=&#039;&quot;.$c&#091;&#039;uid&#039;].&quot;&#039;&gt;&quot;.$c&#091;&#039;penname&#039;].&quot;&lt;/option&gt;&quot;;<br>$couids&#091;] = $c&#091;&#039;uid&#039;];<br>}<br>$couids = implode(&quot;,&quot;, $couids);<br>}<br>$output .= &quot;&lt;/select&gt;&lt;/label&gt;<br>&lt;input type=&#039;hidden&#039; name=&#039;coauthors&#039; id=&#039;coauthors&#039; value=&#039;$couids&#039;&gt;&lt;/div&gt;&quot;;<br>}</pre>]]></content:encoded>
						                            <category domain="https://efiction.org/community/version-3-x-general-support/">Version 3.x General Support</category>                        <dc:creator>Alvina</dc:creator>
                        <guid isPermaLink="true">https://efiction.org/community/version-3-x-general-support/array-problem/#post-20259</guid>
                    </item>
				                    <item>
                        <title>Array Problem...</title>
                        <link>https://efiction.org/community/version-3-x-general-support/array-problem/#post-3493</link>
                        <pubDate>Wed, 23 Sep 2015 08:26:41 +0000</pubDate>
                        <description><![CDATA[Hello All,So when I &quot;Add New Story&quot; while adding a chapter I get this message... Array to string conversion in /home2/****/public_html/fanfiction/includes/storyform.php on line 77H...]]></description>
                        <content:encoded><![CDATA[Hello All,<br><br>So when I &quot;Add New Story&quot; while adding a chapter I get this message... <br>Array to string conversion in /home2/****/public_html/fanfiction/includes/storyform.php on line 77<br><br>Here is what is on lines 76-78 of this page:}<br>$output .= &quot;&lt;/select&gt;&lt;/label&gt;<br>&lt;input type=&#039;hidden&#039; name=&#039;coauthors&#039; id=&#039;coauthors&#039; value=&#039;$couids&#039;&gt;&lt;/div&gt;&quot;;<br>}<br><br>Could someone be so kind as to tell me what is wrong with this code and how to fix it?<br><br> :-)<br>]]></content:encoded>
						                            <category domain="https://efiction.org/community/version-3-x-general-support/">Version 3.x General Support</category>                        <dc:creator>Tammster</dc:creator>
                        <guid isPermaLink="true">https://efiction.org/community/version-3-x-general-support/array-problem/#post-3493</guid>
                    </item>
							        </channel>
        </rss>
		