Search Results for 'memory'

Results from the Forum
usawebdev
tagDiv Member

I also had this same problem.

I was able to get this resolved by creating a php.ini file using Notepad and adding these lines, then upload to the root directory of your WordPress install:

max_input_vars = 5000;
max_execution_time = 300;
post_max_size = 65M;

I’m using GoDaddy Managed WordPress hosting and actually created both a php.ini file and a .user.ini file (make sure dot is in front of ‘user’) per GoDaddy recommendation with the same 3 lines above and uploaded both to the root. I then visited my site from my phone so that the server would update. I went back to my site and tried uploading and it worked.

Also see here about increasing memory limits to 64M in the wp-config file. You’ll need to do that too. There is a thread explaining how to do it but couldn’t find it immediately, just search this forum for it.

BTW – Adding the 3 lines of code to the htaccess file was also recommended on the same thread, but I searched elsewhere and it didn’t work for anyone which is why I ended up creating the new .ini files.

Hope that helps!

usawebdev
Participant
#0

Hi,

I purchased Newspaper theme and found a similar support thread. I followed the instructions to increase memory limits in wp-config file to 64M which I accomplished, however, I still receive the HTTP error. message when trying to upload images.

I found the htaccess in my hosting root, but could not locate the php.ini file anywhere. I am using GoDaddy WordPress hosting and am not sure I have access to the php.ini file.

Can you please provide the exact code to add to the htaccess file so I can just copy and paste it?

Please let me know as I’m at a standstill with working on the site.

Thanks,
Matt

AilyRoot
tagDiv Member

Hi Chris

we did setup

define( ‘WP_MEMORY_LIMIT’, ‘512M’ );
on wp-conig.php and we run website on our own dedicated server with 48G ram, still not helping

do you have example on “plugins which reload jquery”?

thanks

simchris
tagDiv Member

Ajax issue in latest versions of WordPress. We’ve seen this in different themes.

Make sure you increased the default memory allocated to WP in your config.php file. Seems to help. Make sure you’re not using any plugins which reload jquery when it’s already being loaded.

simchris
tagDiv Member

Try removing some stuff:
a) have only one related element item in sidebar
b) remove related posts from footer
c) turn off the “you might like …”
d) turn off the “related posts/ more from author”
e) use normal menu not mega-menu
f) try using normal blog roll home page temporarily
g) make sure you increased default memory for WordPress in your wp-config.php file

Good places to start to see what it might be.

Basically every “show me a list of blah …” is a dbase “query” … so cutting back on that to dial in what your server allows, is good practice.

Tommy
tagDiv Member

Hallo, please help!

I have been trying to solve since this early morning, but found no solution.

1. disabled all plugins one by one. The only active is your Td-speed booster because necessary
2. improved wp-config memory limit to 256M
3. checked server php error log for information but found only deprecated php notices and these:

[18-Nov-2015 15:38:47 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/XXXXXX/public_html/wp-includes/functions.php:3457) in /home/XXXXXX/public_html/wp-includes/feed-rss2.php on line 8

then

[18-Nov-2015 16:58:39 Europe/Berlin] PHP Fatal error: Call to undefined function get_header() in /home/pittelli/public_html/wp-content/themes/Newspaper/index.php on line 6

There are no significant errors that could help.

White pages are very irregular so you can navigate without problems for a while and then get white pages!

Please any idea?
Looking forward to hear as soon as possible

Andrei L.
tagDiv Member

Hi

The cache plugin generates static pages which are stored in the memory and when a user makes a request the pages are delivered from the cache. By this the php execution and the database requests are skipped. But a cache plugin don’t move the css/js resources in footer, you will have to do this manually using the Speed Booster plugin.
I’ve checked your site with PageSpeed Insights and noticed that you have lots of css/js files: http://screencast.com/t/DLwgvpYWDL Mount of this files are not from the theme, so to move them in footer please follow our page speed guide: https://forum.tagdiv.com/how-to-make-the-site-faster/

Hope this help.
Thanks!

Alin [tagDiv]
tagDiv Staff

Hi,

