• Home
  • About 404TS
  • Contact

404 Tech Support

Where IT Help is Found

  • Articles
    • Code
    • Entertainment
    • Going Green
    • Hardware, Gadgets, and Products
    • Management
    • Network
    • News
    • Operating Systems
    • Security and Privacy
    • Software
    • System Administration
    • Talking Points
    • Tech Solutions
    • Web
    • Webmaster
  • Reviews
  • Media
    • Infographics
    • Videos
  • Tech Events
  • Tools
    • How do I find my IP address?
    • Browser and plugin tests
  • Get a Technical Consultation
You are here: Home / Articles / Tech Solutions / Not enough memory for PHP or just a stupid script?

Not enough memory for PHP or just a stupid script?

2011-11-15 by Jason

I recently came across an error with a theme on Drupal 7 that was complaining about insufficient memory in order for a setting change to be made. It gave the error:

There is not enough memory available to PHP to change this theme’s color scheme. You need at least 18.51 MB more. Check the PHP documentation for more information.

Ok, that’s fair enough. I can reconfigure the setting in the Apache configuration or with a php.ini file. It’s odd that nothing else has complained about not having enough memory and changing the color scheme doesn’t seem like it should be that intense. I tossed a phpinfo() page up on the server to see what the memory limit was and I found memory_limit to be set for -1, in other words, no limit.

The script that was running must have been doing a dumb check and was seeing whether the value for memory_limit was literally greater than a specified number, perhaps 19.51MB. Since it was -1, it was failing the test. I switched the number in the Apache configuration to 256MB (seen above) and the script was able to execute just fine. I could switch it back to -1 but if any future changes need to be made, I’ll have to switch it again unless a future update fixes the issue.

Filed Under: Tech Solutions, Webmaster

Trending

  • LastPass announces compromise
    In Security and Privacy
  • From CES 2012 to the Shopping List
    In Hardware, Gadgets, and Products
  • Dell responds to security concerning eDellroot certificate on laptops
    In Security and Privacy

Latest Media Posts

Find Out Where To Download SNES ROMs

Find Out Where To Download SNES ROMs

Multifunctional Video Conversion Tools – Wondershare Video Converter

Multifunctional Video Conversion Tools – Wondershare Video Converter

  • Popular
  • Latest
  • Today Week Month All
  • How to ‘Unblock’ multiple files at a time with PowerShell How to 'Unblock' multiple files at a time with PowerShell
  • Command line to take ownership and change permissions Command line to take ownership and change permissions
  • Increase IIS Private Memory Limit to improve WSUS availability Increase IIS Private Memory Limit to improve WSUS availability
  • SOLVED: “This modification is not allowed because the selection is locked.” SOLVED: "This modification is not allowed because the selection is locked."
  • Creating and editing views in phpMyAdmin Creating and editing views in phpMyAdmin
  • customer contactless payment for drink with mobile phon at cafe counter bar,seller coffee shop accept payment by mobile.new normal lifestyle concept The Latest Innovations In Payment Technology
  • How Digital Technology Brought the Rise of the CMO   How Digital Technology Brought the Rise of the CMO  
  • How to Purchase Cryptocurrencies? How to Purchase Cryptocurrencies?
  • Top 6 necessary aspects to consider when hiring Angular developers Top 6 necessary aspects to consider when hiring Angular developers
  • Full guide on drawbacks and benefits of Node.js for making the perfect choice for your business Full guide on drawbacks and benefits of Node.js for making the perfect choice for your business
Ajax spinner

Elevator Pitch

404 Tech Support documents solutions to IT problems, shares worthwhile software and websites, and reviews hardware, consumer electronics, and technology-related books.

Subscribe to 404TS articles by email.

Recent Posts

  • The Latest Innovations In Payment Technology
  • How Digital Technology Brought the Rise of the CMO  
  • How to Purchase Cryptocurrencies?

Search

FTC Disclaimer

404TechSupport is an Amazon.com affiliate; when you click on an Amazon link from 404TS, the site gets a cut of the proceeds from whatever you buy. This site also uses Skimlinks for smart monetization of other affiliate links.
Use of this site requires displaying and viewing ads as they are presented.

Copyright © 2023 · Magazine Pro Theme on Genesis Framework · WordPress · Log in