[Typo3-dev] error when installing extensions manually on 3.5.0 (with fix)

Nicola Fankhauser nicola.fankhauser at couniq.com
Sat Dec 27 15:36:59 CET 2003


Hello

I had to do several typo3 installations (1-2-3 installer did not work
for us) on linux (apache 1.3.x and php 4.0.6, on linux) in the last few
weeks and eventually, we needed some extensions. Unfortunately, when
wanting to upload an extension manually, the following error occured:

---
Error: The extension path
'/home/cf/public_html/typo3conf/ext/frontend_edit_only' was different
than expected...
---

Googling did not help much either, because while other people seemingly
have had the same problem, nobody came up with a solution to it. So, I
put up the coding hat myself and fixed the small flaw. See the attached
one-line diff. I did not further investigate the cause for the path
string having a space too much at the end at this certain line - maybe
the bug needs fixing at the place where this space is generated. But
until then, my fix works temporarily. This applies to 3.5.0, I don't
know whether 3.6.0RC1 has the same bug.

Does the typo3 project have a CVS repository now? I've seen the CVS
project page on typo3.org, it says that it is on sourceforge (which is
offline at the moment, so I can't check myself).

-- 
mit freundlichen grüssen
nicola fankhauser

-----------------------------
couniq consulting GmbH
IT- und Unternehmensberatung

Erlenauweg 17
CH-3110 Münsingen

tel.:+41 31 722 00 66
fax: +41 31 722 00 67

mailto:nicola.fankhauser at couniq.com
http://www.couniq.com

-------------- next part --------------
--- typo3/mod/tools/em/index.php.ori    Wed Feb 12 20:48:44 2003
+++ typo3/mod/tools/em/index.php        Tue Dec 23 19:09:14 2003
@@ -809,7 +809,7 @@
                                        if (!$EM_CONF["lockType"] || !strcmp($EM_CONF["lockType"],$loc))        {
                                                $res = $this->clearAndMakeExtensionDir($fetchData[0],$loc);
                                                if (is_array($res))     {
-                                                       $extDirPath = $res[0];
+                                                       $extDirPath = substr($res[0],0,-1)."/";
                                                        if ($extDirPath && @is_dir($extDirPath) && substr($extDirPath,-1)=="/") {
  
                                                                $emConfFile = $this->construct_ext_emconf_file($extKey,$EM_CONF);



More information about the TYPO3-dev mailing list