Yeah I have space. I have deleted some files cause I thought of that before but still the same.Do you have free space available? When you go over the storage limit it stops you being able to upload, but website still works as normal.
Just images less than 5MB or 4MB. Everything was okay before. Didn't touch anything thoHow are you uploading the files? What size, approximately, is the file(s) you are attempting to upload?
I'm using a php script to do itHow are you uploading the files? What size, approximately, is the file(s) you are attempting to upload?
It gives me no error related with my php script. I just get a 500 error status once the file is uploaded.What errors are you getting? Check your error log in DirectAdmin.
Undefined index: LS_AI_MIME_TYPE in /usr/local/lsws/share/autoindex/default.php
error_reporting(-1); // turn on all errors
Yeah, I already have it like this error_reporting(E_ALL) but after changing it, it says json_encode() is undefined... so wtf?? lolYou may have to turn on error reporting in your PHP script. Find the first <?php in the file, then put this right after
Code:error_reporting(-1); // turn on all errors
So it should be <?php, then that code is on the next line
It's already enabled. I disabled it and enabled again but nothing happensYou are in full control to set your PHP to whatever you'd like through DirectAdmin. Make sure the one you have selected has the JSON extension enabled.
I'm requesting an admin verifies JSON is enabled on the native version
even functions like imagecreatefromjpeg() are undefined :/You are in full control to set your PHP to whatever you'd like through DirectAdmin. Make sure the one you have selected has the JSON extension enabled.
I'm requesting an admin verifies JSON is enabled on the native version
PHP v7.2What version are you using? Can you try using the native PHP?
<?php var_dump(function_exists('json_encode')); ?>
have you tested it creating an associative array?Can you put this text in a file in your public_html and then go to it?
test.php:
Code:<?php var_dump(function_exists('json_encode')); ?>
It works for me, showing that json_encode() exists. I'm using native PHP. http://gjr.x10.mx/test.php
exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname