Skip to content

L2Off + php error

Featured Replies

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 24064 bytes) in E:\wamp\www

 

i need to make 1 php file for see all char name

but he give me this error

check, were it sets the allocated memory. You use wamp on server machine ? Its easier to run a site on a linux host with FreeTDS.

8388608 bytes? how many characters are you trying to query? I think your script has some bad management of resources to consume 8mb of data just for character names, even in unicode 8mb is almost 168,000 character names.

So I would examine your script and make sure that resources such as the sql row data are deleted once you have done what you need with them, and also look at limiting the data that is returned to exactly what you need.

 

But anyway.

php.ini:

; Maximum amount of memory a script may consume (128MB)

; http://php.net/memory-limit

memory_limit = 8M

 

Set that to 128M or something and it shouldn't error anymore.

I'd like to know what purpose would having EVERY character name in the database displayed is O.o.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.