Possible PHP Resource Errors?

Asked by:
HubFans / n/a Points
Time:
2016-06-05 3:47 pm EST
Category:
General Information
Hits:
46
I'm running Postman to send post data to a php page to grab rows from a database and return in json format. The page works fine until I start requesting more than just a few rows of data at which point the response is blank. Thinking maybe something with the type of data in the table, I tried a different table; similar issue. Next thought was perhaps the php framework for queries, so I decided to use composer on the SSH to download Medoo when I ran into this error:
Fatal error: Out of memory (allocated 145752064) (tried to allocate 101 bytes) in phar:///home/user424/public_html/services/includes/composer.phar/src/Composer/Repository/ComposerRepository.php on line 547

Trying different php versions and looking at the php.ini, the memory limit is set to 512M; which I had bumped to 1024M and 2048M. What else to try or where else to look?

To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

ScottM
Staff
16,266 Points
2016-06-06 3:18 pm EST
Hello,

Sorry to hear you are getting php memory errors in your account. The php.ini should work after you changed it. You will want to be sure you have it set to be recursive. This can often be the issue.

Kindest Regards,
Scott M

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.