Please increase the php memoryhttps://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP
Regarding the pagespeed optimization please check this guide – https://forum.tagdiv.com/how-to-make-the-site-faster/

Thanks!

Alin [tagDiv]
tagDiv Staff

Hi,

Please check the server requirements for newspaper theme – https://forum.tagdiv.com/requirements-for-newspaper/ and increase the php memory(wp-config) and the other values from php.ini file – http://codex.wordpress.org/Editing_wp-config.%3Cb%3Ephp%3C/b%3E#Increasing_memory_allocated_to_PHP
Also you can the pagespeed optimization guide – https://forum.tagdiv.com/how-to-make-the-site-faster/

Thanks!

takingwings
Participant
#0

Am using Newspaper6 theme with one of its demo on my portal https://www.takingwings.in & am running it on shared hosting.

Current Status is:

max_execution_time :30
WP Memory Limit : 40Mb
max_input_vars: 1000
Using Plugins like: Wordfence, W3TC, Sharify, etc.

My daily traffic is 7-8k.

My website gets down again & again because
1. The Entry processes gets reached to max. limit(40).
2. When i asked the Hosting guys for help, they told me that ur SQL Queries are getting killed & u need to optimize the My SQL, PHP Scripts.

Please help me how to optimize the theme. or any other solution to the above problem.

Thanks in Advance

simchris
tagDiv Member

Okay. When I was using Cloudfront I had to set CORS rules on the bucket, if memory serves. It’s been over a year since I messed with that, sorry.

If your buckets are not via S3 .. not sure how that works.

In our case :: The solution is to get CORS working with Amazon S3, then to get Cloudfront to forward the appropriate headers.

Old article if the docs did not help from Amazon….
http://www.holovaty.com/writing/cors-ie-cloudfront/

SORRY … I have not used Amazon hosting, so not sure how that works vs S3+cloudfront.

  • This reply was modified 10 years by simchris.
simchris
tagDiv Member

There is also a CORS setting you can add with Amazon CDN if memory serves.
http://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html

Andrei L.
tagDiv Member

Hi

Try to increase the memory allocated to php in wp-config.php file, here it’s a guide regrading this
http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP
If you still get this behavior also test this by disabling all plugins and also empty all caches.

Let me know how it goes!

Thanks!

refly puasa
Participant
#0

please enlighten

I was having problems so I do the instructions that are here https://forum.tagdiv.com/cache-plugin-install-and-configure/

My website 4 hours later having problems can not be accessed and the following caption:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 9381827 bytes) in /home/k5670170/public_html/wp-includes/wp-db.php on line 1173

please help me using the latest version of newsmag

ns85gs
tagDiv Member

Thanks Catalin for your detailed answer. But it is very long way for create a menu item. I don’t want create a page and WP custom menu for each menu item. I must use Visual Composer for this. I don’t prefer using VC except homepage. Because VC eat my cpu and memory.

Can I create columns on mega menu with custom css?

  • This reply was modified 10 years by ns85gs.
simchris
tagDiv Member

Hey!
You need to add the memory limit change in your wp-config.php file, to raise it from the default 40MB which is done by WP.

I have info on that in my sticky optimization tutorial, in my section on changes to the wp-config.php file.

Or, see:
https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

define( 'WP_MEMORY_LIMIT', '96M' );

Daniel Finch
Participant
#0

Hi,

I’ve been in touch with my host and they said that my memory limit is 164M but when I look at the System Status it’s 40, see: http://take.ms/i7Ihz

What could be the problem?

Radu
tagDiv Staff

Hi Bryson,

Unfortunately it is very hard to debug this thing without replicating it.

We run the theme about one year ago on nginx + w3total cache and we did not encounter any problems. I’ve also used in that time the APC user cache.

Why can’t you switch to disk caching + wp super cache? Even when disk caching is used, the linux kernel will actually cache the files in memory if ram is available : https://www.thomas-krenn.com/en/wiki/Linux_Page_Cache_Basics

We tested the apc cache VS the normal disk cache and we did not found big improvements. We are currently using wp super cache and normal php disk caching on all of our installs.

Please send me the page (by using save as)…. the page source is encoded?

  • This reply was modified 10 years by Radu.
__NoX__
tagDiv Member

Hi,

Thx for your Help Andrei.

i set the max_input_vars into the php.ini up to 3000 but the System Status of the Theme still show “1000” any Idea why?

Server software Apache
PHP Version 5.5.9-1ubuntu4.14
post_max_size 500M
max_execution_time 300
max_input_vars 1000
SUHOSIN Installed False

WP Memory Limit 96 MB/request

itmoamun
tagDiv Member

Hello,

Now, I setting on file wp-config.php add

/** Memory Limit */
define( 'WP_MEMORY_LIMIT', '64M' );
define( 'WP_CACHE', true );

and on .htaccess add
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

<IfModule mod_php5.c>
php_value memory_limit 64M
</IfModule>

and add php.ini

max_execution_time = 90
max_input_time = 300
memory_limit = 64M
post_max_size = 32M
upload_max_filesize = 32M

see in phpinfo have all server requirements

View post on imgur.com

But can’t install this.

Andrei L.
tagDiv Member

Hi @SALZBURG12

The current version of Visual Composer available with the theme V 4.7.4 is tested and works fine. Please make sure you installed the plugin from the same path with the theme, clear all caches, deactivate all others plugins and test again. Also check the values from system status: http://screencast.com/t/yQGcbdjA03k the max_input_vars should be bigger than 2000 and max_execution_time at least at 300. Those values are set in php.ini file so try to access it but note that some hosts may restrict the access at this file, if you don’t have access to it contact your host provider and let him know about this situation. Also check the WP_MEMORY_LIMIT from wp-config.php file, here it’s a guide regrading this
http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

Let me know how it goes!
Thanks!

Andrei L.
tagDiv Member

Hi

The max_input_vars should be bigger than 2000 and max_execution_time at least at 300. Those values are set in php.ini file so try to access it but note that some hosts may restrict the access at this file, if you don’t have access to it contact your host provider and let him know about this situation. Also check the WP_MEMORY_LIMIT from wp-config.php file, here it’s a guide regrading this
http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

Let me know how it goes!
Thanks!

Alessio
tagDiv Member

Hi, thanks for your reply. I have the following values:

max_execution_time: 120
max_input_vars: 3000
WP Memory Limit: 40 MB/request

Everything’s OK? Thanks.

Bogdan B.
tagDiv Staff

Hello,
There are 2 files that need to be edited. One is wp-config.php and the other is php.ini.
In the wp-config.php you have to add this line to the bottom of the page: define( 'WP_MEMORY_LIMIT', '64M' );
In the php.ini:

The location of the php.ini may also differ from one server to the other, usually it’s located in the wordpress root, but on some servers it may be found in another location, you have to check the host documentation for more precise details.

1) max_input_vars – This sets how many input variables may be accepted (limit is applied to $_GET, $_POST and $_COOKIE superglobal separately). By default this parameter is set to 1000 and this may cause issues when saving the menu, we recommend that you increase it to 2000 or more.
2) max_execution_time – This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser. The theme demos download images from our servers and depending on the connection speed this process may require a longer time to execute. We recommend that you should increase it 60 or more.
3) post_max_size – Sets max size of post data allowed. This setting also affects file upload. To upload large files you have to increase this value and in some cases you also have to increase the upload_max_filesize value.

Depending on the host they can be set from php.ini or .htaccess:
If these parameters exist, you can edit their values if not you have to add them to the file.

max_input_vars = 5000
max_execution_time = 300
post_max_size = 50M

I hope this helps

BeingRitesh
tagDiv Member

Well, thanks for your reply. But I do have few questions. Where can I find tagdiv speed booster plugin?

For image optimization, I’m already using WP Smush it plugin, is that okay?

Site’s WP Memory Limit is already more than 512 MB

And for minification, I installed Better WordPRess Minify plugin and it kind of.. broke down my site. So uninstalled it.

Viewing 25 results - 2,726 through 2,750 (of 3,046 total)