<?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>Two Drifters &#187; error</title>
	<atom:link href="http://blog.ideaday.de/max/tag/error/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ideaday.de/max</link>
	<description>Off to see the world.</description>
	<lastBuildDate>Sun, 05 Feb 2012 16:48:05 +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>Concrete 5 SQL errors during installation</title>
		<link>http://blog.ideaday.de/max/2012/02/concrete-5-sql-errors-during-installation/</link>
		<comments>http://blog.ideaday.de/max/2012/02/concrete-5-sql-errors-during-installation/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 19:57:24 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[Concrete 5]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[C5]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[explanation]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql error]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://blog.ideaday.de/max/?p=1667</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2012/02/concrete-5-sql-errors-during-installation/' addthis:title='Concrete 5 SQL errors during installation '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>We have seen this error with Concrete 5.5.1 You try to setup Concrete 5, and get strange SQL errors during the installation: If installing with an empty site, like this you get: mysql error: [1048: Column 'uID' cannot be null] in EXECUTE("INSERT INTO Config (cfKey,cfValue,uID) VALUES ('NEWSFLOW_LAST_VIEWED','FIRSTRUN',NULL)") If installing with Sample content with Blog: The [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2012/02/concrete-5-sql-errors-during-installation/' addthis:title='Concrete 5 SQL errors during installation ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2012/02/concrete-5-sql-errors-during-installation/' addthis:title='Concrete 5 SQL errors during installation '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><p>We have seen this error with <strong>Concrete 5.5.1</strong></p>
<p>You try to setup Concrete 5, and get <strong>strange SQL errors</strong> during the installation:</p>
<p>If installing with an <strong>empty site</strong>, like this</p>
<p align="center"><a href="http://ideadayblog.ideaday.netdna-cdn.com/max/wp-content/uploads/2012/02/c5-nosample-content-chosen.png"><img hspace="10" alt="c5-nosample-content-chosen" vspace="10" src="http://ideadayblog.ideaday.netdna-cdn.com/max/wp-content/uploads/2012/02/c5-nosample-content-chosen-small.png" width="450" height="208" /></a></p>
<p>you get:</p>
<p align="center"><a href="http://ideadayblog.ideaday.netdna-cdn.com/max/wp-content/uploads/2012/02/c5-mysql-error.png"><img hspace="10" alt="c5-mysql-error" vspace="10" src="http://ideadayblog.ideaday.netdna-cdn.com/max/wp-content/uploads/2012/02/c5-mysql-error-small.png" width="450" height="129" /></a></p>
<p><em>mysql error: [1048: Column 'uID' cannot be null] in EXECUTE("INSERT INTO Config (cfKey,cfValue,uID) VALUES ('NEWSFLOW_LAST_VIEWED','FIRSTRUN',NULL)")</em></p>
<p>If installing with <strong>Sample content with Blog</strong>:</p>
<p align="center"><a href="http://ideadayblog.ideaday.netdna-cdn.com/max/wp-content/uploads/2012/02/c5_with_sample_content.png"><img hspace="10" alt="c5 with sample content" vspace="10" src="http://ideadayblog.ideaday.netdna-cdn.com/max/wp-content/uploads/2012/02/c5_with_sample_content-small.png" width="450" height="276" /></a></p>
<p>The error you get is:</p>
<p><em>Catchable fatal error: Argument 1 passed to ContentImporter::importPageAreas() must be an instance of Page, boolean given, called in /concrete/libraries/content/importer.php on line 75 and defined in /concrete/libraries/content/importer.php on line 197.</em></p>
<p>&nbsp;</p>
<p><strong>Solution:</strong></p>
<p>You don't run Varnish by any chance, do you? We do, and we had it set up to &#8230; dispose of some cookies. The solution is, in Varnish' case, to enable pass-through for the host you are installing on.</p>
<p>You want to enable cookies.</p>
<p>&nbsp;</p>
<p><strong>Explanation:</strong></p>
<p>The code which breaks is located in <em>concrete5.5.1\concrete\models\package\starting_point.php</em></p>
<blockquote>
<p>  Config::save('SITE', SITE);<br />
  Config::save('SITE_APP_VERSION', APP_VERSION);<br />
  $u = new User();<br />
  $u-&gt;saveConfig('NEWSFLOW_LAST_VIEWED', 'FIRSTRUN');</p>
