Právě je 16 dub 2024 06:43

Všechny časy jsou v UTC + 1 hodina [ Letní čas ]




Odeslat nové téma Odpovědět na téma  [ Příspěvků: 4 ] 
Autor Zpráva
 Předmět příspěvku: Drupal 6 na 7 - Chyba při update.php
PříspěvekNapsal: 07 pro 2016 03:39 
C4 zákazník

Registrován:
07 pro 2016 03:26
Příspěvky:
2
Dobrý den,

obracím se na Vás s žádostí o radu, jedná se o web cckkarvina.cz běžící na vašem hostingu.

Provádel jsem upgrade Drupalu z verze 6.38 na 7.52 a po nakopírování souborů nové verze do kořenové složky webu jse spustil aktualizaci databáze
přes http://www.cckkarvina.cz/update.php a bohužel se mi objevila chybová hláška a aktualizace nebyla dokončena.

V příloze zasílám printscreen chyby. Prosím o radu jak správně postupovat.

Předem děkuji zakladné vyřízení a těším se na další spolupráci.

S pozdravem

Radim Lederer


Přílohy:
chyba při update.PHP.png
chyba při update.PHP.png [ 135.83 KiB | Zobrazeno 7332 krát ]
Nahoru
 Profil  
 
 Předmět příspěvku: Re: Drupal 6 na 7 - Chyba při update.php
PříspěvekNapsal: 07 pro 2016 16:26 
C4 podpora
C4 podpora

Registrován:
30 čer 2009 09:14
Příspěvky:
8501
Dobrý den,

v případě warning hlášení se jedná o problém s dočasnou složkou tmp. Jakou cestu jste měl pro složku nastavenou a opravdu složka existuje? A pro chybu DatabaseSchemaObjectExistsException je k dispozici tento patch.

Jinak aktualizaci není dobré provádět na ostré verzi. Vždy si ji nejdříve vyzkoušet na testovací instalaci, protože nikdy nevíte, jaké problémy mohou nastat.

_________________
Radek Plašil
Webhosting C4
https://www.c4.cz/


Nahoru
 Profil  
 
 Předmět příspěvku: Re: Drupal 6 na 7 - Chyba při update.php
PříspěvekNapsal: 07 pro 2016 23:18 
C4 zákazník

Registrován:
07 pro 2016 03:26
Příspěvky:
2
Dobrý den,

složka Temp asi neexistuje, alespoň jsem ji přes FTP nenašel v adresářové struktuře.
Můžete mi prosím poradit který patch použít a jak tedy dále postupovat, ke zdárnému upgradu stránek?
Jsou povoleny a nastaveny všechny hodnoty na vašem webhostingu pro fungování našeho webu v Drupalu 7?
Děkuji za odpověď.


Nahoru
 Profil  
 
 Předmět příspěvku: Re: Drupal 6 na 7 - Chyba při update.php
PříspěvekNapsal: 08 pro 2016 11:49 
C4 podpora
C4 podpora

Registrován:
30 čer 2009 09:14
Příspěvky:
8501
Dobrý den,

aplikace Drupal musela nějakou dočasnou složku určitě používat. Buď se nacházela ve standardním umístění /data/www/nazev-domeny/tmp/nazev-webu, které není viditelné přes FTP, nebo jste ji měl v nějakém jiném umístění, které jste si musel sám nastavit. Ale protože se při aktualizaci objevila chyba s dočasnou složkou, tak to opravdu vypadá, že jste měl složku v nějakém vlastním umístění, které ale po nahrání instalačních souborů nové verze neexistovalo.

Pro verzi Drupal 7 použijte patch číslo #47. Tento patch musíte aplikovat ještě před spuštěním aktualizaci.

Když se nyní podívám na Vaše stránky, tak obsahují hlášení o neexistujícím modulu. Takže to vypadá, že jste před aktualizací nedeaktivoval všechny moduly mimo sekce "Jádro - nepovinné" a "Jádro - povinné". Prováděl jste aktualizaci přesně podle návodu?
Kód:
MAJOR VERSION UPGRADE
---------------------
To upgrade from a previous major version of Drupal to Drupal 7.x, after
following the instructions in the INTRODUCTION section at the top of this file:

1. Check on the Drupal 7 status of your contributed and custom modules and
   themes. See http://drupal.org/node/948216 for information on upgrading
   contributed modules and themes. See http://drupal.org/node/895314 for a list
   of modules that have been moved into core for Drupal 7, and instructions on
   how to update them. See http://drupal.org/update/modules for information on
   how to update your custom modules, and http://drupal.org/update/theme for
   custom themes.

   You may decide at this point that you cannot upgrade your site, because
   needed modules or themes are not ready for Drupal 7.

2. Update to the latest available version of Drupal 6.x (if your current version
   is Drupal 5.x, you have to upgrade to 6.x first). If you need to update,
   download Drupal 6.x and follow the instructions in its UPGRADE.txt. This
   document only applies for upgrades from 6.x to 7.x.

