To jest tylko wersja do druku, aby zobaczyć pełną wersję tematu, kliknij TUTAJ
phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

F.A.Q. - Najczęściej Zadawane Pytania - Często zadawane pytania o pliki .patch

spy - 23-01-2006, 02:29
Temat postu: Często zadawane pytania o pliki .patch
Jeśli przeczytałeś/aś uważnie instrukcję i dalej czegoś nie rozumiesz lub masz coś do dodania, to będzie nam miło jeśli TUTAJ o tym napiszesz. Pamiętaj, że jeśli problemem jest brak podstawowej wiedzy w posługiwaniu się Systemem Operacyjnym zainstalowanym na Twoim komputerze, to taki post zostanie wykasowany. To nie jest miejsce, gdzie będziemy Cię uczyć podstaw gonienia myszki po ekranie. Rówież posty typu: "jestem kompletnie zielony i zupełnie nic z tego nie rozumiem" będą usuwane. Skoro czytasz to forum, możesz również wykorzystać internet do nauki i zanim zaczniesz zajmować się skryptami php zdobyć trochę wiedzy.
Konrad-kanku - 13-03-2006, 16:36

Witam. Mam obecnie forum które nie jest by Przemo. i chciałem zaktualizować je do wersji by Przemo. Przeczytałem dokładnie instrukcje lecz kiedy patchuje plik CR_194 to wyskakuje mi dużo failed. Niestety przeglądając pliki .rej dużo sie z nich nie dowiedziałem :/ i w tej chwili stoje w kropce. Bo nie chce sobie kasować tamtego forum bo już zdążyło się troszke rozwinąć a nie mogę zaktualizować go do wersji Przemo. Proszę o pomoc. z góry dziękuje. Pozdrawiam
spy - 15-03-2006, 15:37

Przecież patche są do forum Przema. Najpierw należy zmigrować forum "nie Przemo" do wersji Przema, a dopiero potem nakładać patche, o ile są potrzebne.
xeon - 15-05-2006, 15:48

Mam pytanko - jak patchuję forum to mogę to zrobić bezpośrednio na serwerze, a nie w wndowsie?? - Uważam, że nie ma sensu za każdym razem kopiować pliki z serwera na komputer i z powrotem!
Crack - 15-05-2006, 18:58

Jeśli umiesz to proszę bardzo - opis jest dla Windowsa ponieważ używa go większość osób. Pamiętaj tylko że i tak wypada zrobić jakąś kopię zapasową - chociażby poleceniem cp.
spy - 15-05-2006, 20:52

xeon, jasnee że tak, o ile masz dostęp do shella na serwerze, to tak jest nawet lepiej. Nie trzeba wtedy przepychać całości do siebie, wyszukiwać spaczowane pliki i kopiować je z powrotem na serwer.

Crack, oczywiście, że backupy są potrzebne, jednak zauważ, że w tym przypadku - jeśli po nałożeniu patcha coś źle działa - możesz cofnąć zmiany (zrobić reverse'a). Dodatkowo patch pozostawia pliki z rozszerzeniem .orig, które mozna traktować jako backup. Oczywiście do kolejnego nałożenia patcha na ten sam plik.

Crack - 16-05-2006, 13:54

Na tak zadane pytanie (3 posty powyżej) wolę do odpowiedzi dołozyć info o wykonaiu kopii bo gwarantuję że jak coś nie zadziała to bez naszej pomocy forum się nie uratuje :)
Goroman - 24-10-2006, 14:16

zacinam się przy kroku 12

