Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

Loading Loop #1113

Open
tom5ki7 opened this issue Sep 15, 2019 · 2 comments
Open

Loading Loop #1113

tom5ki7 opened this issue Sep 15, 2019 · 2 comments

Comments

@tom5ki7
Copy link

tom5ki7 commented Sep 15, 2019

Installed Codiad via cPanel. Open up Codiad and login, I can't even create a new file. It's just stuck loading. Any help?

@dogaoz
Copy link

dogaoz commented Sep 21, 2019

Check these out. I had the same problem
#1082
#1044

@Theycallmeholla
Copy link

I'm having the same issue on a freshly installed Ubuntu 18;04, PHP 7.2 with Apache 2.4.29.
The project loading icon in the left top corner just keeps turning in circles and nothing else happens.

Apache access.log:
192.168.1.1 - - [15/Aug/2018:15:57:18 +0200] "GET /editor/components/user/controller.php?action=verify HTTP/1.1" 200 486 "https://domain.com/editor/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"

Apache error.log:
[Wed Aug 15 15:28:19.525360 2018] [php7:error] [pid 23294] [client 192.168.1.1:39942] PHP Fatal error: Cannot redeclare mb_ord() in /var/www/html/editor/lib/diff_match_patch.php on line 2079, referer: https://domain.com/editor/

I edited /var/www/html/editor/lib/diff_match_patch.php and put comments around the offending code and then Codiad started working again. Seems those functions are already available in PHP 7.2, so no need to redeclare them (like the message in error.log says). I'm sure there is a more elegant way to fix this, but this works for me for now.

/*
function mb_ord($v) {
        $k = mb_convert_encoding($v, 'UCS-2LE', 'UTF-8');
        $k1 = ord(substr($k, 0, 1));
        $k2 = ord(substr($k, 1, 1));
        return $k2 * 256 + $k1;
}
function mb_chr($num){
        return mb_convert_encoding('&#'.intval($num).';', 'UTF-8', 'HTML-ENTITIES');
}
*/

PS: After I commented out just the function mb_ord(), I got a same error about mb_chr(), that's why I commented them both out.

Hope it helps.
Kind regards, Elko

This worked for me!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants