Apparently CSC is defining PHP variables in 4.3.6. I encountered this error trying to import. Does anyone happen to know where it is being defined? I've already looked in the config files.
I was under the impression that this was a upload_max_filesize issue but it was in fact a post_max_size issue according to the error in page source. I'm not sure why I never encountered the issue previously.?
(function(_, $) { $.extend(_, { post_max_size_bytes: '8388608', files_upload_max_size_bytes: '67108864',post_max_size_mbytes: ‘8M’,
files_upload_max_size_mbytes: ‘64M’,
allowed_file_path: ‘http://mydomain.com/var/files/1/’
});_.tr({
file_is_too_large: ‘File is too large. Max uploading size is [size].’
});
And now apparently 256M memory is not enough for 4.3.6.
[09-Mar-2016 06:02:22 America/Chicago] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 81 bytes) in /home/user/public_html/path/app/controllers/backend/exim.php on line 1814
from Bootstrap.php it’s taking [size]
/**
* Retrieves parameter from php options
*
* @param string $param parameter to get value for
* @param boolean|int $get_value if true, get value, otherwise return true if parameter enabled, false if disabled
*
* @return mixed parameter value
*/
public static function getIniParam($param, $get_value = false)
{
static $mapping = array(
‘upload_max_filesize’ => ‘hhvm.server.upload.upload_max_file_size’,
‘post_max_size’ => ‘hhvm.server.max_post_size’,
);
$value = ini_get($param);
// false checks are required to prevent skipping zero values
// is_null required to workaround the HHVM bug: https://github.com/facebook/hhvm/issues/4993
if (($value === false || is_null($value)) && isset($mapping[$param])) {
$value = ini_get($mapping[$param]);
}
if ($get_value == false) {
$value = (intval($value) || !strcasecmp($value, 'on')) ? true : false;
} elseif ($get_value === self::INI_PARAM_TYPE_INT) {
$value = (int) $value;
} elseif ($get_value === self::INI_PARAM_TYPE_BYTE) {
if (!$value) {
$value = 0;
} else {
$suffix = strtolower($value[strlen($value) - 1]);
$value = (int) $value;
switch ($suffix) {
case 'g':
$value *= 1024;
case 'm':
$value *= 1024;
case 'k':
$value *= 1024;
}
}
}
return $value;
}
In HHVM (HipHop Virtual Machine), which is an alternative runtime for PHP, the hhvm.server.upload.upload_max_file_size
configuration parameter corresponds to the maximum allowed size for file uploads. This is similar to the upload_max_filesize
directive in the regular PHP configuration.
so change it from php.ini
; Whether PHP will read the POST data.
; This option is enabled by default.
; Most likely, you won’t want to disable this option globally. It causes $_POST
; and $_FILES to always be empty; the only way you will be able to read the
; POST data will be through the php://input stream wrapper. This can be useful
; to proxy requests or to process the POST data in a memory efficient fashion.
; PHP: Manual Quick Reference
;enable_post_data_reading = Off
; Maximum size of POST data that PHP will accept.
; Its value may be 0 to disable the limit. It is ignored if POST data reading
; is disabled through enable_post_data_reading.
; PHP: Description of core php.ini directives - Manual
post_max_size = 9M