zamiast
C:\Przemo>patch -F 3 -p1 < CR_194.patch
patching file "admin/admin_groups.php"
patching file "admin/admin_ranks.php"
patching file "admin/admin_users.php"
Hunk #1 succeeded at 938 (offset 31 lines).
Hunk #3 succeeded at 1294 (offset 31 lines).
patching file "common.php"
Hunk #1 succeeded at 365 with fuzz 2 (offset 27 lines).
patching file "groupcp.php"
Hunk #8 succeeded at 906 (offset -1 lines).
Hunk #10 succeeded at 1003 (offset -1 lines).
Hunk #11 succeeded at 1093 (offset 4 lines).
Hunk #12 succeeded at 1162 (offset -1 lines).
Hunk #13 succeeded at 1190 (offset 4 lines).
Hunk #14 succeeded at 1210 (offset -1 lines).
Hunk #15 succeeded at 1232 (offset 4 lines).
Hunk #16 succeeded at 1253 (offset -1 lines).
Hunk #17 succeeded at 1282 (offset 4 lines).
patching file "includes/constants.php"
Hunk #1 succeeded at 192 (offset 3 lines).
patching file "includes/functions.php"
patching file "includes/functions_color_rank.php"
patching file "includes/mods_info/color_ranks.php"
patching file "includes/page_header.php"
patching file "includes/topic_review.php"
patching file "includes/usercp_viewprofile.php"
Hunk #1 succeeded at 97 (offset 5 lines).
patching file "index.php"
Hunk #1 succeeded at 288 (offset 16 lines).
Hunk #3 succeeded at 443 (offset 16 lines).
Hunk #5 succeeded at 743 (offset 16 lines).
patching file "language/lang_polish/lang_admin.php"
Hunk #1 succeeded at 1381 (offset -86 lines).
patching file "language/lang_polish/lang_main.php"
Hunk #1 succeeded at 1386 with fuzz 3 (offset -1 lines).
patching file "memberlist.php"
patching file "modcp.php"
Hunk #1 succeeded at 1245 (offset -1 lines).
Hunk #3 succeeded at 1722 (offset -1 lines).
patching file "search.php"
Hunk #1 succeeded at 692 (offset -4 lines).
Hunk #3 succeeded at 999 (offset -9 lines).
patching file "shoutbox_view.php"
patching file "staff.php"
patching file "templates/subSilver/admin/group_edit_body.tpl"
patching file "templates/subSilver/admin/ranks_edit_body.tpl"
patching file "templates/subSilver/admin/ranks_list_body.tpl"
patching file "templates/subSilver/groupcp_info_body.tpl"
patching file "templates/subSilver/groupcp_user_body.tpl"
patching file "templates/subSilver/index_body.tpl"
Hunk #1 succeeded at 74 with fuzz 3 (offset -4 lines).
patching file "templates/subSilver/memberlist_body.tpl"
patching file "templates/subSilver/privmsgs_body.tpl"
patching file "templates/subSilver/viewonline_body.tpl"
patching file "viewforum.php"
Hunk #1 succeeded at 287 (offset 1 line).
Hunk #3 succeeded at 325 (offset 1 line).
Hunk #5 succeeded at 440 (offset 1 line).
Hunk #7 succeeded at 1012 (offset 3 lines).
patching file "viewonline.php"
patching file "viewtopic.php"
Hunk #1 succeeded at 903 (offset 8 lines).
Hunk #3 succeeded at 1750 (offset 8 lines).
Hunk #5 succeeded at 2219 (offset 8 lines).
patching file "warnings.php"

wyświela mi się dużo Failed
co robię źle ?

chelloPL - 24-10-2006, 18:27

Goroman, zamiast cytować bezmyślnie fragment, który nic nie wnosi do tematu, zacytowałbyś właśnie te błędy failed!
PS: używasz patcha, od złej wersji. Pobierz go dla wersji takiej, w jakiej masz forum.

Masz już 2 ostrzeżenia na koncie, a nadal piszesz posty, jakbyś nie znał zasad. Poczytaj regulamin - tu masz link:
Zasady ogólne

ma-rc - 15-02-2007, 10:07

A skad sciagnac plik CR_194.zip?
soser - 15-02-2007, 15:44

http://www.przemo.org/php...pic.php?t=20683
ArczeX - 07-06-2007, 11:56

Mam taki problem patchowałem sobie forum modem Spider Friendly 1.3.11 ( sf1311_1125.patch) i wyświetlił mi się komunikat FAILED

