Komunikat o błędzie

  • User warning: The following module is missing from the file system: bueditor. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1181 of /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/bootstrap.inc).
  • User warning: The following module is missing from the file system: field_validation_extras. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1181 of /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/bootstrap.inc).
  • User warning: The following module is missing from the file system: field_validation_ui. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1181 of /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/bootstrap.inc).
  • User warning: The following module is missing from the file system: geshifield. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1181 of /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/bootstrap.inc).
  • User warning: The following module is missing from the file system: geshifilter. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1181 of /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/bootstrap.inc).
  • User warning: The following module is missing from the file system: google_plusone. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1181 of /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/bootstrap.inc).
  • User warning: The following module is missing from the file system: linkit. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1181 of /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/bootstrap.inc).
  • User warning: The following module is missing from the file system: property_validation. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1181 of /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/bootstrap.inc).
  • User warning: The following module is missing from the file system: taxonomy_menu. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1181 of /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/bootstrap.inc).
  • User warning: The following module is missing from the file system: tweetbutton. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1181 of /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/bootstrap.inc).
  • User warning: The following module is missing from the file system: wysiwyg. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1181 of /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/bootstrap.inc).
  • User warning: The following module is missing from the file system: field_validation. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1181 of /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/bootstrap.inc).
  • Notice: Undefined index: execute_responsive_theme w drupal_theme_initialize() (linia 100 z /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/theme.inc).
  • Notice: Trying to get property 'filename' of non-object w _drupal_theme_initialize() (linia 146 z /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/theme.inc).
  • Notice: Trying to get property 'name' of non-object w _theme_load_registry() (linia 335 z /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/theme.inc).
  • Notice: Undefined index: execute_responsive_theme w theme_get_setting() (linia 1440 z /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/theme.inc).

Komplikacja

Brak dostępu do panelu zaplecza PrestaShop. W logach

Wiedza: 
Praktyczna

W konsoli podajesz
[bash]apt install libmemcached-tools php-memcached memcached libmemcached-dev
cd /usr/local/src
wget https://github.com/php-memcached-dev/php-memcached/archive/v3.1.5.tar.gz
tar -xzvf v3.1.5.tar.gz
cd php-memcached
/usr/local/php72/bin/phpize
./configure --with-php-config=/usr/local/php72/bin/php-config
make
make install
[/bash]
Wynik końcowy
[code]Installing shared extensions: /usr/local/php72/lib/php/extensions/no-debug-non-zts-20170718/[/code]
Sprawdź plik z konfiguracją PHP

Wiedza: 
Praktyczna

Komplikacja

Przy włączonym trybie debugowania zaplecza PrestaShop zwraca błąd
[code] (1/1) ContextErrorException

Zastosowanie: 
Migracja PrestaShop z PHP 7.2 na 7.3
Wiedza: 
Praktyczna

W konsoli podajesz
[bash]awk '!a[$0]++' plik
[/bash]

Zastosowanie: 
Usuwanie zduplikowanych rekordów w pliku - AWK
Wiedza: 
Praktyczna

W konsoli podajesz
[bash]convert *.png -auto-orient plik.pdf[/bash]

Zastosowanie: 
Konwertowanie plików graficzny do PDF
Wiedza: 
Praktyczna

W bazie MySQL w tabeli [code]`ps_currency_lang`[/code] wypełnił kolumnę [code]name[/code] oraz [code]symbol[/code]

Zastosowanie: 
Nie wyświetla się waluta w PrestaShop
Wiedza: 
Praktyczna

[bash]
#!/bin/bash

for plik in *.png; do
tesseract $plik $plik --dpi 150
done[/bash]

Zastosowanie: 
Masowe odczytywanie tekstu z plików graficznych w CLI
Wiedza: 
Praktyczna

[bash]
#!/bin/bash

regex=(
'1126436'
'1126448'
'1126457'
)

for i in ${regex[@]}
do
chromium --headless --disable-gpu --enable-logging --window-size=1500,3333 --screenshot=$i.png https://tomlot.eu/$i

done[/bash]

Zastosowanie: 
Masowe tworzenie zrzutów ekranu z listy wielu stron
Wiedza: 
Praktyczna

W konsoli podajesz
[bash]grep -rE "(\"|')fraza""(\"|')"
[/bash]

Zastosowanie: 
Jak znaleźć pojedyncze i podwójne apostrofy grep
Wiedza: 
Praktyczna

W konsoli podajesz
[bash]grep -lr "fraza" | xargs -i cp --parents {} katalog_docelowy
[/bash]

Zastosowanie: 
Kopiowanie znalezionych plików przez grep wraz z architekturą katalogów
Wiedza: 
Praktyczna

Strony

Subskrybuj TomLot.eu RSS