Bug #9757
PHP Warning: unlink()
| Status: | Resolved | Start date: | 2010-09-16 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | Martin Helmich | % Done: | 100% |
|
| Category: | - | |||
| Target version: | 1.9.2 | |||
| Votes: | 0 |
Description
If I create or delete a page I get this error:
PHP Warning: unlink() [function.unlink]: open_basedir restriction in effect. File() is not within the allowed path(s): (/usr/X11R6/bin:/usr/bin:/usr/sbin:/xxxxx/xxxxx/www:/tmp:/home/counters:/var/lib/typo3) in /xxxxx/xxxxx/www/typo3conf/ext/mm_forum/includes/cache/class.tx_mmforum_cache_file.php line 141
The line tries to delete nothing if there is no files
141: foreach((array)$files as $file) unlink($file);
could be fixed with:
foreach((array)$files as $file){
if($file){unlink($file);}
}
Associated revisions
Fixed bug #9757: Autoconfig should be rewritten after update to sys_domain
[#BUGFIX] Fixed #9757 (Credits to Karsten Madsen)
[#BUGFIX] Fixed #9757 (Credits to Karsten Madsen)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/mm_forum/trunk@39663 735d13b6-9817-0410-8766-e36946ffe9aa
[#BUGFIX] Fixed #9757 (Credits to Karsten Madsen)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/mm_forum/branches/1.9.x@39663 735d13b6-9817-0410-8766-e36946ffe9aa
History
Updated by Ines Willenbrock over 2 years ago
- Status changed from New to Needs Feedback
This seems to be an old bug, which version of mm_forum are you using?
Updated by Karsten Madsen over 2 years ago
Ahh yes versions, sorry.
mm_forum 1.9.1
TYPO3 3.4.5
Updated by ian no-lastname-given over 2 years ago
Same problem here.
mm_forum 1.9.1
TYPO3 4.4.4
Karsten's fix solved it.
Updated by Martin Helmich over 2 years ago
- Status changed from Needs Feedback to Accepted
- Assignee set to Martin Helmich
- Priority changed from -- undefined -- to Should have
- Target version set to 1.9.2
Updated by Martin Helmich over 2 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset r39663.