My site crash after activate the theme and Visual Composer

Posted in: Newspaper
Post count: 4

My site crash after activate the theme and Visual Composer. 503 error show up. I encountered the same issue as I installed a similar theme with VC previously but was fixed by its author as following:

“How many posts, categories, tags do you have? One of the features Goliath has is filtering post block content by tags. In some cases where shops have many thousands of tags, these all get read into memory until it runs out. You can try to disable this by doing the following:

edit theme/vc_content_blocks.php and replace this:

$post_tax_tags = get_terms(‘post_tag’);
$post_tags = array(” => ”); //blank entry
foreach($post_tax_tags as $pt)
{
$post_tags[$pt->slug] = $pt->slug;
}
with this

$post_tags = array(” => ”); //blank entry
/* $post_tax_tags = get_terms(‘post_tag’);
foreach($post_tax_tags as $pt)
{
$post_tags[$pt->slug] = $pt->slug;
} */

You have 10k+ tags, so I’m 100% that it can fix the memory and speed issues you’re having.

I wonder if you can apply it to your theme?

Alex

  • This topic was modified 10 years by alexmark.
Post count: 4

I’m running a large website with alot of posts, tags. My memory limits is 768mb. I have a very good dedicated server.

Post count: 4

Correction: My site crash after just activated the theme, haven’t activated VC. Is there any loop that will be running until memory dry up? I have a large amount of existing content and tags…

Post count: 22421

Hello,
We are not aware of any such issues either with large amounts of data or small amounts. Please check if you have the correct requirements for newspaper set:
https://forum.tagdiv.com/requirements-for-newspaper/ and please follow this guide to increase the system status parameters: https://forum.tagdiv.com/system-status-parameters-guide/
Thank you!

Post count: 4

I uploaded a php.ini file:

max_input_vars = 5000
max_execution_time = 300
post_max_size = 50M
memory_limit = 256M

My php and SQLdatabase is

MYSQL Version 5.1.73

PHP Version 5.3.3

I have super cache plugin in place.

The second I activated the theme, my site become inaccessible. CPU shoot up to roof!

Post count: 22421

Hi,
Please disable any plugins you might have. Simply leave visual composer active and clear your cache. Then activate the theme. If the problem is still there without other plugins, then please make a copy of the error log and send us an email at contact@tagdiv.com and provide wp-admin and ftp access (as well as the error log) and as many details as you can about the issue. Please also include a link to this topic so we can identify you quicker.
Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.