OJS + Nginx errors


#1

Hello, can anyone help me with these errors?
With Apche it works normally.
But I need to use Nginx.
OJS 3.1.0.1.
Debian 9.7

[error] 30501#30501: *47 FastCGI sent in stderr: “PHP message: PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /var/www/site/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0
PHP message: PHP Warning: Declaration of CustomBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /var/www/site/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0
PHP message: PHP Warning: Declaration of CustomBlockPlugin::getContents(&$templateMgr, $request = NULL) should be compatible with BlockPlugin::getContents($templateMgr, $request = NULL) in /var/www/site/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0” while reading response header from upstream, client: IP, server: ojs.domain, request: “GET /ojs/?journal=bcnaturais HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.0-fpm.sock:”, host: “ojs.domain”
[error] 30501#30501: *47 FastCGI sent in stderr: “PHP message: PHP Warning: Declaration of SubmissionFileDAO::fromRow($row) should be compatible with PKPSubmissionFileDAO::fromRow($row, $fileImplementation) in /var/www/site/ojs/classes/article/SubmissionFileDAO.inc.php on line 23” while reading upstream, client: IP, server: ojs.domain, request: “GET /ojs/?journal=bcnaturais HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.0-fpm.sock:”, host: “ojs.domain”

###MY NGINX FILE
server {
listen 80;

server_name ojs.domain;
 return 301 https://ojs.domain$request_uri;

}

server {
listen 443 ssl;
server_name ojs.domain;

    root /var/www/site;
    index index.php index.html index.htm;

location = / {
return 301 /ojs/;
}

SSL

    ssl_certificate    /etc/ssl/certs/site.crt;
    ssl_certificate_key    /etc/ssl/certs/site.key;

LOG

    access_log /var/log/nginx/ojs.access.log;
    error_log /var/log/nginx/ojs.error.log;

    location ~ /\.ht {
            deny  all;
    }
    location ~ ^/ojs/cache(.*)$ {
            deny all;
    }
    location  ~ /ojs/index.php$ {
            try_files $uri =404;
            fastcgi_pass   unix:/var/run/php/php7.0-fpm.sock;
            include /etc/nginx/fastcgi_params;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
    }
    location ~ ^/ojs/index.php {
            try_files $uri @ojs;
    }
    location @ojs {
            try_files $uri =404;
            set $script $uri;
            set $path_info "";
            if ($uri ~ "^(.+.php)(/.+)") {
                    set $script $1;
                    set $path_info $2;
            }
            fastcgi_pass   unix:/var/run/php/php7.0-fpm.sock;
            include /etc/nginx/fastcgi_params;
            fastcgi_index  index.php;
            fastcgi_param SCRIPT_NAME $script;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            fastcgi_param PATH_INFO $path_info;
    }

    location ~* .(js|css|jpg|png|jpeg|gif|ico|pdf)$ {
            expires max;
            log_not_found off;
    }
    location = /favicon.ico {
            log_not_found off;
            access_log off;
    }
    location = /robots.txt {
            allow all;
            log_not_found off;
            access_log off;
    }

}