http://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692011-10-12T21:25:52ZTYPO3 ForgeTYPO3 Core - Bug #30827: t3lib_utility_VersionNumber is not found after trying to upgradehttp://forge.typo3.org/issues/30827?journal_id=901442011-10-12T21:25:52ZMarkus Kleinmarkus.klein@typo3.org
<ul></ul><p>Hi, can you please check whether this file exists<br />t3lib/utility/class.t3lib_utility_versionnumber.php</p>
<p>And can you please provide the full error message.</p>
<p>Thx.</p> TYPO3 Core - Bug #30827: t3lib_utility_VersionNumber is not found after trying to upgradehttp://forge.typo3.org/issues/30827?journal_id=901482011-10-12T21:42:32ZIngo Pfennigstorf
<ul></ul><p>The file exists. It is also present in core_autoload.php. I do not have the complete error message here this moment - but it unfortunatly doesn't say anything more than that it is not found when it's called from t3lib_div. If it helps I can provide the exact message tomorrow.</p> TYPO3 Core - Bug #30827: t3lib_utility_VersionNumber is not found after trying to upgradehttp://forge.typo3.org/issues/30827?journal_id=901532011-10-12T22:31:39ZMarkus Kleinmarkus.klein@typo3.org
<ul></ul><p>Yeah would be cool. Thx.</p> TYPO3 Core - Bug #30827: t3lib_utility_VersionNumber is not found after trying to upgradehttp://forge.typo3.org/issues/30827?journal_id=902122011-10-13T09:45:29ZIngo Pfennigstorf
<ul></ul><p>Fatal error: Class 't3lib_utility_VersionNumber' not found in /Users/ingop/repo/Core/t3lib/class.t3lib_div.php on line 887</p> TYPO3 Core - Bug #30827: t3lib_utility_VersionNumber is not found after trying to upgradehttp://forge.typo3.org/issues/30827?journal_id=902272011-10-13T12:10:14ZSteffen Gebertsteffen.gebert@typo3.org
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Needs Feedback</i></li><li><strong>Priority</strong> changed from <i>Should have</i> to <i>Must have</i></li><li><strong>Target version</strong> set to <i>4.6.0</i></li><li><strong>Complexity</strong> set to <i>medium</i></li></ul><p>Hi Ingo,</p>
<p>you're at least the second having this problem...</p>
<ul>
<li>first guess: delete <code>typo3temp/Cache/</code>, which holds the autoloader cache. However, I'm unsure, whether it really exists, or if TYPO3 fails already earlier</li>
<li>probably more helpful: Change <code>devIPmask</code> to include your IP. Then access the site and post the stack trace here.</li>
</ul> TYPO3 Core - Bug #30827: t3lib_utility_VersionNumber is not found after trying to upgradehttp://forge.typo3.org/issues/30827?journal_id=902282011-10-13T12:11:25ZSteffen Gebertsteffen.gebert@typo3.org
<ul></ul><p>.. and please post your <code>extList</code> here, have a look at <code>typo3conf/extTables.php</code> and <code>localconf.php</code>, there is something happening, which is not only configurational stuff.</p>
<p>Thanks<br />Steffen</p> TYPO3 Core - Bug #30827: t3lib_utility_VersionNumber is not found after trying to upgradehttp://forge.typo3.org/issues/30827?journal_id=902352011-10-13T13:04:38ZIngo Pfennigstorf
<ul></ul><p>Steffen, thanks a lot for your help and reply.</p>
<p>So first, here is an update on that: Setting the devIPmask and tried various debug things in localconf.php didn't help. The typo3temp folder only contained empty folders Cache/ and so on.<br />Temporary files have not been created at all.<br />What helped was: <br />Manually change the return value of t3lib_div::int_from_ver to 4006000 and delete or comment out all other stuff in that function.<br />Next, go to install tool, do all the upgrade wizard stuff and ... after a DB compare I finally reset the t3lib_div::int_from_ver function to the originial state and everything works fine.</p>
<p>My guess is, that it may have something to do with missing CF-tables - because now it works like a charm.<br />I even commented out everything in extTables.php<br />localconf.php only contained one if statement, belonging to the caching framework - if you consider this non-configurational ;)</p>
<p>Do you still need the extList?</p> TYPO3 Core - Bug #30827: t3lib_utility_VersionNumber is not found after trying to upgradehttp://forge.typo3.org/issues/30827?journal_id=902362011-10-13T13:10:30ZSteffen Gebertsteffen.gebert@typo3.org
<ul></ul><p>Thanks for your feedback, however I don't count this as a real solution (more a dirty workaround).</p>
<p>Do you have a backup of the site to try the update again?<br />Have you set the <code>devIPmask</code> and then deleted <code>typo3conf/temp_CACHED*</code>? It should really give you a stack trace, which then could help us to find the root cause.</p> TYPO3 Core - Bug #30827: t3lib_utility_VersionNumber is not found after trying to upgradehttp://forge.typo3.org/issues/30827?journal_id=902372011-10-13T13:14:16ZIngo Pfennigstorf
<ul></ul><p>Yes, definetly no solution. No temp_Cached_* files were generated and the devIPmask was set, first to 127.0.0.1,10.0.* and later as there was no stack trace to *.<br />I also truncated all cache tables first, also sys_registry and so on. I do have a backup and will try to do this again.</p> TYPO3 Core - Bug #30827: t3lib_utility_VersionNumber is not found after trying to upgradehttp://forge.typo3.org/issues/30827?journal_id=902382011-10-13T13:19:54ZSteffen Gebertsteffen.gebert@typo3.org
<ul></ul><p>So one thing, which comes to my mind, could be that sth. calls <code>t3lib_div::int_from_ver</code> that early that the whole configuration isn't even initialized.. Would be good, to post your extList here, in case sb. else has the same problem. Maybe one of them has such things in <code>ext_tables.php</code> (but unsure, if that would really be too soon during bootstrapping).</p> TYPO3 Core - Bug #30827: t3lib_utility_VersionNumber is not found after trying to upgradehttp://forge.typo3.org/issues/30827?journal_id=902402011-10-13T13:30:00ZIngo Pfennigstorf
<ul></ul><p>Yesterday I made a quick search in the ext folder and several extensions called that function.<br />Btw. I just deleted all cf_ database tables and the error occurs again until I recreate these tables.</p>
<p>This is the extList, there are several custom extensions, but I truly still don't get the point where it fails. Maybe something in the bootstrap happens before an autoloader cache is generated. Dunno.</p>
<p>$TYPO3_CONF_VARS['EXT']['extList'] = 'extbase,css_styled_content,tsconfig_help,context_help,extra_page_cm_options,impexp,sys_note,tstemplate,tstemplate_ceditor,tstemplate_info,tstemplate_objbrowser,tstemplate_analyzer,func_wizards,wizard_crpages,wizard_sortpages,lowlevel,install,belog,beuser,aboutmodules,setup,taskcenter,info_pagetsconfig,viewpage,rtehtmlarea,t3skin,tt_address,eu_ldap,nkwbrowsinghistory,nkwlib,nkwsitemap,be_acl,stever_rsscontent,nkwuserfeedback,static_info_tables,dam,dam_ttcontent,about,cshmanual,feedit,opendocs,recycler,t3editor,reports,scheduler,nkwtcaaddress,nkwtcadam,nkwtcadedefault,nkwtcamidcol,jm_recaptcha,kickstarter,nkwgok,nkwreport,nkwaddressextend,nkwgmaps,nkwsubreport,nkwsubfeprojects,nkwsubstaff,metasuchexml,realurl,fluid,dsschedgmaps,nkwtcabasic,nkwtca,nkwsubmenu,nkwusertsrte,nkwpiwikoptout,dam_index,patenschaften,standorte,t3jquery,powermail,wt_doorman,powermail_frontend,powermail_cond,linkhandler,imagemap_wizard,nkwtcarte,piwik,wt_spamshield,info,perm,func,filelist,l10nmgr,shorts,nkwkeywords,linkvalidator,static_info_tables_de,pagebrowse,fed,devlog,tika,solr,tmpl_sub,sassify,additional_reports,pazpar2,version,workspaces,scriptmerger';</p> TYPO3 Core - Bug #30827: t3lib_utility_VersionNumber is not found after trying to upgradehttp://forge.typo3.org/issues/30827?journal_id=902412011-10-13T13:32:23ZSteffen Gebertsteffen.gebert@typo3.org
<ul></ul><p>There's some print/get stacktrace function in PHP. Could you use that to output the stack, when the function is called for the first time?</p> TYPO3 Core - Bug #30827: t3lib_utility_VersionNumber is not found after trying to upgradehttp://forge.typo3.org/issues/30827?journal_id=902452011-10-13T13:48:49ZIngo Pfennigstorf
<ul></ul><p>#0 t3lib_div::int_from_ver(4.6-dev) called at [/Users/ingop/Sites/w3d/typo3conf/ext/additional_reports/ext_autoload.php:5]<br />#1 require(/Users/ingop/Sites/w3d/typo3conf/ext/additional_reports/ext_autoload.php) called at [/Users/ingop/repo/Core/t3lib/class.t3lib_autoloader.php:173]<br />#2 t3lib_autoloader::createCoreAndExtensionRegistry() called at [/Users/ingop/repo/Core/t3lib/class.t3lib_autoloader.php:121]<br />#3 t3lib_autoloader::loadCoreAndExtensionRegistry() called at [/Users/ingop/repo/Core/t3lib/class.t3lib_autoloader.php:69]<br />#4 t3lib_autoloader::registerAutoloader() called at [/Users/ingop/repo/Core/t3lib/config_default.php:779]<br />#5 require(/Users/ingop/repo/Core/t3lib/config_default.php) called at [/Users/ingop/repo/Core/typo3/sysext/cms/tslib/index_ts.php:123]<br />#6 require(/Users/ingop/repo/Core/typo3/sysext/cms/tslib/index_ts.php) called at [/Users/ingop/repo/Core/index.php:78]</p>
<p>Fatal error: Class 't3lib_utility_VersionNumber' not found in /Users/ingop/repo/Core/t3lib/class.t3lib_div.php on line 889</p>
<p>Ok - additional_reports seems to be responsible ... After removing it from extList it seems to work finer. Thanks for your help!</p> TYPO3 Core - Bug #30827: t3lib_utility_VersionNumber is not found after trying to upgradehttp://forge.typo3.org/issues/30827?journal_id=902672011-10-13T16:48:34ZMarkus Kleinmarkus.klein@typo3.org
<ul></ul><p>Ok, that's hard. But actually I think it is reasonable for an extension to call such basic functions anytime.</p>
<p>The problem is located int t3lib_autoloader:</p>
<pre>
/**
* Find all ext_autoload files and merge with core_autoload.
*
* @return void
*/
protected static function createCoreAndExtensionRegistry() {
$classRegistry = require(PATH_t3lib . 'core_autoload.php');
// At this point localconf.php was already initialized
// we have a current extList and extMgm is also known
$loadedExtensions = array_unique(t3lib_div::trimExplode(',', t3lib_extMgm::getEnabledExtensionList(), TRUE));
foreach ($loadedExtensions as $extensionKey) {
$extensionAutoloadFile = t3lib_extMgm::extPath($extensionKey, 'ext_autoload.php');
if (file_exists($extensionAutoloadFile)) {
$classRegistry = array_merge($classRegistry, require($extensionAutoloadFile));
}
}
return $classRegistry;
}
</pre><br />The ext_autoload.php files are executed before the core autoloads are actually loaded.<br />I suggest to change the behaviour, so that autoloading of Core is completely finished, before any extension is even touched.<br />This would also prevent the still existing race condition, where an extension might use int_from_ver in the localconf.php. TYPO3 Core - Bug #30827: t3lib_utility_VersionNumber is not found after trying to upgradehttp://forge.typo3.org/issues/30827?journal_id=902762011-10-13T17:22:43ZSteffen Gebertsteffen.gebert@typo3.org
<ul></ul><p>Christian, could you give your feedback to Markus suggestion? (you don't have to read everything ;-))</p> TYPO3 Core - Bug #30827: t3lib_utility_VersionNumber is not found after trying to upgradehttp://forge.typo3.org/issues/30827?journal_id=903372011-10-14T08:14:20ZBjörn Pedersenbjoern.pedersen@frm2.tum.de
<ul></ul><p>Duplicate of:<br /><a class="external" href="http://forge.typo3.org/issues/28235">http://forge.typo3.org/issues/28235</a></p> TYPO3 Core - Bug #30827: t3lib_utility_VersionNumber is not found after trying to upgradehttp://forge.typo3.org/issues/30827?journal_id=903382011-10-14T08:16:27ZBjörn Pedersenbjoern.pedersen@frm2.tum.de
<ul></ul><p>This case is fixed by: <a class="external" href="http://forge.typo3.org/issues/28236">http://forge.typo3.org/issues/28236</a>.</p>
<p>Only ext_autoload files can not use features requiring autoloader.</p> TYPO3 Core - Bug #30827: t3lib_utility_VersionNumber is not found after trying to upgradehttp://forge.typo3.org/issues/30827?journal_id=904252011-10-14T19:43:39ZMarkus Kleinmarkus.klein@typo3.org
<ul></ul><p>So what's the reason for implementing our own version comparison system (t3lib_utility_VersionNumber) and not using version_compare()?</p> TYPO3 Core - Bug #30827: t3lib_utility_VersionNumber is not found after trying to upgradehttp://forge.typo3.org/issues/30827?journal_id=905382011-10-16T14:35:57ZChristian Kuhnlolli@schwarzbu.ch
<ul></ul><p>ext_autoload.php must not have any php code except the return array();</p> TYPO3 Core - Bug #30827: t3lib_utility_VersionNumber is not found after trying to upgradehttp://forge.typo3.org/issues/30827?journal_id=905392011-10-16T14:37:18ZChristian Kuhnlolli@schwarzbu.ch
<ul><li><strong>Status</strong> changed from <i>Needs Feedback</i> to <i>Rejected</i></li></ul><p>Rejected:</p>
<p>The calculation of the autoload cache identifier was already fixed and the ext_autoload 'I do code here' thing will not be solved.</p>