Awaiting feedback Blank pages because the returned page is incomplete

Version
1.1.3
PHP version
7.2.22
Database driver
MariaDB
Database version
10.4.6
Web browser
Firefox, curl, webkit

myself

New Member
Joined
Sep 9, 2019
Messages
3
Points
1
ğŸŽ¯Description of the issue

The site looks blank because the returned page is incomplete. If I view source, or get using curl, page finishes at

HTML:
<script>
    $(document).ready(function() {
        if(typeof CHV == "undefined") {
            CHV = {obj: {}, fn: {}, str:{}};
        } else {
            if(typeof CHV.obj.embed_tpl == "undefined") {
                CHV.obj.embed_tpl = {};
            }
        }
        CHV.obj.embed_tpl =
php is version 7.2.22

Installed extensions are:
  • pdo
  • pdo_mysql
  • gd
  • exif
  • zip
  • session
  • curl
  • gettext
Web Server is nginx, with configuration:
NGINX:
server {
    listen 80;
    root /var/www/html;
    index  index.php;

    access_log  /dev/stdout;
    error_log  /dev/stderr;

    client_max_body_size 1G;
    fastcgi_buffers 64 4K;

    location ~ /\.ht {
            deny all;
    }

    # Disable access to sensitive files in app path
    location ~ /(app|content|lib)/.*\.(po|php|lock|sql)$ {
       deny all;
    }

    # Disable log on not found images + image replacement
    location ~* (jpe?g|png|gif) {
            log_not_found off;
            error_page 404 /content/images/system/default/404.gif;
    }

    # Enable CORS header (needed for CDN)
    location ~* \.(ttf|ttc|otf|eot|woff|woff2|css|js)$ {
            add_header Access-Control-Allow-Origin "*";
    }

    # Force serve upload path as static content (match your upload folder if needed)
    location /images {}

    # Route dynamic request to index.php
    location / {
            try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ \.php$ {
        include         fastcgi.conf;
        fastcgi_pass    127.0.0.1:9000;
        fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }


}
😢Unexpected result

Pages appear blank.

📃Error log message

There are no errors reported.
 

myself

New Member
Joined
Sep 9, 2019
Messages
3
Points
1
I thought I would have to hack at the database or code to do this, because I didn't know how to get to the dashboard with only a blank page, but I did do.
I saw in the message that json_encode is missing. I needed to install module json.
Now it works.
Is there a full list of required modules for chevereto? I had to guess many modules before too before I got so far.
Thankyou.
 

myself

New Member
Joined
Sep 9, 2019
Messages
3
Points
1
It would be good if you could answer my last question, but I will mark this solved because the main question is.
 

Rodolfo

Chevereto Developer
Chevereto Staff
Joined
Oct 7, 2008
Messages
15,625
Points
237
Location
Chevereto HQ
Website
rodolfoberrios.com
I thought I would have to hack at the database or code to do this, because I didn't know how to get to the dashboard with only a blank page, but I did do.
I saw in the message that json_encode is missing. I needed to install module json.
Now it works.
Is there a full list of required modules for chevereto? I had to guess many modules before too before I got so far.
Thankyou.
Chevereto needs all the PHP "standard" libraries. You can check all what it requires here: https://github.com/Chevereto/Chevereto-Free/blob/master/app/lib/integrity-check.php