Всем привет, 2 дня пытался исправить ничего не получилось, может кто-то сможет подсказать что с этим делать
На добавлении товара иногда вылазит ошибка, если открою один товар и буду много раз его добавлять в корзину
PHP Warning: Cannot modify header information - headers already sent by (output started at php://input:1) in /var/www/site/catalog/controller/startup/session.php on line 25
В файловом менеджере иногда появляеться ошибка при создании папки
PHP Warning: Cannot modify header information - headers already sent by (output started at php://input:1) in /var/www/site/system/framework.php on line 112
Использую:
VPS от Contabo
Cloudflare - Proxy - SSL: Flexible OpenCart 3.0.3.8
Nginx
PHP-FPM(7.4) в докере
MySQL в докере
Тема FeelMart
Дополнительных модулей не устанавливал
Файлы не менял
Много тем по поводу BOM, пытался исправить через
find . -not -path "*/.git/*" -type f -exec sed 's/^\xEF\xBB\xBF//' -i.bak {} \; -exec rm {}.bak \;
Конфиг nginx
server {
server_name site.com;
charset utf-8;
index index.php index.html;
disable_symlinks if_not_owner from=$root_path;
access_log /var/site/access.log;
error_log /var/site/error.log notice;
set $root_path /var/www/site;
root $root_path;
location / {
location ~ [^/]\.ph(p\d*|tml)$ {
try_files /does_not_exists @php;
}
if (!-e $request_filename){
rewrite ^/(.+)$ /index.php?_route_=$1 last;
}
}
location @fallback {
error_log /dev/null crit;
access_log off ;
}
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {
expires 180d;
log_not_found off;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
try_files $uri $uri/ @fallback;
}
# Fix for Firefox issue with cross site font icons
location ~* \.(eot|otf|ttf|woff)$ {
add_header Access-Control-Allow-Origin *;
}
location ~* (\.(tpl|ini))$ { deny all; }
location ~* \.(engine|inc|info|ini|install|log|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|Entries.*|Repository|Root|Tag|Template)$|\.php_ {
deny all;
}
location ~ /\. {
access_log off;
log_not_found off;
deny all;
}
location ~ ~$ {
access_log off;
log_not_found off;
deny all;
}
location ~* /(?:cache|logs|image|download)/.*\.php$ {
deny all;
}
location @php {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
try_files $uri =404;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_intercept_errors on;
fastcgi_ignore_client_abort off;
fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
}
location ~ /\.ht {return 404;}
location ~ /\.tpl/ {return 404;}
}