Project

General

Profile

Actions

Bug #54460

closed

Unable to activate extension

Added by Oliver Salzburg over 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-12-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
5.4
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

We're unable to activate newly installed extensions. We've noticed this issue while trying to install static_info_tables and templavoila. The Apache HTTPD error log is empty.
When clicking the activate extension button, the extension manager will display a spinner for about half a minute and then return to the extension list, without having activated the extension.

This issue is identical to http://forge.typo3.org/issues/46957 The reporter claimed that his issue was caused by Zend Optimizer Plus, but also said that a complete reinstallation of the system fixed his issue.

We're experiencing the same issue, but we're not running Zend Optimizer Plus. We would also like to avoid to reinstall our complete system to resolve the issue :P


Files

ubuntu_bug_01.png (163 KB) ubuntu_bug_01.png Peter Zarycinski, 2014-02-07 09:56

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #46957: EM: can't install/uninstall extensionsClosed2013-04-05

Actions
Actions #1

Updated by Marcin Sągol over 10 years ago

Hi Oliver,
are you sure that this extensions are compatible with 6.1? I'm not using Tv or 6.1 atm so can't test it. There might be issue that extension is not compatible and can't be installed but no information message is presented.

Also in the mentioned issue reisntallation was needed as i messed up to much on my machine. There are only configuration parameters that need to be changed to make ZOP work with TYPO3 :)

Actions #2

Updated by Oliver Salzburg over 10 years ago

Marcin Sągol wrote:

Hi Oliver,
are you sure that this extensions are compatible with 6.1? I'm not using Tv or 6.1 atm so can't test it. There might be issue that extension is not compatible and can't be installed but no information message is presented.

Also in the mentioned issue reisntallation was needed as i messed up to much on my machine. There are only configuration parameters that need to be changed to make ZOP work with TYPO3 :)

I can install static_info_tables on another server (which is running the same TYPO3 version) just fine. If there was some problem, I would expect some sort of error message or something in the logs, but there simply isn't anything :(

Actions #3

Updated by Oliver Salzburg over 10 years ago

Disabling DBAL resolved this issue.

We already had to remove it from LocalConfiguration during installation to even get the site up, but, apparently, it was re-enabled during or after the install process. And then it causes further problems.

