Codiad / Codiad

Web Based, Cloud IDE
http://codiad.com
MIT License
2.85k stars 696 forks source link

Hi, I tried running CODIAD on an AWS AMI LINUX 2 EC2 INSTANCE and I got this error... #1086

Open inglesuniversal opened 6 years ago

inglesuniversal commented 6 years ago

This is the error I got once, I created my LOGIN credentials.

PHP version: 7.2

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

https://mydomain.pro/codiad/components/filemanager/controller.php?action=index&path=project_pro

NOTA: I have successfully installed this project on other AWS EC2 servers and AWS LIGHTSAIL and there were NO errors reported.

Any IDEA on how to fixed it?

jaysoni-india commented 5 years ago

use below php function in /config.php to enable php error

ini_set('display_errors', 1);

then visit [(https://mydomain.pro/codiad/components/filemanager/controller.php?action=index&path=project_pro)] again

if you get following error on visiting that link

Fatal error: Cannot redeclare mb_ord() in /your/public/codiad/lib/diff_match_patch.php on line 2079

then comment mb_ord() and mb_chr($num) in /lib/diff_match_patch.php on line 2074-2079 like this ` // 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');

// } `

inglesuniversal commented 5 years ago

Thanks so much for your feedback.