Am incercat sa fac update de la un forum phpbb 2.0.13 la 2.0.14.
Rulez pe un sistem de operare Windows XP, deci imi trebuie o unealta de patch sub Windows. De la
http://unxutils.sourceforge.net/ am descarcat UnxUtils.zip. Din arhiva ma intereseaza fisierul patch.exe. Am luat forumul 2.0.13 si l-am pus in C:\forum. In acelasi director trebuie sa fie fisierul phpBB-2.0.13_to_2.0.14.patch si patch.exe.
In Command Prompt am dat comenzile:
Cod: Selectaţi tot
F:\Documents and Settings\c:
C:\cd forum
C:\forum>patch -cl -d c:\forum -p1 < phpBB-2.0.13_to_2.0.14.patch
Aici am primit eroarea:
Logic, daca stai sa te gandesti ca phpBB-2.0.13_to_2.0.14.patch este fisier Unix. L-am convertit in DOS cu un editor de text UltraEdit: File>Conversions>UNIX/MAC to DOS. Iata ce scrie in Help:
UNIX/MAC to DOS command (File menu)
Use this command to correct the end of line characters for display in UltraEdit and other text editors.
Some documents generated from UNIX-based systems (and some other systems) do not terminate each line with a carriage return and line feed. UltraEdit requires all lines to be terminated with a carriage return and line feed character.
This command searches the file for all carriage return and line feed characters. If a carriage return character is found without an accompanying line feed character, a line feed character is added. If a line feed character is found without a preceding carriage return character a carriage return character is inserted. If a line feed is found preceding a carriage return the characters are reversed.
La topicurile
How to apply a patch on windows?,
[RESOLVED] Patching problem am citit si alta modalitate de conversie Unix->DOS daca folositi EditPlus
Black Fluffy Lion scrie:Go to Document-->File Format (CR/LF)Go to Document-->File Format (CR/LF), change it to PC and then save the file and run the patch command again
Am rulat din nou comanda cu phpBB-2.0.13_to_2.0.14.patch transformat pentru DOS.
Cod: Selectaţi tot
C:\forum>patch -cl -d c:\forum -p1 < phpBB-2.0.13_to_2.0.14.patch
Si raspunsul a fost:
Cod: Selectaţi tot
patching file 'admin/admin_styles.php'
...
patching file 'viewtopic.php'
Nu uitati la sfarsit sa faceti update si la baza de date prin rularea din browser update_to_latest.php.