Make WordPress Core

Opened 18 years ago

Closed 18 years ago

#2607 closed defect (bug) (invalid)

Writing a post - uploading a file : Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2272 bytes)

Reported by: jerry_arns's profile jerry_arns Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.0.2
Component: Administration Keywords: bg|reporter-feedback
Focuses: Cc:

Description

Goto "Write new post" page
Goto the upload tab
enter a jpeg filename
enter a title with a single quote, for exemple foo'bar
enter a description, for exemple foobar
Click upload button.

The following error message appears in the upload frame:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2272 bytes) in /var/www/html/wordpress/wp-admin/admin-functions.php on line 724

The image is correctly uploaded, thumbnail is created.

There are NO errors if the title does not contain a single quote.

Config:
Linux RedHat 3.6 IA64
MySQL 3.23.58
Apache2
php 4.3.2

Change History (2)

#1 @westi
18 years ago

  • Keywords bg|reporter-feedback added
  • Summary changed from Writing a post - uploading a file : Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2272 bytes) in /var/www/html/wordpress/wp-admin/admin-functions.php on line 724 to Writing a post - uploading a file : Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2272 bytes)

Looking at the code in admin-functions.php this looks like the file was too big for imagecreatefromjpeg to load into memory and therefore exhasted the amount of memory php was allowed (~8M).

I don't see this as anything to do with the ' in the title.

Tested on trunk with a ' in the title and worked fine.

How big a file where you trying to upload?

#2 @foolswisdom
18 years ago

  • Resolution set to invalid
  • Status changed from new to closed

No response to questions asked by westi in 5 months. jerry_arns if you still think this is a bug please re-opening and answer the question by westi.

Note: See TracTickets for help on using tickets.