I am a bit surprised that DBAL is considered to be stable now. I have never seen it cause anything but problems :(

Actions #4

Updated by Thomas Hilburger about 10 years ago

I have the same issue with 6.1 and 6.1.7 on a current Kubuntu 13.10.
But no DBAL is installed. This looks like it appeared after going from 6.1 to 6.1.7.
Suddenly I can't install OR uninstall any extension, not even the Recycler.

The extension is entered in the LocalConfiguration.php but the icon remains gray and it is actually not installed.

There is also no Zen Optimizer installed on the system.

Actions #5

Updated by Thomas Hilburger about 10 years ago

Oh yes, going back to 6.1 does not help either.
I don't know what else to try.

Actions #6

Updated by Markus Klein about 10 years ago

Hi Thomas,

can you enable all sorts of error and warning reporting on you system?
Please check webserver logs, system logs, TYPO3 log, ... then if something shows up.

It is simply impossible to have no error message at all, if you entered the extension manually to LocalConfiguration.php and it does not get loaded.

Actions #7

Updated by Thomas Hilburger about 10 years ago

This is what I find in the error log:

[Tue Jan 28 12:23:12.908140 2014] [:error] [pid 31029] [client 127.0.0.1:52443] PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Lock file could not be created' in /home/hilburger/public_html/z_shared/typo3_src-6.1.7/typo3/sysext/core/Classes/Locking/Locker.php:175\nStack trace:\n#0 /home/hilburger/public_html/z_shared/typo3_src-6.1.7/typo3/sysext/core/Classes/Utility/GeneralUtility.php(4732): TYPO3\\CMS\\Core\\Locking\\Locker->acquire()\n#1 /home/hilburger/public_html/z_shared/typo3_src-6.1.7/typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php(71): TYPO3\\CMS\\Core\\Utility\\GeneralUtility::sysLog('Uncaught TYPO3 ...', 'Core: Exception...', 4)\n#2 /home/hilburger/public_html/z_shared/typo3_src-6.1.7/typo3/sysext/core/Classes/Error/DebugExceptionHandler.php(59): TYPO3\\CMS\\Core\\Error\\AbstractExceptionHandler->writeLogEntries(Object(RuntimeException), 'WEB')\n#3 /home/hilburger/public_html/z_shared/typo3_src-6.1.7/typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php(49): TYPO3\\CMS\\Core\\Error\\DebugExceptionHandler->echoExceptionWeb(Object(RuntimeException))\n#4 [internal function]: TY in /home/hilburger/public_html/z_shared/typo3_src-6.1.7/typo3/sysext/core/Classes/Locking/Locker.php on line 175, referer: http://www2014.law-school.local/typo3/mod.php?M=tools_ExtensionmanagerExtensionmanager&tx_extensionmanager_tools_extensionmanagerextensionmanager%5Baction%5D=ter&tx_extensionmanager_tools_extensionmanagerextensionmanager%5Bcontroller%5D=List

Actions #8

Updated by Markus Klein about 10 years ago

  • Category deleted (Extension Manager)

Ok we're coming closer. The problem here is related to locking.

What system are you running on?
If linux (maybe MacOSX works too), please check if you can set [SYS][lockingMode] = semaphore in the install tool. (be aware that this requires the sem_acquire() to be available, which should be the case for most php installations on linux.)

Is your TYPO3 CMS intance on a local drive or a network share?

Delete the typo3temp/locks folder and see if it helps.

Actions #9

Updated by Thomas Hilburger about 10 years ago

It is a Kubuntu 13.10 and everything is installed on the local drive.
I have changed the option in the Install Tool and deleted the typo3temp/locks, nothing helped.
Before each try I cleaned up via Install Tool.
Here is the error log (sorry for the mess):

[Tue Jan 28 12:23:12.908140 2014] [:error] [pid 31029] [client 127.0.0.1:52443] PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Lock file could not be created' in /home/hilburger/public_html/z_shared/typo3_src-6.1.7/typo3/sysext/core/Classes/Locking/Locker.php:175\nStack trace:\n#0 /home/hilburger/public_html/z_shared/typo3_src-6.1.7/typo3/sysext/core/Classes/Utility/GeneralUtility.php(4732): TYPO3\\CMS\\Core\\Locking\\Locker->acquire()\n#1 /home/hilburger/public_html/z_shared/typo3_src-6.1.7/typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php(71): TYPO3\\CMS\\Core\\Utility\\GeneralUtility::sysLog('Uncaught TYPO3 ...', 'Core: Exception...', 4)\n#2 /home/hilburger/public_html/z_shared/typo3_src-6.1.7/typo3/sysext/core/Classes/Error/DebugExceptionHandler.php(59): TYPO3\\CMS\\Core\\Error\\AbstractExceptionHandler->writeLogEntries(Object(RuntimeException), 'WEB')\n#3 /home/hilburger/public_html/z_shared/typo3_src-6.1.7/typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php(49): TYPO3\\CMS\\Core\\Error\\DebugExceptionHandler->echoExceptionWeb(Object(RuntimeException))\n#4 [internal function]: TY in /home/hilburger/public_html/z_shared/typo3_src-6.1.7/typo3/sysext/core/Classes/Locking/Locker.php on line 175, referer: http://www2014.law-school.local/typo3/mod.php?M=tools_ExtensionmanagerExtensionmanager&tx_extensionmanager_tools_extensionmanagerextensionmanager%5Baction%5D=ter&tx_extensionmanager_tools_extensionmanagerextensionmanager%5Bcontroller%5D=List
[Tue Jan 28 14:33:30.495530 2014] [:error] [pid 31049] [client 127.0.0.1:52982] PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Lock file could not be created' in /home/hilburger/public_html/z_shared/typo3_src-6.1.7/typo3/sysext/core/Classes/Locking/Locker.php:175\nStack trace:\n#0 /home/hilburger/public_html/z_shared/typo3_src-6.1.7/typo3/sysext/core/Classes/Utility/GeneralUtility.php(4732): TYPO3\\CMS\\Core\\Locking\\Locker->acquire()\n#1 /home/hilburger/public_html/z_shared/typo3_src-6.1.7/typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php(71): TYPO3\\CMS\\Core\\Utility\\GeneralUtility::sysLog('Uncaught TYPO3 ...', 'Core: Exception...', 4)\n#2 /home/hilburger/public_html/z_shared/typo3_src-6.1.7/typo3/sysext/core/Classes/Error/DebugExceptionHandler.php(59): TYPO3\\CMS\\Core\\Error\\AbstractExceptionHandler->writeLogEntries(Object(RuntimeException), 'WEB')\n#3 /home/hilburger/public_html/z_shared/typo3_src-6.1.7/typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php(49): TYPO3\\CMS\\Core\\Error\\DebugExceptionHandler->echoExceptionWeb(Object(RuntimeException))\n#4 [internal function]: TY in /home/hilburger/public_html/z_shared/typo3_src-6.1.7/typo3/sysext/core/Classes/Locking/Locker.php on line 175, referer: http://www2014.law-school.local/typo3/index.php?loginRefresh=1
[Tue Jan 28 14:49:25.765534 2014] [:error] [pid 31275] [client 127.0.0.1:53175] PHP Warning: fopen(): Filename cannot be empty in /home/hilburger/public_html/z_shared/typo3_src-6.1.7/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 4733, referer: http://www2014.law-school.local/typo3/index.php
[Tue Jan 28 14:52:11.177250 2014] [:error] [pid 9003] [client 127.0.0.1:53215] PHP Warning: fopen(): Filename cannot be empty in /home/hilburger/public_html/z_shared/typo3_src-6.1.7/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 4733, referer: http://www2014.law-school.local/typo3/mod.php?M=tools_ExtensionmanagerExtensionmanager&tx_extensionmanager_tools_extensionmanagerextensionmanager%5Baction%5D=ter&tx_extensionmanager_tools_extensionmanagerextensionmanager%5Bcontroller%5D=List
[Tue Jan 28 14:52:11.242765 2014] [:error] [pid 9003] [client 127.0.0.1:53215] PHP Warning: fopen(): Filename cannot be empty in /home/hilburger/public_html/z_shared/typo3_src-6.1.7/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 4733, referer: http://www2014.law-school.local/typo3/mod.php?M=tools_ExtensionmanagerExtensionmanager&tx_extensionmanager_tools_extensionmanagerextensionmanager%5Baction%5D=ter&tx_extensionmanager_tools_extensionmanagerextensionmanager%5Bcontroller%5D=List
[Tue Jan 28 14:52:11.584168 2014] [:error] [pid 11676] [client 127.0.0.1:53206] PHP Warning: fopen(): Filename cannot be empty in /home/hilburger/public_html/z_shared/typo3_src-6.1.7/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 4733, referer: http://www2014.law-school.local/typo3/mod.php?M=tools_ExtensionmanagerExtensionmanager&tx_extensionmanager_tools_extensionmanagerextensionmanager%5Baction%5D=ter&tx_extensionmanager_tools_extensionmanagerextensionmanager%5Bcontroller%5D=List
[Tue Jan 28 14:52:11.612664 2014] [:error] [pid 11676] [client 127.0.0.1:53206] PHP Warning: fopen(): Filename cannot be empty in /home/hilburger/public_html/z_shared/typo3_src-6.1.7/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 4733, referer: http://www2014.law-school.local/typo3/mod.php?M=tools_ExtensionmanagerExtensionmanager&tx_extensionmanager_tools_extensionmanagerextensionmanager%5Baction%5D=ter&tx_extensionmanager_tools_extensionmanagerextensionmanager%5Bcontroller%5D=List

Actions #10

Updated by Markus Klein about 10 years ago

Thomas, can you please post your configuration for ['SYS']['systemLog']?

Actions #11

Updated by Thomas Hilburger about 10 years ago

Sure :-)

