Child pages
  • Rozwiązywanie problemów
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Spis treści

Rozwiązywanie problemów

Wyłączanie komunikatu o błędach wyświetlania w przypadku nieoczekiwanych pustych stron

Jeśli panel administracyjny i/albo strona główna wyświetla regulanie pustą albo niekompletną stronę bez żadnego komunikatu o błędzie. Koniecznie jest włączenie wyświetlania błędów PHP w celu zrozumienia problemu.

Odbywa się to w pliku instalacji PrestaShop /config/defines.inc.php.  Należy zmodyfikować nastepującą linię:

define('_PS_MODE_DEV_', false);

...i zmienić na:

define('_PS_MODE_DEV_', true);

Przejrzyj swoją stronę sklepu ponownie. PrestaShop wyświetli wszystkie komunikaty o błędach (jeśli są jakieś), co powinno pomóc w rozwiązaniu problemu.

Gdy problem został rozwiązany, należy cofnąc wprowadzone zmiany, edytuj plik /config/defines.inc.php jeszcze raz i umieść wstecz fałszywą wartośc _PS_MODE_DEV_ constant.

Hostowanie na1&1: Rozwiązywanie problemu pamięci alokacji

Niektórzy ludzie mogą napotkać problemy z alokacją pamięci, zwłaszcza gdy panel administracyjny próbuje wyświetlić obrazy na dysku które są całkiem duże (ponad 800 Kb). Powinieneś wiedzieć, że nawet jeśli ręcznie zwiększysz limit pamięci hostingu do 128 Mb, to niektóre hostingi, takie jak 1&1, będą ograniczone do limitu 32 Mb. Zobacz sekcje FAQ od 1&1:http://faq.oneandone.co.uk/scripting/php/10.html.

Są tylko dwa rozwiązania, i obydwa są drastyczne:

  • Zmniejsz rozmiar pikseli swoich zdjęć, i zmniejsz ich rozmiar na dysku. To powinno także prawdopodobnie poprawić ogólną wydajność.
  • Zmień hosting na taki który obsługuje rozszerzenie pamięci.

Jest niemożliwe aby podłączyć więcej

Istnieją przypadki kiedy PrestaShop nie rozpozna e-maila albo chasła użytkownika, co uniemożliwia podłączenie zarówno panelu administracyjnego jak i strony głównej. Użytkownik jest odesłany do widoku logowania. Niektóre raporty wskazują na to, że IE10 jest jedyną przeglądarką w której się to dzieje.

To jest najprawdopodobnie problem z plikami ciasteczek w przeglądarce użytkownika sklepu: gdy użytkownik loguje się wielokrotnie w sklepie, klucze szyfrowania plików ciasteczek mogą się mieszać.

In any case, one easy way to fix this and to be able to log in again is to clear the browser's cache and cookies. Here is page explaining how to do just that, depending on the browser: https://support.google.com/mail/answer/32050?hl=en.

Regenerating a password manually

There are situations where nothing happens when you request a new password, and it doesn't work. There can be a number of reasons why this would happen, but the important thing is to be able to log in again.

This is will require you to access your database, using phpMyAdmin for instance.

You will have to follow the following procedure:

  1. Open the /config/settings.inc.php file, from your shop's root directory. Find the line containing "_COOKIE_KEY_". Copy the cookie content (without the quotes): it is the MD5 for your original password.
  2. You now need to generate a new MD5 hash for your password:
    1. Go to http://www.miraclesalad.com/webtools/md5.php.
    2. Paste the value of "_COOKIE_KEY_" in the text-field, and right after it, add your desired password. For instance, xykxB41JrEacRIoZxDioPNRmKeuO3ixCLygNxBAkeOkAHf2YUVESuT9jMYPASSWORD, where the cookie ends with T9j, and the desired password is MYPASSWORD (it can be anything you want).
    3. Click on the "md5" button: this will produce a MD5 hash of the text-field's content. Copy it.
  3. You now need to put this hash into your database:
    1. Open you shop's database using phpMyAdmin. If you don't know how to use phpMyAdmin, ask your webmaster, or your host.
    2. Open the pw_employee table, find the row corresponding to your account (it should feature your first name, last name, and e-mail address), and click its "Edit" button.
    3. Find the passwd field, and paste in the MD5 that you just generated.
  4. Log in to your back office with the email listed in the same table, and the desired password that you used above (MYPASSWORD). This will generate a new cookie key.

If it still doesn't work, use phpMyAdmin to access the ps_shop_url table and check the value of the main shop, whose id is 1. It should contain the shop's file path:

  • If your shop is at the root of the server, this variable should contain "/".
  • If your shop is in a sub-directory, it should contain it. For instance, if it's at "http://www.mywebsite/shop/", then the variable should contain "/shop/".

If all fails, contact the PrestaShop support team at http://support.prestashop.com/en/.

PrestaShop does not send me my new password

The request to reset the password only works if the SMTP server has been configured so that PrestaShop is able to send emails.

Two solutions present themselves to you:

  1. Configure the SMTP server to send emails:
    1. Get information for SMTP connection from your hosting provider.
    2. Go to your back office (either you or an administrator who can still log) "E-Mails" page, in the "Advanced parameters" menu.
    3. Select the "Use my own SMTP settings" option. A form will appear: fill it with the information given by your host.
    4. Save your changes.
    5. Request a new password once again. You should receive it.
  2. Follow these steps:
    1. Choose a new password. In our example, "$$$rabbit$159$$$".
    2. Using your FTP client, open the login.php file, located in your administration folder online (the name of which depends on your installation).
      At the bottom of the file, add the following line:
      echo md5( PSQL( _COOKIE_KEY_ . 'newpassword' ) );
      So with our example password:
      echo md5( PSQL( _COOKIE_KEY_ . '$$$rabbit$159$$$' ) );
      Remember to put your own new password!
  3. Go to the login screen to the back office, as if you wanted to log in, and copy the text that appears at the bottom of the page (e.g.: a0ee884b507dd4624ce51968cfbb19a9).
  4. Go to the PrestaShop database, for example using phpMyAdmin. In the ps_employee table, replace the existing value in the passwd column for the employee of which you want to change the password with the value obtained in the previous step. Save your changes.
  5. You can now connect with the usual username and new password.

Logging in after mistakenly deleting the default language pack

In the event that you deleted the default language pack from your shop install, you can have issues connecting to your back office again.

Here how to solve this if the default language was English:

  1. Go to phpMyAdmin. If you cannot access it, ask your host to perform these actions.
  2. Select your shop's database, and select the ps_lang table.
  3. Click the "Insert" button at the top, and create a new entry with these values:
    • id_lang -> 1
    • name -> English
    • active -> 1
    • iso_code -> en
    • language_code -> en
    • date_format_lite -> Y-m-d
    • date_format_full -> Y-m-d H:i:s
    • is_rtl -> 0
  4. Execute the query.

You should be able to log in again.

  • No labels