XF 2.2 NGINX Windows Fresh Install

We're seeing the following errors repeatedly and I'm unsure as to why.

  • ErrorException: Template error: [E_WARNING] Trying to access array offset on null
  • internal_data\code_cache\templates\l1\s0\admin\PAGE_CONTAINER.php:219
    Code:
    #0 internal_data\code_cache\templates\l1\s0\admin\PAGE_CONTAINER.php(219): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Try...', 'C:\\nginx\\html\\i...', 219)#1 src\XF\Template\Templater.php(1654): XF\Template\Templater->{closure}(Object(DigitalPoint\Cloudflare\XF\Template\Templater), Array, NULL)
    #2 src\XF\Admin\App.php(259): XF\Template\Templater->renderTemplate('PAGE_CONTAINER', Array)
    #3 src\XF\App.php(2285): XF\Admin\App->renderPageHtml('
    
    
    
    
        <div clas...', Array, Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
    #4 src\XF\Admin\App.php(138): XF\App->renderPage('
    
    
    
    
        <div clas...', Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
    #5 src\XF\Mvc\Dispatcher.php(404): XF\Admin\App->renderPage('
    
    
    
    
        <div clas...', Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
    #6 src\XF\Mvc\Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
    #7 src\XF\App.php(2487): XF\Mvc\Dispatcher->run()
    #8 src\XF.php(524): XF\App->run()
    #9 admin.php(13): XF::runApp('XF\\Admin\\App')
    #10 {main}

  • NGINX Config

  • Code:
    server {
            listen 80;
            listen 443 ssl;
            listen [::]:443 ssl;
    
            server_name nextgen-rp.com;
    
            # SSL is highly encouraged but optional. If not using SSL, comment the below and change the listen blocks above.
            ssl_certificate /certs/certificate.pem;
            ssl_certificate_key /certs/privkey.pem;
            
            error_log c:/nginx/logs/localhost.error.log;
            access_log c:/nginx/logs/localhost.access.log;
            root c:/nginx/html/;
    
            location / {
                try_files $uri $uri/ /xf/index.php?$uri&$args;
                index index.php index.html;
            }
    
            location /install/data/ {
                internal;
            }
            location /install/templates/ {
                internal;
            }
            location /internal_data/ {
                internal;
            }
            location /library/ { #legacy
                internal;
            }
            location /src/ {
                internal;
            }
    
            #location ~ \.php {
            #    try_files $uri =404;
            #    fastcgi_split_path_info ^(.+\.php)(/.+)$;
            #    include fastcgi_params;
            #    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            #    fastcgi_param SCRIPT_NAME $fastcgi_script_name;
            #    fastcgi_index index.php;
            #    fastcgi_pass 127.0.0.1:9123;
            #}
            
            location ~ \.php$ {
                try_files $uri =404;
                fastcgi_pass    127.0.0.1:9123;
                fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include         fastcgi_params;
            }
        }
 

It'a also mentioned in the release thread for each version:

 
Top Bottom