Search Results for 'memory'

Results from the Forum
heavenstorm
tagDiv Member

apparently it is not the theme’s fault. My hosting set the memory limit to 32mb and I asked them to changed it to 512mb and now the backend editor is showing just fine.

doucare1971
tagDiv Member

I am on Azure from Microsoft with Standard VM, which is dedicated by there definition. That is why that worked for me. The only thing I can’t figure out because they don’t have CPanel, and they got their own kind of dashboard is, I can’t change the Max_Input_Vars from 1000 to 5000. I changed on the php.ini, but it did not change. I am using Bitnami on a VM. So there is probably no way to change it.

As for memory limit though. I did not or have had any problems since I put it to 256 mb.

simchris
tagDiv Member

To clarify, two things at work with increasing memory limit on a hosting account

a) memory limit allocated to PHP on the server, set at server level such as php.ini — any hosting company that allows WordPress should allow up to 64MB for php — with a VPN or dedicated server you may need to make that setting yourself by changing the defaults to higher than (in some cases default as low as 16MB!)

b) WordPress limit — WP defaults to 40MB max, even if you change the default on server. So, the setting in wp-config.php will raise the default max RAM for WordPress. 40MB is too low to use Visual Composer and all the modern plugins. 64MB is better, 96MB advisable; higher depends on your hosting account/setup “allowance.” (e.g., if you have VPN or dedicated server, 256MB is advisable; very high traffic sites, perhaps more).

Not sure anybody “needed” to know that, but easy to get confused on these. 🙂

Lucian
tagDiv Staff

Hi doucare1971,

Yes, that is the right way but you should consider that this may not work if your host does not allow for increasing the PHP memory limit: https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

Thanks

doucare1971
tagDiv Member

Not sure if this is the same thing your trying to do. I added the code below to wp-config.php in WordPress directory and it shows ‘WP Memory Limit GREEN 256 MB/request’.

/** Memory Limit */
define(‘WP_MEMORY_LIMIT’, ‘256M’);

simchris
tagDiv Member

🙂
be sure to raise the default memory for WP in your wp-functions.php file if you had not already done so. Default is 40MB, and should be at least 96MB (I do 256MB).

GadgetViper
Participant
#0

Hi,

I’m poised to start the theme update from 4 to 6, I have already updated Visual Composer to the latest version. With regards to the social counter and Speed Booster, I assume I wait until the 6 theme is uploaded and the update script is run.

My concern is that when I update the Speed Booster plugin it will overwrite the edits I made, is this correct?

It was a while ago, and I have a terrible memory, so I’m unsure what I would need to do to retain my edits?

I’ve also got a child theme, after the update, I assume I paste my child theme edits into the new child theme files located in the /code folder and overwrite the old one on the server?

I have the following code in my current child theme:

—————-
if (!defined(‘TD_THEME_WP_BOOSTER’)) {
include TEMPLATEPATH . ‘/includes/td_wordpres_booster.php’;
}
—————-

Would this need to be added to the new child?

Kind Regards

Simon

contemacs
Participant
#0

Hi
sorry for my english and i’m a revent user of wordpress
I have this website http://www.comievents.com and i’ve installed the theme in demo version with content, and plugin, nad etc.
but when i visit like a user all the news are not found 404, the same in the preview on the admin panel.
Only home work.

Thanks
Massimiliano

Theme config
Theme name i Newsmag
Theme version i 2.0
Theme database version i 2.0
Speed Booster v4.1 – Disabled – incompatible plugin detected: duplicate-post/duplicate-post.php
php.ini configuration
Server software i Apache/2.4.7 (Ubuntu)
PHP Version i 5.5.9-1ubuntu4.11
post_max_size i 32M – You cannot upload images, themes and plugins that have a size bigger than this value.
max_execution_time 30 – the execution time should be bigger than 60 if you plan to use the demos
max_input_vars 1000 – the max_input_vars should be bigger than 2000, otherwise it can cause incomplete saves in the menu panel in WordPress
SUHOSIN Installed False
WordPress and plugins
WP Home URL i http://www.comievents.com
WP Site URL i http://www.comievents.com
WP version i 4.2.2
WP multisite enabled i No
WP Language i it_IT
WP Memory Limit 96 MB/request
WP_DEBUG False
Caching plugin No caching plugin detected

dano1066
tagDiv Member

Adding the following will make a blank bar display on the page, but its a new instance of the object. Im assuming an existing object is already present in memory just not displaying.

require (‘wp-includes/class-wp-admin-bar.php’);
$adminbar = new WP_Admin_Bar;
$adminbar->initialize();
$adminbar->render();

Lucian
tagDiv Staff

Hi,

This shouldn’t happen anymore, all memory issues with VC plugin were attended in both theme’s and VC plugin updates.
Not sure if older version work, the theme hasn’t been tested with older versions of the Visual Composer plugin so there could not work fine. You can make a request for it via email and we will send it to you.
Please also note that we will release a new theme update this week with the latest version of the Visual Composer plugin included so you can try ti and see if this still happens.
Address your email to contact@tagdiv.com

Thanks

fabinhoalmeida
tagDiv Member

Yes friend. The set memory is appropriate and I’ve done tests removing all plugins, yet the Visual Composer (latest version) consumes all resources. As I said, even though in maintenance mode or with the default theme WP still Visual Composer makes any page with internal server error 500. Only with the Shim plugin this overload disappears and everything returns to normal.

With his explanations, I would like to test an earlier version 4.4 of Visual Composer so. After all, the Shim plugin shook the tabs, but it was just that.

Among the older versions of Visual Composer which the lighter, safer and better will work with the Newspaper 6.3? Where can I download it?

Thank you for trying to help me.

Alin [tagDiv]
tagDiv Staff

Hi,

The tagDiv Visual Composer Shim is an experimental plugin in beta version and it was created like an alternative solution regarding the Visual Composer consuming resources(especially for tagdiv blocks). All this issues with Visual Composer plugin started since plugin’s version 4.4, which was a major update of the plugin and since then the plugin doubled in size and started using more resources.
We did not get any reports regarding this issue from latest version of the plugin, so please make sure that you have increased the php memory limit and try to use only necessarily plugins.

Thanks!

bbross
tagDiv Member

Mmmm sorry, I have tried all the things, but it still doesn’t work. Another idea?

php.ini configuration
Server software i Apache/2.2.27 (Unix) mod_ssl/2.2.27 OpenSSL/1.0.1e-fips DAV/2 mod_bwlimited/1.4
PHP Version i 5.4.30
post_max_size i 64M – You cannot upload images, themes and plugins that have a size bigger than this value.
max_execution_time 180
max_input_vars 5000
SUHOSIN Installed False
WordPress and plugins
WP version i 4.2.2
WP multisite enabled i No
WP Language i en_US
WP Memory Limit 256 MB/request
WP_DEBUG False

Lucian
tagDiv Staff

Hi,

Not sure what you mean, if you want features present in the latest theme version why don’t you update the theme.

You can read more about the .screen-reader-text class here: http://blog.rrwd.nl/2015/04/04/the-screen-reader-text-class-why-and-how/

Regarding your improvements they can also be done in the latest theme version, on top of that the Visual Composer memory issue was fixed in the VC plugin version included in the latest theme version so you can backup your current theme install, WordPress and database update the theme then implement the changes if needed.

Thanks for the message!

gfran5
tagDiv Member

Hi,

I’m using NewsMag 1.7 but noticed a few things in version 2 that seem interesting.

1. Added .screen-reader-text class for better usability – I found the CSS for this in styles, but what exactly are you using this for, is it on post page? Would like to know what this adds and how to add it.

2. We audited the theme and and we made major improvements in speed and memory usage, especially in use cases that have big taxonomies, like a lot of categories or tags. – Is this something i would be able to fix on NewsMag 1.7, please let me know how to implement improvements?

3. The panel now uses the modern WordPress media upload – Is this easily updated with one file and which file is it?

