<?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>Agence de Développement Informatique du Nord &#187; gregwar</title>
	<atom:link href="http://blog.adin.pro/tag/gregwar/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.adin.pro</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Thu, 26 Dec 2019 08:54:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>PHP Fatal error:  Method Gregwar\\ImageBundle\\ImageHandler::__toString() must not throw an exception in /home/www/recette/app/cache/dev/classes.php on line 7426</title>
		<link>http://blog.adin.pro/2013-03-21/php-fatal-error-method-gregwarimagebundleimagehandler__tostring-must-not-throw-an-exception-in-homewwwrecetteappcachedevclasses-php-on-line-7426/</link>
		<comments>http://blog.adin.pro/2013-03-21/php-fatal-error-method-gregwarimagebundleimagehandler__tostring-must-not-throw-an-exception-in-homewwwrecetteappcachedevclasses-php-on-line-7426/#comments</comments>
		<pubDate>Thu, 21 Mar 2013 09:03:13 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Symfony]]></category>
		<category><![CDATA[gregwar]]></category>
		<category><![CDATA[Symfony2]]></category>
		<category><![CDATA[twig]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=149</guid>
		<description><![CDATA[<p>You are using the fanstactic Gregwar/ImageBundle code to manipulate your images on Symfony2 and twig. But instead of rendering your website, you get this error on your apache error log file or directly on your html genered code this issue &#8230; <a href="http://blog.adin.pro/2013-03-21/php-fatal-error-method-gregwarimagebundleimagehandler__tostring-must-not-throw-an-exception-in-homewwwrecetteappcachedevclasses-php-on-line-7426/">Continue reading <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2013-03-21/php-fatal-error-method-gregwarimagebundleimagehandler__tostring-must-not-throw-an-exception-in-homewwwrecetteappcachedevclasses-php-on-line-7426/">PHP Fatal error:  Method Gregwar\\ImageBundle\\ImageHandler::__toString() must not throw an exception in /home/www/recette/app/cache/dev/classes.php on line 7426</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>You are using the fanstactic Gregwar/ImageBundle code to manipulate your images on Symfony2 and twig.<br />
But instead of rendering your website, you get this error on your apache error log file </p>
<pre class="brush: bash; title: ; notranslate">
PHP Fatal error:  Method Gregwar\\ImageBundle\\ImageHandler::__toString() must not throw an exception in /home/www/recette/app/cache/dev/classes.php on line 7426
</pre>
<p>or directly on your html genered code</p>
<pre class="brush: xml; title: ; notranslate">
&lt;img src=&quot;
Fatal error: Method Gregwar\ImageBundle\ImageHandler::__toString() must not throw an exception in /home/www/recette/app/cache/dev/classes.php on line 7426
</pre>
<p>this issue may be a rights problem on your cache drectory. By default, gregwar cache directory is on your web so, launch this command</p>
<pre class="brush: bash; title: ; notranslate">
chmod 777 web/cache
</pre>
<p>This error may also occur if the file doesn&#8217;t exist, for a clean code, add</p>
<pre class="brush: php; title: ; notranslate">
{% if file_exists('uploads/' ~ site.id ~ '.jpg') %}
    {{ image(site.picture).resize(250, 50) }}
{% endif %}
</pre>
<p>or on twig code</p>
<pre class="brush: php; title: ; notranslate">
{% if site.has_picture %}
    {{ image(site.picture).resize(250 ,50) }}
{% endif %}
</pre>
<p>For more informations about file_exists, see here <a href="http://blog.adin.pro/2013-05-10/symfony2-twig-add-new-function-file_exists/" title="Symfony2 twig add new function file_exists">Symfony2 twig add new function file_exists</a></p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2013-03-21/php-fatal-error-method-gregwarimagebundleimagehandler__tostring-must-not-throw-an-exception-in-homewwwrecetteappcachedevclasses-php-on-line-7426/">PHP Fatal error:  Method Gregwar\\ImageBundle\\ImageHandler::__toString() must not throw an exception in /home/www/recette/app/cache/dev/classes.php on line 7426</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2013-03-21/php-fatal-error-method-gregwarimagebundleimagehandler__tostring-must-not-throw-an-exception-in-homewwwrecetteappcachedevclasses-php-on-line-7426/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
