• 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

  • Kindle E-Readers require update before March 22nd
    In Featured, Hardware, Gadgets, and Products
  • Where we find the rare earth elements that our technology uses
    In Infographics
  • Microsoft issues voluntary recall for Surface Pro AC power cords
    In Hardware, Gadgets, and Products

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
  • SOLVED: “This modification is not allowed because the selection is locked.” SOLVED: "This modification is not allowed because the selection is locked."
  • Increase IIS Private Memory Limit to improve WSUS availability Increase IIS Private Memory Limit to improve WSUS availability
  • How to ‘Unblock’ multiple files at a time with PowerShell How to 'Unblock' multiple files at a time with PowerShell
  • What is the AllJoyn Router Service on Windows 10? What is the AllJoyn Router Service on Windows 10?
  • Troubleshooting time synchronization for domain-joined computers Troubleshooting time synchronization for domain-joined computers
  • 3d rendering circuit cloud for cloud computing technology What Is An Ellucian Migration And Is It Important?
  • Remote monitoring of text messages on a mobile device Remote monitoring of text messages on a mobile device
  • ​Great Tech Tips For Remote Workers ​Great Tech Tips For Remote Workers
  • Ideas That Will Free up MacBook Hard Drive Ideas That Will Free up MacBook Hard Drive
  • Advantages Of Video Conferencing For Small Businesses Advantages Of Video Conferencing For Small Businesses
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

  • What Is An Ellucian Migration And Is It Important?
  • Remote monitoring of text messages on a mobile device
  • ​Great Tech Tips For Remote Workers

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