http://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692014-01-17T13:01:06ZTYPO3 ForgeTYPO3 Core - Bug #55099: PHP Warnings after clearing configuration cache in BEhttp://forge.typo3.org/issues/55099?journal_id=1996802014-01-17T13:01:06ZHelmut Hummeltypo3@helhum.io
<ul></ul><p>Markus Klein wrote:</p>
<blockquote>
<strong>Steps to reproduce</strong>
<ol>
<li>rm -rf typo3temp/* </li>
<li>Open BE, Page module</li>
<li>Click on some random page in the tree</li>
<li>Clear the configuration cache via toolbar icon</li>
<li>Click on some page again in the tree</li>
</ol>
<p>An extdirect exception popups at the bottom of the BE<br />[...]<br />(the affected class looks rather random, but it is always the same line 244)</p>
</blockquote>
<p>I cannot reproduce this on my system, but saw these warnings on a customer system lately.<br />While this is very likely a race condition in the file backend, I'm still asking myself how this happens and if the temp file is missing during that operation or if some directory is not present.</p> TYPO3 Core - Bug #55099: PHP Warnings after clearing configuration cache in BEhttp://forge.typo3.org/issues/55099?journal_id=1996812014-01-17T13:07:03ZHelmut Hummeltypo3@helhum.io
<ul></ul><p>Markus Klein wrote:</p>
<blockquote>
<p>You can continue at this point to work in BE, but<br />if you clear the configuration cache <strong>again</strong> and<br /><strong>quickly</strong> click on a page in the tree, the <strong>complete BE fails</strong>.</p>
</blockquote>
<p>If the classes cache is inconsistent, everything breaks currently.<br />See <a class="issue tracker-1 status-5 priority-3 priority-lowest closed" title="Bug: Class Loader fails if entry in class cache is discarded (Closed)" href="http://forge.typo3.org/issues/55029">#55029</a></p>
<p>Needs to be fixed!</p> TYPO3 Core - Bug #55099: PHP Warnings after clearing configuration cache in BEhttp://forge.typo3.org/issues/55099?journal_id=1996842014-01-17T13:19:53ZMarkus Kleinmarkus.klein@typo3.org
<ul></ul><p>Thanks for your response Helmut.</p>
<p>Without knowing the code right now, do the cache backends use any locking at all?</p> TYPO3 Core - Bug #55099: PHP Warnings after clearing configuration cache in BEhttp://forge.typo3.org/issues/55099?journal_id=2000992014-01-20T19:39:05ZOliver Haderoliver.hader@typo3.org
<ul></ul><p>Important one... just ran into this issue with extensions using type hints in backend hooks pointing e.g. to t3lib_TCEmain and that class alias not being available...</p> TYPO3 Core - Bug #55099: PHP Warnings after clearing configuration cache in BEhttp://forge.typo3.org/issues/55099?journal_id=2053262014-02-25T21:04:36ZFranz Holzingerfranz@ttproducts.de
<ul></ul><p>I randomly get some error and warning messages if I want to use the EM.</p>
<pre>
PHP Warning: rename(/mypath/typo3temp/Cache/Data/cache_classes/530ce35ad4603.temp,/mypath/typo3temp/Cache/Data/cache_classes/typo3_cms_core_compatibility_loadedextensionsarray) [<a href='function.rename'>function.rename</a>]: No such file or directory in /mypath/typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php on line 244
PHP Warning: rename(/mypath/typo3temp/Cache/Data/cache_classes/530ce35b64123.temp,/mypath/typo3temp/Cache/Data/cache_classes/clearcachemenu) [<a href='function.rename'>function.rename</a>]: No such file or directory in /mypath/typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php on line 244
PHP Warning: rename(/mypath/typo3temp/Cache/Data/cache_classes/530ce35b68f43.temp,/mypath/typo3temp/Cache/Data/cache_classes/typo3_cms_backend_toolbar_livesearchtoolbaritem) [<a href='function.rename'>function.rename</a>]: No such file or directory in /mypath/typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php on line 244
PHP Fatal error: Class 'TYPO3\CMS\Backend\Sprite\AbstractSpriteHandler' not found in /mypath/typo3/sysext/backend/Classes/Sprite/SimpleSpriteHandler.php on line 40
PHP Fatal error: Class 'TYPO3\CMS\Core\Resource\Driver\AbstractDriver' not found in /mypath/typo3/sysext/core/Classes/Resource/Driver/AbstractHierarchicalFilesystemDriver.php on line 35
PHP Fatal error: Class 'TYPO3\CMS\Core\Resource\ResourceStorage' not found in /mypath/typo3temp/Cache/Code/cache_core/ext_localconf_ff0939e805d9053eba290499baf8d6edbd4fb258.php on line 38
</pre> TYPO3 Core - Bug #55099: PHP Warnings after clearing configuration cache in BEhttp://forge.typo3.org/issues/55099?journal_id=2068682014-03-07T02:37:17ZMarkus Kleinmarkus.klein@typo3.org
<ul></ul><p>Please see the blueprint for solving this: <a class="external" href="http://wiki.typo3.org/Blueprints/LockingForCaches">http://wiki.typo3.org/Blueprints/LockingForCaches</a></p> TYPO3 Core - Bug #55099: PHP Warnings after clearing configuration cache in BEhttp://forge.typo3.org/issues/55099?journal_id=2081062014-03-13T23:21:28ZGerrit Code Review
<ul><li><strong>Status</strong> changed from <i>Accepted</i> to <i>Under Review</i></li></ul><p>Patch set 20 for branch <strong>master</strong> of project <strong>Packages/TYPO3.CMS</strong> has been pushed to the review server.<br />It is available at <a class="external" href="https://review.typo3.org/28156">https://review.typo3.org/28156</a></p> TYPO3 Core - Bug #55099: PHP Warnings after clearing configuration cache in BEhttp://forge.typo3.org/issues/55099?journal_id=2082922014-03-15T12:00:18ZThomas Maroschiktmaroschik@dfau.de
<ul></ul><p>I have written a bash script to provoke the error</p>
<pre><code>#!/bin/bash
i="0"
url="http://introductionpackage.dev.dfau/index.php?id=51"
while true
do
rm -R typo3temp/Cache
i=$[$i+1]
curl -s -o - $url | grep -o "Fatal error:.*</i>" && echo "Request $i failed" &
i=$[$i+1]
curl -s -o - $url | grep -o "Fatal error:.*</i>" && echo "Request $i failed" &
wait
done
wait
</code></pre>
<p>Please replace the url variable with one that matches your site. Run this script from the site root. It tests frontend requests but the issue is present there too.</p> TYPO3 Core - Bug #55099: PHP Warnings after clearing configuration cache in BEhttp://forge.typo3.org/issues/55099?journal_id=2083172014-03-15T13:30:25ZAlexander Opitzopitz.alexander@googlemail.com
<ul><li><strong>Status</strong> changed from <i>Under Review</i> to <i>Resolved</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="[BUGFIX] Implement locking in ClassLoader After cache clearing we can run in the situation that ..." href="http://forge.typo3.org/projects/typo3cms-core/repository/1749/revisions/76284d26065af1a0a5b141f5f16305a5821609fa">76284d26065af1a0a5b141f5f16305a5821609fa</a>.</p> TYPO3 Core - Bug #55099: PHP Warnings after clearing configuration cache in BEhttp://forge.typo3.org/issues/55099?journal_id=2083742014-03-15T20:48:25ZErnesto Baschnyeb@cron.eu
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>On Hold</i></li></ul><p>This was reverted for 6.2 beta7: <a class="external" href="https://review.typo3.org/#/c/28426/">https://review.typo3.org/#/c/28426/</a></p>
<p>Will be re-added afterwards again.</p> TYPO3 Core - Bug #55099: PHP Warnings after clearing configuration cache in BEhttp://forge.typo3.org/issues/55099?journal_id=2086602014-03-17T22:15:20ZGerrit Code Review
<ul><li><strong>Status</strong> changed from <i>On Hold</i> to <i>Under Review</i></li></ul><p>Patch set 1 for branch <strong>master</strong> of project <strong>Packages/TYPO3.CMS</strong> has been pushed to the review server.<br />It is available at <a class="external" href="https://review.typo3.org/28480">https://review.typo3.org/28480</a></p> TYPO3 Core - Bug #55099: PHP Warnings after clearing configuration cache in BEhttp://forge.typo3.org/issues/55099?journal_id=2086622014-03-17T22:30:24ZAlexander Opitzopitz.alexander@googlemail.com
<ul><li><strong>Status</strong> changed from <i>Under Review</i> to <i>Resolved</i></li></ul><p>Applied in changeset <a class="changeset" title="[BUGFIX] Implement locking in ClassLoader After cache clearing we can run in the situation that ..." href="http://forge.typo3.org/projects/typo3cms-core/repository/1749/revisions/2268f64c18b607ba39d06b1580afb0ccd786d6b1">2268f64c18b607ba39d06b1580afb0ccd786d6b1</a>.</p> TYPO3 Core - Bug #55099: PHP Warnings after clearing configuration cache in BEhttp://forge.typo3.org/issues/55099?journal_id=3833272018-10-02T12:07:47ZBenni Mackbenni@typo3.org
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul>