• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • This community is user driven. Be polite with other users.
    • We recommend purchasing a Chevereto license to participate in this community.
    • Purchase a Community Subscription to get even faster ticket response times.

Update v3.7.1 problem

Status
Not open for further replies.
Seems that the server has issues generating the minified file.

Code:
https://cdn.scrot.moe/lib/Peafowl/js/scripts.js
https://cdn.scrot.moe/lib/Peafowl/js/scripts.min.js

I disabled the minify feature and now it works fine. If you are OK allowing me to test why that is failing please let me know.
 
It seems related to this bit in lib/G/classess/class.minify.php

PHP:
            if(@is_readable($this->target) and !$this->forced) {
                $source_mtime = filemtime($this->source);
                $target_mtime = filemtime($this->target);
                if($source_mtime and $target_mtime and $target_mtime > $source_mtime) {
                    $this->result = $this->target;
                    return;
                }
            }

That code determines if the minified file already exists and if that's the case, whatever the source (non-minified) is older than the target (minified file). I ran using the forced flag and the files got generated, you may need to flush your CDN to reflect those.

Problem is that I did found null files, so when you did the update (the update comes with minified files already) your installation re-generated those minified files for some reason. I don't have a clue on why it generated zero or nulled .js files because I didn't found that behavior (the class is doing the job).

When you issue the next update make sure to keep an eye of those and if you find an issue let me know asap to debug it properly.
 
Yeah you need to login as admin and complete the update or disable the maintenance mode. /login
 
Status
Not open for further replies.
Back
Top