php


Laravel memory size issue


Im getting this error message:
Allowed memory size of 268435456 bytes exhausted (tried to allocate 4194312 bytes) in /...../vendor/illuminate/database/Connection.php:347
This is the function from where line 347 is found:
public function select($query, $bindings = [], $useReadPdo = true)
{
return $this->run($query, $bindings, function ($me, $query, $bindings) use ($useReadPdo) {
if ($me->pretending()) {
return [];
}
// For select statements, we'll simply execute the query and return an array
// of the database result set. Each element in the array will be a single
// row from the database table, and will either be an array or objects.
$statement = $this->getPdoForSelect($useReadPdo)->prepare($query);
$statement->execute($me->prepareBindings($bindings));
$fetchMode = $me->getFetchMode();
$fetchArgument = $me->getFetchArgument();
$fetchConstructorArgument = $me->getFetchConstructorArgument();
if ($fetchMode === PDO::FETCH_CLASS && ! isset($fetchArgument)) {
$fetchArgument = 'StdClass';
$fetchConstructorArgument = null;
}
return isset($fetchArgument)
? $statement->fetchAll($fetchMode, $fetchArgument, $fetchConstructorArgument)
: $statement->fetchAll($fetchMode);
});
}
This happens randomly so it is hard to debug. Is there a fix for this ? What should I try ? Thx

Related Links

laravel 5 fill form select with data
Laravel: Uniquely identify buttons in foreach loop's table
Calculate nearest possible dimension value PHP (keeping ratio)
posting value in hidden form in codeigniter
Wordpress: How to exclude users with default avatar from displaying [closed]
Updating database with multiple checkbox values received from the loop?
laravel forcing users to add additional user info
facebook og:title, og:description, og:image etc not working
Install new theme for Magento. Fatal error: Class 'ThemeAdminPanel_ExtraConfig_Helper_Data' not found in …/app/Mage.php on line 546
PHP PDO - Show a particular row and column
substr() is not working as expected
codeiginiter always shows 404 error ubuntu 14.04
Compare two arrays with unordered items in php
How to parse an XML node with a colon tag using PHP
Move Wordpress sidebar from top to left
Yii2 give array fields names and save to database

Categories

HOME
elasticsearch
orientdb
android-studio
clearcase
seedstack
stacktrace.js
loopbackjs
nsis
qooxdoo
iptables
flurry
supercollider
onvif
angular2-template
specifications
selection
scrape
fireloop
watch-os-3
tiff
documentum
jodatime
trace32
synthesis
android-contacts
pickle
gmp
activeadmin
neo4j.rb
kamailio
function-points
multi-dimensional-scaling
list-comprehension
echosign
tortoisehg
bobo-browse.net
laravel-4.2
sales
d3.js-v4
argv
rust-cargo
sca
android-collapsingtoolbar
mongoengine
cloudera-manager
custom-keyboard
char-pointer
orchardcms-1.8
nsuserdefaults
jslint
xvfb
fastlane
grails-spring-security
virtual-memory
sendinput
liteide
karabiner
1010
emacs25
front-camera
cefpython
between
dojo-build
fiber
static-methods
adjacency-list
gridbaglayout
ioexception
nette
hmisc
domino-designer-eclipse
cache-manifest
ocmockito
scala-swing
innerhtml
python-curses
python-c-extension
subview
kognitio-wx2
jolie
producer
igor
oracle-adf-mobile
libgcc
lumia-imaging-sdk
sql-function
strcmp
illuminate-container
rautomation
iirf
ldif
eager-loading
ui-design
chefspec
contextswitchdeadlock
gitx
instance-variables
prototypal-inheritance
mkannotation
infopath-2007
litespeed
vows
representation
solandra
resharper-5.1
sscli
mysqli-multi-query
powergui
xap
ning
iphone-sdk-3.1.3
chronic

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile