Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6670171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:14:13+00:00 2026-05-26T03:14:13+00:00

I have a little problem with my website. People use this page to create

  • 0

I have a little problem with my website.

People use this page to create a post on my site, you can attach photos to it.
All photos were working ecept that one. ( see below for the link )

When I try to upload it on the “post” page it says:

My girlfriend is the one that is trying to upload it , before uploading it she rotate the picture with windows 7 ( in preview mode ) so the image would be on the right side.

PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 3411201 bytes) in /home/(rest of path)/upload.php on line 65

line 65 on upload.php = $tmp=imagecreatetruecolor($newwidth,$newheight);

I’ve been looking for a way to “counter” that error for 2 days.

Can anybody help me please?

It only show that error with that image, I don’t know if the rotate is the problem…

Thank you very much

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T03:14:14+00:00Added an answer on May 26, 2026 at 3:14 am

    The problem is your script is running out of memory. Right now it seems that you have ~64mb allocated per PHP script. It is amazing that it is using more than that (unless you are uploading huge photos!), but what happens when you put the following at the top of your script?

    ini_set('memory_limit', '128M');
    

    This will raise the memory limit temporarily for that script. If you find that you need to allocate more memory for your script, then you’ll have to change the value in php.ini if you don’t want to use ini_set().

    Does it work or does it run out of memory ~128mb?


    NOTE:
    If this is a personal project, this solution is ok. If this is something bigger than that, I would take matino’s advice and limit your upload size.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a little problem because on my website I can't really set permissions
I've been stuck on a little unix command line problem. I have a website
I have this little problem, that I cannot figure out which arguments to pass
I'm working on this website, and have a little thorn in my side. When
I have developed a website, using Twitter API. Now a little but important problem
I have a nice little threading problem with a library I use to generate
I have a little layout problem: on a clients website, we show contact information
hi i have a little problem i uploaded a new version of my website.
I have got a little problem. I got a bxslider running on a website
Im currenty develoding a website using mvc 3 razor but have a little problem.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.