Wierd php memory allocation issue.
I have my php max mem set to 128M globally. However APIs like PDFCrowd are saying there's a 2MB limit. I have verified everything else is showing 128M and I have no idea why these APIs are limited to 2MB. I even put a php.ini in the api folder to assign a high memory limit and high timeout.
This started after a cpanel update to v86.0.18. No other changes have occurred. It just stopped working and our payroll dept cannot get invoice PDFS now.
The error is thrown in one of their CURL objects for PDFCrowd:
function setTimeout($timeout) {
if (is_int($timeout) && $timeout > 0) {
$this->curlopt_timeout = $timeout;
}
}
-
Make sure there is php.ini, user.ini file in the top directory or public_html. You can also check if there is a memory_limit script in .htaccess. 0 -
As the screenshot in the OP shows, the memory limit is 128M in that folder. 0 -
In this case, we can say that the problem is not related to the server and that your software applies this limit within itself. 0 -
In this case, we can say that the problem is not related to the server and that your software applies this limit within itself.
Thanks, tried to tell them that. But they also said to check my php.info, the equivalent of asking "Did you plug it in?" lol Guess I will have to find another service to put the money towards.0 -
A rollback from PHP 7.2 to PHP 7.1 fixed the issue. Odd since I ran 7.2 for the last few months and never an issue. 0 -
Interesting, thanks for including you findings @Jeff P. 0
Please sign in to leave a comment.
Comments
7 comments