</blockquote>
<p>As you see, this is the first time a User is created and used.</p>
<p>The User class is defined in <em>concrete5.5.1\concrete\models\user.php</em></p>
<blockquote>
<p> <strong> if (isset($_SESSION['uID'])) {<br /></strong>     $this-&gt;uID = $_SESSION['uID'];<br />
     $this-&gt;uName = $_SESSION['uName'];<br />
     $this-&gt;uTimezone = $_SESSION['uTimezone'];<br />
     if (isset($_SESSION['uDefaultLanguage'])) {<br />
      $this-&gt;uDefaultLanguage = $_SESSION['uDefaultLanguage'];<br />
     }<br />
     $this-&gt;superUser = ($_SESSION['uID'] == USER_SUPER_ID) ? true : false;<br />
    } else {<br />
    <strong> $this-&gt;uID = null;<br /></strong>     $this-&gt;uName = null;<br />
     $this-&gt;superUser = false;<br />
     $this-&gt;uDefaultLanguage = null;<br />
     $this-&gt;uTimezone = null;<br />
    }<br />
    $this-&gt;uGroups = $this-&gt;_getUserGroups();<br />
    if (!isset($args[2])) {<br />
     $_SESSION['uGroups'] = $this-&gt;uGroups;<br />
    }<br />
   }</p>
</blockquote>
<p>The constructor checks in the Session for a valid user ID. If no user ID is found, it is set to zero. This happens <strong>if you throw away the cookies</strong>! Because the session is stored in them.</p>
<p>HTH. Feel free to comment on similar errors and solutions.</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2012/02/concrete-5-sql-errors-during-installation/' addthis:title='Concrete 5 SQL errors during installation ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.ideaday.de/max/2012/02/concrete-5-sql-errors-during-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zimbra upgrade without tears</title>
		<link>http://blog.ideaday.de/max/2011/01/zimbra-upgrade-without-tears/</link>
		<comments>http://blog.ideaday.de/max/2011/01/zimbra-upgrade-without-tears/#comments</comments>
		<pubDate>Sun, 23 Jan 2011 00:17:56 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[Zimbra]]></category>

		<guid isPermaLink="false">http://blog.ideaday.de/max/2011/01/zimbra-upgrade-without-tears/</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2011/01/zimbra-upgrade-without-tears/' addthis:title='Zimbra upgrade without tears '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>The Zimbra installer uses an utility script to find out your distro and release: /bin/get_plat_tag.sh And the output of this determines which prerequisites the installer expects. This list of prerequisites is coded in /util/utilfunc.sh (search for "UBUNTU8" for instance) In some cases, as in mine, this get_plat_tag.sh script may not detect your distro and/or version [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2011/01/zimbra-upgrade-without-tears/' addthis:title='Zimbra upgrade without tears ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2011/01/zimbra-upgrade-without-tears/' addthis:title='Zimbra upgrade without tears '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><p>The Zimbra installer uses an utility script to find out your distro and release:</p>