Thanks!

simchris
tagDiv Member

This usually happens if
a) you don’t have enough memory allocated to WP
b) you’re trying to use a file format not supported by WP media manager
c) trying to use local image thumbnail generation at same time as external tool like Jetpack photon
d) trying to use site through a rewrite service like Cloudflare, etc.
e) bad file naming — like more than one dot, spaces, high ascii characters, missing file extension, etc.

rohansanghera
tagDiv Member

Also, a different question: I had some memory of there being a post submission feature which is included with the newspaper theme. Does anybody know where I can find this feature (which allows users to submit their own posts), and enable it on my website?

nicobilou
Participant
#0

Hi,

I’d like to create specific sidebar for each category. I go to template panel -> category.
I can create a sidebar and save it using “CUSTOM SIDEBAR + POSITION”. But when I try to associate it using “Per category settings” and clic “SAVE SETTING”, the page stay drak and don’t show me the sign “saved”, even after 10mn…

Can you help me ?

Here is my Theme config

Theme name
Newspaper
Theme version
6.2
Theme database version
6.2
php.ini configuration
Server software
Apache
PHP Version
5.4.38
post_max_size
64M – You cannot upload images, themes and plugins that have a size bigger than this value.
max_execution_time
300
max_input_vars
16000
SUHOSIN Installed
False
WordPress and plugins
WP Home URL
http://madeinmarseille.net
WP Site URL
http://madeinmarseille.net
WP version
4.2.2
WP multisite enabled
No
WP Language
fr_FR
WP Memory Limit
96 MB/request
WP_DEBUG
False
Caching plugin
WP super cache

simchris
tagDiv Member

This is often a memory issue; try increasing the amount of RAM allocated to WordPress both from server side with php.ini or panel setting *AND* mandatory also increase in wp-config.php to at least 96MB otherwise WP defaults to 40MB which is not enough for VC.

bahola
tagDiv Member

I just saw this warning on the tags & The category page dashboard page:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /opt/lampp/htdocs/ilh/wp-content/plugins/wp-memory-db-indicator/wp-memory-db-indicator.php on line 169
db 1B ~ Mem 57.2 of 512M

simchris
tagDiv Member

Have you optimized your site/server for best page speed?

See the sticky post on optimization, increasing base memory, and the tutorial in theme docs on speeding up site.

Jinxx0r
tagDiv Member

I have changed memory as such:

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

no change.

It is a clean install, am using main theme not a child theme. I have turned of all plugins besides VC. As for the logo problem, I have uploaded it to the media library with WordPress admin panel so it changes the path successfully on the Theme Panel and saves just fine but then when I view the site, no changes have taken place even after I clear my cache in browser. I can change it only if I upload it directly in cPanel or FTP it in but I shouldn’t have to do that lol. And nothing else I do in Theme Panel reflects any changes either, I can modify top bar, header, ad codes and pretty much everything else and even tells me it has saved successfully but then when viewing the site… no change.

simchris
tagDiv Member

Did you increase memory in your wp-config.php file?

Did you do clean install vs just move it ?

Use main theme, not child theme.

Turn off all plugins except VC.

Make sure you changed the domain name in anything which used that, like internal links to images, etc.

simchris
tagDiv Member

Did you update your base memory allocation for WP in wp-functions.php — ? this can help quite a bit. Add config line to make it 96MB or more to increase from WP’s default 40MB.

See my sticky post on optimization if you don’t know how to do that or read the WP official docs/codex on editing wp-config.php file.

Might not be issue; but great place to start!

Bryson T
tagDiv Member

Additional attempts to resolve the issue:

1. Noticed the dev site was running php 5.3.29 stable while the main site was running php 5.5.21, so I switched the main site down to 5.3.29, but no change.

2. I upped the max input vars and memory limits to minimums specified by the system status tab of the theme. No changes detected.

3. I disabled all non-theme plugins and that didn’t make a difference.

Viewing 25 results - 2,826 through 2,850 (of 3,046 total)