Kod:
C:\Przemo>patch -F 3 -p1 < sf1311_1125.patch
patching file "admin/modules_data.php"
Hunk #1 succeeded at 123 with fuzz 3.
patching file "common.php"
patching file "groupcp.php"
patching file "includes/constants.php"
Hunk #1 succeeded at 202 (offset 3 lines).
patching file "includes/functions.php"
Hunk #1 succeeded at 1705 (offset 2 lines).
Hunk #3 succeeded at 2723 (offset 2 lines).
patching file "includes/functions_add.php"
patching file "includes/functions_admin.php"
patching file "includes/functions_hierarchy.php"
patching file "includes/functions_post.php"
patching file "includes/functions_remove.php"
patching file "includes/page_header.php"
Hunk #3 succeeded at 366 (offset 1 line).
Hunk #4 succeeded at 412 (offset 1 line).
patching file "includes/page_tail.php"
patching file "includes/sessions.php"
patching file "includes/usercp_register.php"
Hunk #1 succeeded at 759 (offset 34 lines).
patching file "includes/usercp_sendpasswd.php"
patching file "index.php"
patching file "language/lang_english/lang_admin.php"
patching file "language/lang_polish/lang_admin.php"
Hunk #1 succeeded at 900 (offset 5 lines).
patching file "login.php"
patching file "modcp.php"
patching file "privmsg.php"
patching file "templates/subSilver/overall_footer.tpl"
patching file "viewforum.php"
patching file "viewtopic.php"
Hunk #3 succeeded at 1110 (offset 1 line).
Hunk #4 FAILED at 2568.
Hunk #5 succeeded at 2624 (offset 9 lines).
1 out of 5 hunks FAILED -- saving rejects to file "viewtopic.php.rej"


Oto zawartość Pliku .rej ! Jeśli wiecie czym był spowodowany błąd proszę o Pomoc !

Kod:
***************
*** 2542,2549 ****
              $quote_username = '';
              $quote_img = ($user_id != $poster_id || $user_id == ANONYMOUS) ? '<a href="' . $temp_url . '" class="gen" title="' . $lang['Reply_with_quote'] . '">[<b>' . $lang['quote_mini'] . '</b>]</a>' : '';
          }
          $quote = '<a href="' . $temp_url . '">' . $lang['Reply_with_quote'] . '</a>';
      }
 
      if ( ($forum_topic_data['topic_tree_width'] && ($user_id != $poster_id || $user_id == ANONYMOUS)) && !$forum_topic_locked )
      {
--- 2568,2583 ----
              $quote_username = '';
              $quote_img = ($user_id != $poster_id || $user_id == ANONYMOUS) ? '<a href="' . $temp_url . '" class="gen" title="' . $lang['Reply_with_quote'] . '">[<b>' . $lang['quote_mini'] . '</b>]</a>' : '';
          }
+         if (!simplify_pages())
+         {
          $quote = '<a href="' . $temp_url . '">' . $lang['Reply_with_quote'] . '</a>';
      }
+         else
+         {
+             $quote = '';
+             $quote_img = '';
+         }
+     }
 
      if ( ($forum_topic_data['topic_tree_width'] && ($user_id != $poster_id || $user_id == ANONYMOUS)) && !$forum_topic_locked )
      {

WoGuziczek - 03-12-2007, 14:12

A co oznacza jeśli przy patchowaniu pojawił się błąd..

Kod:

patching file admin/modules_data.php
Assertion failed: hunk, file patch-2.5.4/patch.c, line 343

This application has requested the Runtime to terminate it in an unsual way.
Please contact the application's support team for more information.


Co jest?
Patch od Spider Friendly 1.3.11

spy - 06-12-2007, 15:09

Wysypał się program patchujący. Paczka SF nie ma z tym nic wspólnego.
Gambit - 02-04-2008, 10:48

Kod:
c:\przemo>patch -p1 < 1.12.5_to_1.12.6.patch
patching file admin/modules_data.php
Assertion failed: hunk, file patch-2.5.4/patch.c, line 343

This application has requested the Runtime to terminate it in an unsual way.
Please contact the application's support team for more information.




Kod:
c:\przemo>patch -p1 < 1.12.5_to_1.12.6.patch
patching file admin/admin_db_utilities.php
Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line 354

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.


U mnie to samo co u kolegi powyzej - niezaleznie czy mam patcha 2.5.4 czy 2.5.9.

Ma ktos moze plik który dziala ? Bo niby jak uzywac patcha ktory nie dziala...



Powered by phpBB modified by Przemo © 2003 phpBB Group