To be sure a few lines more:

[SYS][systemLog] = file
[SYS][systemLogLevel] = 0
[SYS][enableDeprecationLog] = file
[SYS][maxFileNameLength] = 60

Actions #12

Updated by Markus Klein about 10 years ago

Ok next step.

Your configuration here is wrong.
You're missing the path to the log file.

Have a look into the Install Tool to see the correct syntax.

Actions #13

Updated by Thomas Hilburger about 10 years ago

I tried this now:

[SYS][systemLog] = file,/home/hilburger/public_html/www2014.law-school.de/html/typo3conf/syslog.log,0

But the log is not used.
Instead I find this entry in /var/log/apache2/www.law-school.local.error.log

[Wed Jan 29 11:39:55.038250 2014] [:error] [pid 1671] [client 127.0.0.1:56121] PHP Warning: fopen(): Filename cannot be empty in /home/hilburger/public_html/z_shared/typo3_src-6.1.7/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 4733, referer: http://www2014.law-school.local/typo3/

The access rights for /home/hilburger/public_html/www2014.law-school.de/html/typo3conf/syslog.log
are all www-data:www-data 775.

It seems that I'm blind. Sorry for that :-(

Actions #14

Updated by Markus Klein about 10 years ago

  • Status changed from New to Needs Feedback