<p><strong>/bin/get_plat_tag.sh</strong></p>
<p>And the output of this determines which prerequisites the installer expects. This list of prerequisites is coded in</p>
<p><strong>/util/utilfunc.sh</strong></p>
<p>(search for "UBUNTU8" for instance)</p>
<p>In some cases, as in mine, this get_plat_tag.sh script may not detect your distro and/or version correctly which may lead to screw-ups with required prerequisites. You may want to use this dirty hack to solve the problem: modify the get_plat_tag.sh script at the very beginning to echo the distro and release you want (actually need) it to echo by inserting:</p>
<p><strong>#quickfix<br />
echo "DEBIAN5_64"<br />
exit 0</strong></p>
<p>You may find yourself running into missing requirements, in my case it was <strong>MISSING: libgmp3</strong> &#8211; although I can't install this package (I have to use libgmp3c2 which was already installed and is the correct requirement for other distros). After setting the correct distro and release the installation was without problems!</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2011/01/zimbra-upgrade-without-tears/' addthis:title='Zimbra upgrade without tears ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.ideaday.de/max/2011/01/zimbra-upgrade-without-tears/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Windows 7 Hibernation Problems</title>
		<link>http://blog.ideaday.de/max/2010/11/windows-7-hibernation-problems/</link>
		<comments>http://blog.ideaday.de/max/2010/11/windows-7-hibernation-problems/#comments</comments>
		<pubDate>Mon, 22 Nov 2010 13:51:54 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[hibernation]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://blog.ideaday.de/max/2010/11/windows-7-hibernation-problems/</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2010/11/windows-7-hibernation-problems/' addthis:title='Windows 7 Hibernation Problems '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>When I run cmd.exe as Admin ("elevated command prompt"), and enter powercfg -h on I get this error: "The system could not create the hibernation file. The specific error code is 0xc0000043."<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2010/11/windows-7-hibernation-problems/' addthis:title='Windows 7 Hibernation Problems ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2010/11/windows-7-hibernation-problems/' addthis:title='Windows 7 Hibernation Problems '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><p>When I run cmd.exe as Admin ("elevated command prompt"), and enter</p>
<blockquote>
<p><strong>powercfg -h on</strong></p>
</blockquote>
<p>I get this error: "The system could not create the hibernation file. The specific error code is 0xc0000043."</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2010/11/windows-7-hibernation-problems/' addthis:title='Windows 7 Hibernation Problems ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.ideaday.de/max/2010/11/windows-7-hibernation-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Outlook Express Timeouts</title>
		<link>http://blog.ideaday.de/max/2010/08/outlook-express-timeouts/</link>
		<comments>http://blog.ideaday.de/max/2010/08/outlook-express-timeouts/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 14:10:25 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[German]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[Administration]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[Outlook Express]]></category>

		<guid isPermaLink="false">http://blog.ideaday.de/max/2010/08/outlook-express-timeouts/</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2010/08/outlook-express-timeouts/' addthis:title='Outlook Express Timeouts '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>Obwohl Outlook Express bereits auf die maximale Wartezeit eingestellt ist, kommt es trotzdem bei manchen zu Timeout-Problomen. (Original-Text auf italienisch: "il server ha interrotto la connessione in modo inatteso. &#8230;" = "Your server has unexpectedly terminated the connection. Possible causes for this include server problems, network problems, or a long period of inactivity. Account: 'account [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2010/08/outlook-express-timeouts/' addthis:title='Outlook Express Timeouts ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2010/08/outlook-express-timeouts/' addthis:title='Outlook Express Timeouts '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><p>Obwohl Outlook Express bereits auf die maximale Wartezeit eingestellt ist, kommt es trotzdem bei manchen zu Timeout-Problomen.</p>
