Skip to content

Instantly share code, notes, and snippets.

@atomjoy
Last active October 9, 2024 16:57
Show Gist options
  • Select an option

  • Save atomjoy/d78c3ebb318b6acda832f75da26b46e6 to your computer and use it in GitHub Desktop.

Select an option

Save atomjoy/d78c3ebb318b6acda832f75da26b46e6 to your computer and use it in GitHub Desktop.
Jak zainstalować Prestashop z Xampp na Windows 10 (Błędy podczas instalacji presta shop z xampp).

Prestashop Xampp Win 10

Jak zainstalować Prestashop z Xampp na Windows 10 (Błędy podczas instalacji presta shop z xampp).

Xampp

Zmienne środowiskowe

Ssl error windows

# Win + R
sysdm.cpl

# Dodaj zmienną środowiskową
OPENSSL_CONF

# Wartość
C:\xampp\apache\conf\openssl.cnf

# Restartuj xampp z panelu

Php.ini

Wymagane biblioteki

# Enable ext
extension=intl
extension=openssl
extension=php_openssl.dll

# Cahe
realpath_cache_size = 5M

Error 500

Zaktualizuj funkcję w app/AppKernel.php a po instalacji przywróć oryginalną.

protected function getContainerClearCacheLockPath(): string
{
    # Add and remove after install
    $class = $this->getContainerClass();
    $cacheDir = sys_get_temp_dir(); //$this->getCacheDir();    
    return sprintf('%s/%s.php.cache_clear.lock', $cacheDir, $class);
    
    // Orginal 
    $class = $this->getContainerClass();
    $cacheDir = $this->getCacheDir();
    
    return sprintf('%s/%s.php.cache_clear.lock', $cacheDir, $class);    
}

Kropki za przycickiem z presta

button::before {
    position: absolute;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6.5 13' style='enable-background:new 0 0 6.5 13' xml:space='preserve'%3E%3Cstyle%3E.st0{fill:gray}%3C/style%3E%3Ccircle class='st0' cx='4.3' cy='5.4' r='1.1'/%3E%3Ccircle class='st0' cx='1.1' cy='11.9' r='1.1'/%3E%3C/svg%3E");
    background-position: 0 100%;
    background-repeat: repeat;
    background-size: .4rem auto;
    bottom: 0;
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
    width: 100%;
    z-index: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment