close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Fatal Memory Error

Thread began 5/04/2020 1:42 pm by LWat85283715 | Last modified 5/04/2020 4:43 pm by Ray Borduin | 481 views | 5 replies |

LWat85283715

Fatal Memory Error

I am trying to load a page and I keep getting this error:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 12288 bytes) in /var/www/html/webassist/mysqli/rsobj.php on line 188

The page is a table that shows the data from a query. There is not uploads on the page. Just the data. Any help would be appreciated. Thanks

Sign in to reply to this post

Ray BorduinWebAssist

How many results are you trying to show from the table?

Sign in to reply to this post
Did this help? Tips are appreciated...

LWat85283715

3330 records

Sign in to reply to this post

Ray BorduinWebAssist

It is probably just running out of memory trying to retrieve that many records.

You can either limit the number of records displayed on the page and add pagination, or increase the memory limit, or refine the query if it includes columns you aren't using to reduce the memory load.

Sign in to reply to this post
Did this help? Tips are appreciated...

LWat85283715

I am using the Data tables script which has pagination and I optimized the query to only pull the fields that I needed.

Sign in to reply to this post

Ray BorduinWebAssist

In that case your best bet is to increase your memory limit.

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

The problem with javascript data tables is that they load the entire data set into the DOM to allow things like pagination and sorting without hitting the server. That is ok for smaller data sets, but html and javascript isn't as efficient as a database for handling larger data sets.

Even once you get this working, you will probably see a delay when loading the page and working with the data table.

Sign in to reply to this post
Did this help? Tips are appreciated...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...