<p>(Original-Text auf italienisch: <em>"il server ha interrotto la connessione in modo inatteso. &#8230;" = "Your server has unexpectedly terminated the connection. Possible causes for this include server problems, network problems, or a long period of inactivity. Account: 'account name', Server:'server', Protocol: POP3, Port 110, Secure (SSL); No, Error Number: 0x800CCC0F"</em></p>
<p>Eine Recherche bringt folgende Möglichkeiten zustande:</p>
<ul>
<li>
<div>Outlook Express hat einen Bug, was bei bestimmten e-Mails (mit leerer Message-ID) zu Timeouts führt bzw. dazu, dass eine Mail immer und immer wieder geholt wird. Siehe dazu <a href="http://www.goldenplanet.de/hilfe/kb/articles/outlook-and-outlook-express-cannot-fetch-mail-session-ends-with-timeout.html" target="_blank">diesen Artikel</a>.</div>
</li>
<li>
<div>Norton AntiVirus scannt einkommende UND abgehende Mails. Norton's Support schlägt vor, den <a href="http://translate.google.com/translate?hl=de&amp;sl=it&amp;tl=en&amp;u=http%3A%2F%2Fservice1.symantec.com%2FSUPPORT%2FINTER%2Fnavintl.nsf%2F5d2f2508ec56f2e688256c14004969c5%2Fb154562ff66ef805c1256b790058b816%3FOpenDocument" target="_blank">Scan abzuschalten</a> um das Problem zu lösen.<br />
Hier ist ein <a href="http://support.bluetie.com/node/344" target="_blank">weiterer Artikel</a> mit Überblick über Norton, McAffee, Trend-Micro.</div>
</li>
<li>
<div>Falls wir einen Exchange Server betreiben würden, hätte Microsoft auch <a href="http://support.microsoft.com/kb/278637/en-us" target="_blank">einen Lösungsvorschlag</a>.</div>
</li>
<li>
<div>Manchmal ist bei Outlook Express eingestellt, dass es die Internetverbindung automatisch trennen soll. <a href="http://internet.bell.ca/index.cfm?method=content.view&amp;category_id=661&amp;content_id=5536" target="_blank">Bell</a> hat dazu eine Seite (auf Englisch).</div>
</li>
</ul>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2010/08/outlook-express-timeouts/' addthis:title='Outlook Express Timeouts ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.ideaday.de/max/2010/08/outlook-express-timeouts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Concrete5 errors</title>
		<link>http://blog.ideaday.de/max/2010/03/concrete5-errors/</link>
		<comments>http://blog.ideaday.de/max/2010/03/concrete5-errors/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 20:06:40 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[Concrete 5]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[Concrete5]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[explanation]]></category>
		<category><![CDATA[Fehler]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.ideaday.de/max/2010/03/concrete5-errors/</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2010/03/concrete5-errors/' addthis:title='Concrete5 errors '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>Fatal error: Class 'CollectionAttributeKey' not found in (&#8230;)/concrete/models/collection.php on line 183 This class is defined in concrete5.3.3.1\concrete\models\attribute\categories\collection.php The problem is easily resolved by loading the appropriate model in your code: Loader::model('attribute/categories/collection');<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2010/03/concrete5-errors/' addthis:title='Concrete5 errors ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2010/03/concrete5-errors/' addthis:title='Concrete5 errors '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><p><strong>Fatal error: Class <em>'CollectionAttributeKey'</em> not found in (&#8230;)/concrete/models/collection.php on line 183<br /></strong></p>
<p>This class is defined in <em>concrete5.3.3.1\concrete\models\attribute\categories\collection.php</em></p>
<p>The problem is easily resolved by loading the appropriate model in your code:</p>
<p><em>Loader::model('attribute/categories/collection');</em></p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2010/03/concrete5-errors/' addthis:title='Concrete5 errors ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.ideaday.de/max/2010/03/concrete5-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Russian and Chinese editing with Concrete 5</title>
		<link>http://blog.ideaday.de/max/2010/03/russian-and-chinese-editing-with-concrete-5/</link>
		<comments>http://blog.ideaday.de/max/2010/03/russian-and-chinese-editing-with-concrete-5/#comments</comments>
		<pubDate>Sun, 21 Mar 2010 13:35:39 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[Concrete 5]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Concrete5]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[fix]]></category>

		<guid isPermaLink="false">http://blog.ideaday.de/max/2010/03/russian-and-chinese-editing-with-concrete-5/</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2010/03/russian-and-chinese-editing-with-concrete-5/' addthis:title='Russian and Chinese editing with Concrete 5 '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>It is not enough to add a Character set to your Template // or store it in UTF-8 without BOM (so the headers attached by PHP won't break). If TinyMCE only displays gibberish instead of the Russian / Chinese / &#8230; text you entered in edit mode, you should edit your .htaccess (located in the [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2010/03/russian-and-chinese-editing-with-concrete-5/' addthis:title='Russian and Chinese editing with Concrete 5 ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2010/03/russian-and-chinese-editing-with-concrete-5/' addthis:title='Russian and Chinese editing with Concrete 5 '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><p align="center"><a href="http://ideadayblog.ideaday.netdna-cdn.com/max/wp-content/uploads/2010/03/concrete_multi_language.jpg"><img hspace="10" alt="concrete multi language" vspace="10" src="http://ideadayblog.ideaday.netdna-cdn.com/max/wp-content/uploads/2010/03/concrete_multi_language-small.jpg" width="450" height="303" /></a></p>
<p>It is not enough to add a Character set to your Template // or store it in UTF-8 without BOM (so the headers attached by PHP won't break).</p>
<p>If TinyMCE only displays gibberish instead of the Russian / Chinese / &#8230; text you entered in edit mode, you should edit your .htaccess (located in the root directory of your site) and add the following:</p>
<blockquote>
<p><em>AddDefaultCharset UTF-8</em></p>
</blockquote>
<p>Optionally, while you're at it, you can enable caching for your site:</p>
<blockquote>
<p><em>#Speed UP!<br />
&lt;IfModule mod_expires.c&gt;<br />
 ExpiresActive On<br />
 ExpiresDefault "access plus 10 years"<br />
 ExpiresByType text/html "access plus 30 seconds"<br />
&lt;/IfModule&gt;</em></p>
</blockquote>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2010/03/russian-and-chinese-editing-with-concrete-5/' addthis:title='Russian and Chinese editing with Concrete 5 ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.ideaday.de/max/2010/03/russian-and-chinese-editing-with-concrete-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL</title>
		<link>http://blog.ideaday.de/max/2010/02/mysql/</link>
		<comments>http://blog.ideaday.de/max/2010/02/mysql/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 15:22:13 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[German]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[Fehler]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP error]]></category>

		<guid isPermaLink="false">http://blog.ideaday.de/max/2010/02/mysql/</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2010/02/mysql/' addthis:title='MySQL '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>[25-Feb-2010 16:15:46] PHP Warning: mysql_real_escape_string() [&#60;a href='function.mysql-real-escape-string'&#62;function.mysql-real-escape-string&#60;/a&#62;]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in &#8230; on line 38 [25-Feb-2010 16:15:46] PHP Warning: mysql_real_escape_string() [&#60;a href='function.mysql-real-escape-string'&#62;function.mysql-real-escape-string&#60;/a&#62;]: A link to the server could not be established in &#8230; on line 38 (&#8230;) Lösung des Problems: die Funktion mysql-real-escape-string erfordert eigentlich zwei Parameter: zuerst [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2010/02/mysql/' addthis:title='MySQL ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2010/02/mysql/' addthis:title='MySQL '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><blockquote>
<p>[25-Feb-2010 16:15:46] PHP Warning: mysql_real_escape_string() [&lt;a href='function.mysql-real-escape-string'&gt;function.mysql-real-escape-string&lt;/a&gt;]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in &#8230; on line 38<br />
[25-Feb-2010 16:15:46] PHP Warning: mysql_real_escape_string() [&lt;a href='function.mysql-real-escape-string'&gt;function.mysql-real-escape-string&lt;/a&gt;]: A link to the server could not be established in &#8230; on line 38<br />
(&#8230;)</p>
</blockquote>
<p><strong>Lösung des Problems:<br /></strong> die Funktion mysql-real-escape-string erfordert eigentlich zwei Parameter: zuerst den $unescaped_string, dann die resource $link_identifier. Lässt man zweiteres weg, versucht MySQL die aktuell zuletzt geöffnete Verbindung zu benutzen.</p>
<p>Ich habe in meinem Skript den Zugang zur Datenbank erst danach geöffnet. (Das ist der wichtigste Unterschied zwischen mysql_escape_string und mysql_real_escape_string &#8211; ersteres erfordert KEINEN Zugriff auf die Datenbank!)</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2010/02/mysql/' addthis:title='MySQL ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.ideaday.de/max/2010/02/mysql/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/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/29 queries in 0.014 seconds using disk: basic
Object Caching 886/951 objects using disk: basic
Content Delivery Network via ideadayblog.ideaday.netdna-cdn.com

Served from: blog.ideaday.de @ 2012-02-06 18:24:26 -->
