• 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

  • When I think printers, I think HP. So why not let them manage them too?
    In Hardware, Gadgets, and Products
  • Jimmy John’s Lesson on Instant Communication and the Problem with Rumors
    In Media, Security and Privacy
  • Cohabitating with Computers
    In Media, Software, Tech Solutions

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
  • Access to the resource [servershare] has been disallowed Access to the resource [servershare] has been disallowed
  • Read the Event Logs on Windows Server Core Read the Event Logs on Windows Server Core
  • What is the AllJoyn Router Service on Windows 10? What is the AllJoyn Router Service on Windows 10?
  • 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."
  • How Virtual Reality Supports Mental Health Therapy How Virtual Reality Supports Mental Health Therapy
  • Key Strategies of Successful Coin Listing on Exchange Key Strategies of Successful Coin Listing on Exchange
  • Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting
  • Making Distributed Software Development Work: Strategies and Best Practices for Managing Remote Teams Making Distributed Software Development Work: Strategies and Best Practices for Managing Remote Teams
  • 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
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

  • How Virtual Reality Supports Mental Health Therapy
  • Key Strategies of Successful Coin Listing on Exchange
  • Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting

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 © 2025 · Magazine Pro Theme on Genesis Framework · WordPress · Log in