SMF Development > Bug Reports

Missing check creating backups

(1/1)

maestrosite.ru:
    Version(s) of SMF 2.0.2

    Where the Error Occurred
        File: Source/Subs-Package.php
        Function: package_create_backup()
        Line: 2761-2793 - create section, And the following lines - write data
        Any relevant errors in the SMF error log (if so please post them)?:

    How to Reproduce this Error?:
1. Set invalid permission for dir "/backups/". For example, to the owner of another user and chmod 700. Or create file "backups" (not dir!)
2. Try install any modification

    Additional Information?
similar problem is shown: http://www.simplemachines.org/community/index.php?topic=459757.0


--- Quote ---2: gzclose() expects parameter 1 to be resource, boolean given
Файл: /home/user/work/smf2/www/Sources/Subs-Package.php
Строка: 2824
--- End quote ---

--- Quote ---2: gzwrite() expects parameter 1 to be resource, boolean given
Файл: /home/user/work/smf2/www/Sources/Subs-Package.php
Строка: 2810
--- End quote ---

--- Quote ---2: gzopen(****.tar.gz): failed to open stream: No such file or directory
Файл: /home/user/work/smf2/www/Sources/Subs-Package.php
Строка: 2786
--- End quote ---

emanuele:
Overlooked that one, sorry!

Yes, a more nice warning should be added.

Navigation

[0] Message Index

Go to full version