CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #9757

PHP Warning: unlink()

Added by Karsten Madsen over 2 years ago. Updated over 2 years ago.

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

Revision 33824
Added by Dmitry Dulepov almost 3 years ago

Fixed bug #9757: Autoconfig should be rewritten after update to sys_domain

Revision 39663
Added by Martin Helmich over 2 years ago

[#BUGFIX] Fixed #9757 (Credits to Karsten Madsen)

Revision 47978c21
Added by Martin Helmich over 2 years ago

[#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

Revision 28f67f02
Added by Martin Helmich over 2 years ago

[#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.

Also available in: Atom PDF