How to extend Allowed memory size in PHPExcel Library? - phpexcel

I want to extend the allowed memory size. Currently my excel downloads are not downloading it throws following error:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried
to allocate 32 bytes) in application/libraries/Excel/PHPExcel/Cell.php
on line 839

Increase memory limit in your php:
ini_set('memory_limit', '1024M');
After this the memory limit will be 1 GB.

Related

How to increase memory limit in Rstudio?

If I type
memory.limit()
in the console of Rstudio, I get "1e+13". Then, if I try to increase this memory limit by doing
memory.limit(1e+20)
or
memory.limit(size=1e+20)
I get an error: "Warning message: In memory.limit(size = 1e+20) : cannot decrease memory limit: ignored". Which makes no sense. How can I increase this memory limit? (I am running on Windows 10 with 24GB of RAM).

"Error: cannot allocate vector of size x kb" when loading R workspace

I am encountering an issue when attempting to load a 1.8GB workspace into RStudio. I receive a string of messages such as:
Error: cannot allocate vector of size 8 Kb
Error: cannot allocate vector of size 64 Kb
Error: cannot allocate vector of size 16 Kb
Error: cannot allocate vector of size 256 Kb
Error: cannot allocate vector of size 32 Kb
etc.
The objects appear in my Global Environment but attempting to call them yields further errors such as those above.
In addition, my PC should have ample (>10GB) RAM for this workspace, but in Task Manager RAM usage is shown as ~80%.
I have tried:
Restarting everything
gc()
Using 64 bit version
I couldn't find any other solutions.
Many thanks

How do I save a WordPress website into different server?

I have been having trouble saving a WordPress website into a different server and keep getting an error when opening it in my browser.
Fatal error:
Allowed memory size of 67108864 bytes exhausted (tried to allocate
32245 bytes) in
/home/clemente1234/public_html/clementeghuerta.com/green-banker-2/wp-includes/functions.php
on line 347
Does anyone know what I am doing wrong?
The error you are seeing can typically be resolved by adjusting how much memory is being allocated to WordPress. In your wp-config.php file, try modifying/adding this line to an appropriate amount of memory. The current limit seems to be at about 67M, so maybe something like:
define( 'WP_MEMORY_LIMIT', '128M' );
It seems you only have 64M.
If you have access to your php.ini, increase the max memory size..
ini_set('memory_limit', '128M');
Or even in your .htaccess
php_value memory_limit 128M

Wordpress wpadmin : Fatal error: Allowed memory size of 536870912 bytes exhausted

I am using woocommerce on my wordpress site. I wanted to filter out specific products by category. When I clicked the filter button, this error occurs:
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes) in /..../wp-includes/wp-db.php on line 1841
I checked and executed this : http://www.wpbeginner.com/wp-tutorials/fix-wordpress-memory-exhausted-error-increase-php-memory/
by adding define( 'WP_MEMORY_LIMIT', '256M' ); on wp-config, but still error occurs
Also, I don't have iThemes Security installed on my PC as seen on this link(though I installed before, I just only uninstalled)
WordPress Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 77 bytes) in wp-includes/wp-db.php on line 1832
FYI, I only have more than 10k of total products on my database.
Does anybody know?
To debug, you need to check how much memory php.ini allows the php to use.
create a phpinfo.php file under your website, put phpinfo() in:
<?php phpinfo(); ?>
Visit corresponding page and check PHP memory_limit number. If its too small, you can increase it by editing the php.ini. The path informaion of php.ini is also displayed on http://your.domain/phpinfo.php URL.
Then, find memory_limit = line:
memory_limit = 1024M ; /* Change the 1024M to your needs */
In addition, you may want to try to display less product in a single page. This may save some memory for you.

Fatal error, Allowed memory size exhausted

I have been getting a fatal error message, Allowed memory size of 67108864 bytes exhausted, I have upgraded memory to no avail.
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes)
in /home/content/85/7866685/html/wp-includes/wp-db.php on line 1383
This is a very typical WordPress issue; you should search first for existing answers before asking the question, such as " Allowed memory size of "
Using FTP you can try increasing the memory for PHP and Wordpress in several different ways:
1) You can edit the memory_limit line in your php.ini (if you have access to that file) to increase memory to 64M:
memory_limit = 64M;
2) If you can't get to the php.ini file, add this line at the top of your .htaccess file:
php_value memory_limit 64M
If that doesn't work or throws a "500 Internal Server Error", delete the line from .htaccess.
3) Try adding the 'define" line below in your wp-config.php file a few lines of white space below the opening <?php
define('WP_MEMORY_LIMIT', '64M');
If none of those work, your host probably doesn't allow memory allocation overrides. You're stuck with what they give.

Resources