MyThemeShopTeam / WP-Tab-Widget

WP Tab Widget is the AJAXified plugin which loads content by demand, and thus it makes the plugin incredibly lightweight.
7 stars 11 forks source link

Plugin could not be activated because it triggered a fatal error #5

Open onthewight opened 9 years ago

onthewight commented 9 years ago

Your Plugin looks great. It seems to do exactly what I needed.

Excited, I installed it, then Activated it.

The following message came back:-

"Plugin could not be activated because it triggered a fatal error

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes) in /nas/wp/www/staging/onthwight/wp-includes/post.php on line 2096"

(Screengrab) http://imagizer.imageshack.com/img661/3796/I17Vzk.png

I'm running WP 4.2.4 at WPEngine. Any ideas?

Simon

MyThemeShop commented 9 years ago

Hi Simon, It looks like there a memory limit on your server, could you please ask hosting support to increase the memory_limit? Thanks.

onthewight commented 9 years ago

Many thanks for the response - I appreciate it, especially as this plugin is something you're giving to the Wordpress community for free.

Agreed that at face value it looks like simply increasing memory limit would fix it, but all other plugins on the install functions with out this and I added a new one (to display comments) yesterday without an issues - Decent Comments [https://wordpress.org/plugins/decent-comments/screenshots/](I had to, as I couldn't get yours working, but I'd still prefer yours, for the AJAX & more function).

Looking at the amount of RAM that is declared (256MB), and the tiny about extra it's asking for, (72 bytes), do you really think that it's that's the underlying problem?

Simon

MyThemeShop commented 9 years ago

Hello,

Then I’m assuming that you have over 100k articles on your website and the possible solution for such a situation would be to Comment out/delete this line in wp-tab-widget.php:

register_activation_hook( __FILE__, 'wpt_plugin_activation' );

If that doesn’t help, can you please register for free here: https://mythemeshop.com/go/signup/free/

and open a new thread in our support forums and we will definitely try to resolve the issue. I appreciate your patience in this. Thank you.

P.S. The only issue this causes is that the Popular tab will be empty, until the posts get views. The activation hook function sets view count to 0 for all posts to make them show up.

onthewight commented 9 years ago

Thanks again for the diligence of your reply.

We've got ~24,000 articles and ~120,000 comments.

Will take a look at commenting the line you suggest.

Thanks again.