3. In addition to updating to the latest available version of Drupal 6.x core,
   you must also upgrade all of your contributed modules for Drupal to their
   latest Drupal 6.x versions.

4. Log in as user ID 1 (the site maintenance user).

5. Go to Administer > Site configuration > Site maintenance. Select
   "Off-line" and save the configuration.

6. Go to Administer > Site building > Themes. Enable "Garland" and select it as
   the default theme.

7. Go to Administer > Site building > Modules. Disable all modules that are not
   listed under "Core - required" or "Core - optional". It is possible that some
   modules cannot be disabled, because others depend on them. Repeat this step
   until all non-core modules are disabled.

   If you know that you will not re-enable some modules for Drupal 7.x and you
   no longer need their data, then you can uninstall them under the Uninstall
   tab after disabling them.

8. On the command line or in your FTP client, remove the file

     sites/default/default.settings.php

9. Remove all old core files and directories, except for the 'sites' directory
   and any custom files you added elsewhere.

   If you made modifications to files like .htaccess or robots.txt, you will
   need to re-apply them from your backup, after the new files are in place.

10. If you uninstalled any modules, remove them from the sites/all/modules and
   other sites/*/modules directories. Leave other modules in place, even though
   they are incompatible with Drupal 7.x.

11. Download the latest Drupal 7.x release from http://drupal.org to a
   directory outside of your web root. Extract the archive and copy the files
   into your Drupal directory.

   On a typical Unix/Linux command line, use the following commands to download
   and extract:

     wget http://drupal.org/files/projects/drupal-x.y.tar.gz
     tar -zxvf drupal-x.y.tar.gz

   This creates a new directory drupal-x.y/ containing all Drupal files and
   directories. Copy the files into your Drupal installation directory:

     cp -R drupal-x.y/* drupal-x.y/.htaccess /path/to/your/installation

   If you do not have command line access to your server, download the archive
   from http://drupal.org using your web browser, extract it, and then use an
   FTP client to upload the files to your web root.

12. Re-apply any modifications to files such as .htaccess or robots.txt.

13. Make your settings.php file writeable, so that the update process can
   convert it to the format of Drupal 7.x. settings.php is usually located in

     sites/default/settings.php

14. Run update.php by visiting http://www.example.com/update.php (replace
   www.example.com with your domain name). This will update the core database
   tables.

   If you are unable to access update.php do the following:

   - Open settings.php with a text editor.

   - Find the line that says:
     $update_free_access = FALSE;

   - Change it into:
     $update_free_access = TRUE;

   - Once the upgrade is done, $update_free_access must be reverted to FALSE.

15. Backup your database after the core upgrade has run.

16. Replace and update your non-core modules and themes, following the
   procedures at http://drupal.org/node/948216

17. Go to Administration > Reports > Status report. Verify that everything is
   working as expected.

18. Ensure that $update_free_access is FALSE in settings.php.

19. Go to Administration > Configuration > Development > Maintenance mode.
   Disable the "Put site into maintenance mode" checkbox and save the
   configuration.

To get started with Drupal 7 administration, visit
http://drupal.org/getting-started/7/admin


Jelikož nevím, jak jste při aktualizaci postupoval, doporučuji Vám původní verzi stránek obnovit ze zálohy. A buď aktualizaci provést znovu přesně podle návodu, nebo si celý proces aktualizace nejdříve vyzkoušet na testovací kopii stránek (např. na subdoméně). Případně pokud si na aktualizaci netroufáte, tak se můžete obrátit na některého z našich partnerů (příp. vpravo blok Drupal partneři), který se aplikaci Drupal věnuje.

Jinak momentálně je Váš web nastavený pro správnou funkčnost aplikace Drupal 7.

_________________
Radek Plašil
Webhosting C4
https://www.c4.cz/


Nahoru
 Profil  
 
Zobrazit příspěvky za předchozí:  Seřadit podle  
Odeslat nové téma Odpovědět na téma  [ Příspěvků: 4 ] 

Všechny časy jsou v UTC + 1 hodina [ Letní čas ]


Kdo je online

Uživatelé procházející toto fórum: Žádní registrovaní uživatelé a 0 návštevníků


Nemůžete zakládat nová témata v tomto fóru
Nemůžete odpovídat v tomto fóru
Nemůžete upravovat své příspěvky v tomto fóru
Nemůžete mazat své příspěvky v tomto fóru
Nemůžete přikládat soubory v tomto fóru

Hledat:
Přejít na:  
FTP Uploader
Staňte se naším zákazníkem!
Hledáme kolegy
Drupal partneři

Seznam všech partnerů

Drupal Hosting
Návody pro C4

© 2009-2024 ČESKÝ WEBHOSTING s.r.o. Kontaktní e-mail: forum@c4.cz
Diskuzní fórum využívá technologie: phpBB, phpBB-SEO.com, phpBB.cz