Грешка:
"PHP Fatal error: Redefinition of parameter $id_shop in /var/www/modules/spverticalmenu/Verticalmenu.php on line 655"
Решение:
Стар код:
protected function getCMSPages($id_cms_category, $id_shop = false, $id_lang = false, $id_shop = false)
{
$id_shop = ($id_shop !== false) ? (int)$id_shop : (int)Context::getContext()->shop->id;
$id_lang = $id_lang ? (int)$id_lang : (int)Context::getContext()->language->id;
Нов код:
public function getCMSPages($id_cms_category, $id_shop = false, $id_lang = false, $id_shop2 = false, $is_list = false)
{
$id_shop = ($id_shop !== false) ? (int)$id_shop : (int)Context::getContext()->shop->id;
$id_shop = ($id_shop2 !== false) ? (int)$id_shop2 : (int)Context::getContext()->shop->id;
Грешка:
"PHP Fatal error: Uncaught Error: Call to undefined function mcrypt_encrypt() in /var/www/classes/Rijndael.php:50"
Решение:
UPDATE `ps_configuration` SET `value` = '0' WHERE `name` = 'PS_CIPHER_ALGORITHM';
VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.22_1171]
Confirm Form Resubmission
This webpage requires data that you entered earlier in order to be properly displayed. You can send this data again, but by doing so you will repeat any action this page previously performed.
Press the reload button to resubmit the data needed to load the page.
ERR_CACHE_MISS
header('Cache-Control: no cache'); //no cache
session_cache_limiter('private_no_expire'); // works
session_start();
VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.22_1171]
find . -name "*.php" -exec grep "base64" '{}' \; -print &> b64-detections.txt
find . -name "*.php" -exec grep "eval" '{}' \; -print &> eval-detections.txt
Тук има интересни публикации: www.pomagalo1.com
VN:F [1.9.22_1171]
Rating: 5.0/5 (1 vote cast)
VN:F [1.9.22_1171]
ssh root@IP -p 22 -v
Unable to negotiate with IP port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 root@IP -p 22 -v
Тук вече се конектва правилно!
Има и друг вариант
Файл: /etc/ssh/ssh_config:
Host *
GSSAPIAuthentication yes
KexAlgorithms +diffie-hellman-group1-sha1
VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.22_1171]
1. Генериране на nginx файлове от Суперхостинг
cat "Частен ключ (Private Key)" > nginx.key
cat "Сертификат" > bundle.crt
cat "CA-Bundle / Root certificate" >> bundle.crt
На практика bundle.crt, включва "Сертификат" и "CA-Bundle / Root certificate"
2. .htaccess
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^domain.com$ [NC]
RewriteRule ^(.*)$ https://domain.com/$1 [L,R=301]
3. Nginx
server
{
listen 80;
listen 443 ssl;
server_name domain.com www.domain.com;
ssl_certificate /etc/nginx/ssl/domain.com/bundle.crt;
ssl_certificate_key /etc/nginx/ssl/domain.comg/nginx.key;
if ($server_port = 80) {
rewrite ^/(.*)$ https://profi.bg/$1 permanent;
}
………..
}
4. Reload
nginx -t
/etc/init.d/nginx reload
VN:F [1.9.22_1171]
Rating: 5.0/5 (1 vote cast)
VN:F [1.9.22_1171]
Директно сетваме парола "pass" в таблица "admin"
hash: 6cdd7c57450225fac77427f5962bb726:40
UPDATE `DB`.`admin` SET `admin_password` = '6cdd7c57450225fac77427f5962bb726:40' WHERE `admin`.`admin_id` = 6;
VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.22_1171]
Деактивиране на SSL при prestashop
UPDATE ps_configuration SET value='0' WHERE name='PS_SSL_ENABLED';
VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.22_1171]
Понеже не се разпознава осветяването.
File: /etc/rc.local
xmodmap -e 'add mod3 = Scroll_Lock'
или
#пуска осветяването
xset led on
#спира осветяването
xset led off
VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.22_1171]
file:/etc/rc.local
#Optimize chrome
mkdir /tmp/ccache
mount -t tmpfs -o size=512M,mode=0744 tmpfs /tmp/ccache/;
chmod -R 777 /tmp/ccache/;
#Shortcut
#/usr/bin/google-chrome-stable -disk-cache-dir="/tmp/ccache/" -disk-cache-size=600000000 --password-store=basic#Optimize firefox
about:config
browser.cache.disk.enable -- false
browser.cache.memory.enable -- true
about:cache
VN:F [1.9.22_1171]
Rating: 5.0/5 (1 vote cast)
VN:F [1.9.22_1171]
lftp -u FTP_USER,FTP_PASS -e 'mirror REMOTE_DIRECTORY LOCAL_DIRECTORY' FTP_SERVER
Ако излезе тази грешка:
mirror: Fatal error: Certificate verification: certificate common name doesn't match requested host name ‘FTP_SERVER’
1 error detected
Фикса е:
echo "set ssl:verify-certificate no" >> ~/.lftp/rc
VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.22_1171]
Posts navigation
Личен Блог на Мартин Петров