Menu

#22 Request patch file 0.4.2 -> 0.4.3

stable
open
nobody
update (1)
1
2020-06-16
2020-03-24
Anonymous
No

Hello,

I have been running an openupload server for years and I haven't touched it since a long time. Now I want to update to the latest version (for php 7 support) but I can't remember which files I have customized, is it possible to provide .patch files in order to upgrade without headaches ?

Regards

Discussion

  • Anonymous

    Anonymous - 2020-03-25

    Imho from GIT you should be abpe to create the patch.

     
  • Alessandro Briosi

    Here you go. generated with:
    git format-patch --stdout 9c0c2d6ae2a1b4d78f8f72b0a1e9c251c6dd1b1a > ../openupload-0.4.2-0.4.3.patch

     
  • Anonymous

    Anonymous - 2020-03-25

    Hello,

    Thanks for you quick reply,

    I put the patch file in the openupload root directory and typed :
    patch -p1 --verbose < openupload-0.4.2-0.4.3.patch

    I got a bunch of errors of this kind :

    patching file lib/modules/default/admin.inc.php
    Using Plan A...
    Reversed (or previously applied) patch detected!  Assume -R? [n]
    Apply anyway? [n]
    Skipping patch.
    Hunk #1 ignored at 1113.
    Hunk #2 ignored at 1133.
    2 out of 2 hunks ignored -- saving rejects to file lib/modules/default/admin.inc.php.rej
    Hmm...  The next patch looks like a unified diff to me...
    can't find file to patch at input line 46
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    --------------------------
    |diff --git a/www/setup.inc.php b/www/setup.inc.php
    |index 251609d..82979cf 100644
    |--- a/www/setup.inc.php
    |+++ b/www/setup.inc.php
    --------------------------
    File to patch:
    Skip this patch? [y] y
    Skipping patch.
    Hunk #1 ignored at 300.
    1 out of 1 hunk ignored
    

    When checking the site in a browser, I get this warning :

    Warning: Declaration of defaultAuth::useredit($user, $pwd = false) should be compatible with authBase::useredit(&$user, $pwd = false) in /home/clients/a1bc43f/openupload/lib/modules/auth/default.inc.php on line 72

    And after upgrading to php 7 some more :

    *Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AuthModule has a deprecated constructor in /home/clients/a1bc43f/openupload/lib/modules/default/auth.inc.php on line 3

    Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; CaptchaPlugin has a deprecated constructor in /home/clients/a1bc43f/openupload/plugins/captcha.inc.php on line 3*

     
  • Anonymous

    Anonymous - 2020-04-19
    Post awaiting moderation.
  • BatMat

    BatMat - 2020-06-16

    You should really consider much more modern and secure alternatives that are regularly updated.
    Such as https://www.zend.to/

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.