As long as you see this

PHP Warning: fopen(): Filename cannot be empty

The filename did not make it's way to the fopen() command.
Can you debug this instance to see in the syslog() function if what is exactly read from $GLOBALS['TYPO3_CONF_VARS']['SYS']['systemLog']?

Actions #15

Updated by Peter Zarycinski about 10 years ago

Hi I Have the same issue but on ubuntu 13.10. I checked the solution with syslog, but I thing it's not about this, I run debug and tried to find what could it be and I thing we must search In /typo3/sysext/extensionmanager/Classes/Utility/DependencyUtility.php. But can anyone tell me where in nested functions should I search, because I don't have too much time to examine this issue.

I'm running on xdebug.

Actions #16

Updated by Markus Klein about 10 years ago

Hi Peter,

what extension did you try to activate?
Do you also get an error message regarding a lock file?

Actions #17

Updated by Peter Zarycinski about 10 years ago

I tried install/uninstall core extensions, community extensions and my own extensions so it's not related to any type of extension.

while a go I found :

Core: Error handler (BE): PHP Warning: Invalid argument supplied for foreach() in /mnt/rk/typo3/sysext/extensionmanager/Classes/Utility/DependencyUtility.php line 145

I have this on Ubuntu 13.10, typo 6.1.3 and freeCaptha 2.0.3

I get a screen shot where I think something strange happened.

Actions #18

Updated by Peter Zarycinski about 10 years ago

I check this under ubuntu 12.04 on the same typo3 installation and I get this error to DependencyUtility.php but activating extensions works normally, so It's not related to this bug.

Maybe little help, where should I search for this ??

Actions #19

Updated by Markus Klein about 10 years ago

Ok so we can nail it down to a problem in (K)Ubuntu 13.10?

Is there any access restriction on folders (docroot downwards) in this OS release?

Actions #20

Updated by Peter Zarycinski about 10 years ago

Yes it's only (K)Ubuntu 13.10

I run apache on my local user account so it's not on permissions.

I triad activate extensions manualy in localconfiguration.php and they works. So It's something in core.

Actions #21

Updated by Gianpaolo Scrigna about 10 years ago

Are you sure that Zend Optimizer isn't loaded?
My Kubuntu 13.10 seems to come with Apache 2.4, PHP 5.5.3 and Zend OPcache:

$ php -v
PHP 5.5.3-1ubuntu2.1 (cli) (built: Dec 12 2013 04:24:35) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
    with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend Technologies

So, like suggested in [[http://forge.typo3.org/issues/46957]], adding the following directive in apache virtual host configuration resolved my problem:
<IfModule mod_php5.c>
     php_value opcache.revalidate_freq 0
</IfModule>

Actions #22

Updated by Peter Zarycinski about 10 years ago

Hi

Yes it was problem with opcache. The above solution solved the problem. Now the extension can be installed properly.

Actions #23

Updated by Markus Klein about 10 years ago

  • Status changed from Needs Feedback to Closed
Actions #24

Updated by Markus Timtner about 10 years ago

I have the same Problem here,
but the fix won't work^^

Only difference is thast APC has been enabled on the machine.

Actions #25

Updated by Markus Klein about 10 years ago

@Markus: Did you already check with http://wiki.typo3.org/Opcode_Cache

Actions

Also available in: Atom PDF