since am not getting this error, can I know when is this started to happen? eg. after upgrade or using custom codes
Angelo – It seemed to start around the time of the 3.9.1 WP update, although I can’t be sure that’s what caused it. We did have some custom files in place (in a child theme folder) that customized the event submission form. Everything seemed to work fine for the longest time (over a year). Then this started suddenly. Removing those custom files did not resolve the issue.
Is this using Multisite, buddypress or normal wordpress installation? it seems to be a database issue, can you try to turn on wp_debug or check your php logs to see if there’s any error?
Angelo – This is normal wordpress installation. I agree that it does seem to be some sort of DB issue. Just not sure why it started all of the sudden. I will work on getting wp_debug and php log info for you. Is there an address I could email them to?
Thank you.
Also – I believe anonymous users are now having issues submitting regular (non-recurring) events also.
Angelo,
The error logs contained 84 mentions of “events-manager”. There were only two variations of errors though…
[Tue Jun 10 03:09:38 2014] [warn] [client xxx.xxx.xxx.xxx] mod_fcgid: stderr: PHP Fatal error: Call to undefined function add_action() in /var/www/vhosts/xxx.com/xxxxx/wp-content/plugins/events-manager/em-actions.php on line 635
and
[Tue Jun 10 05:06:14 2014] [warn] [client xx.xxx.xxx.xx] mod_fcgid: stderr: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 880641 bytes) in /var/www/vhosts/xxx.com/xxxxxxx/wp-content/plugins/events-manager/templates/templates/rss.php on line 37
Please let me know what you make of this. Thanks
There is no mention of events-manager in the debug.
Thanks.
Have you tried to temporarily:
– deactivating all other plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).
– switching to the default theme to rule out any theme-specific problems
Angelo,
I have not tried that yet. The theme has not been updated so that shouldn’t be it. I hesitate to deactivate the plugins because a couple of them have lost settings in the past when deactivated. So I just want to make sure that those errors indicate a plugin conflict before risking it.
Should we look at em-actions.php line 635 to see what the error could be?
Thanks.
The second error message indicates a memory problem on your server. It could be your site is running out of memory, causing everything to fail halfway through submissions.
Try adding something like this to your wp-config file:
define('WP_MEMORY_LIMIT', '156M');
Hey caimin_nwl. We thought the same thing. After reviewing the error logs with GoDaddy, they set our php.ini file to “memory_limit = 256M” and then verified that it took in the phpinfo.php file, which it did. That still did not resolve the issue. Thanks though!
You may still need a WP_MEMORY_LIMIT line in wp-config to make sure WordPress is accessing the new memory limit.
I added that to the wp-config file. The issue still persists though. What can we do about this error:
[Tue Jun 10 03:09:38 2014] [warn] [client xxx.xxx.xxx.xxx] mod_fcgid: stderr: PHP Fatal error: Call to undefined function add_action() in /var/www/vhosts/xxx.com/xxxxx/wp-content/plugins/events-manager/em-actions.php on line 635
Thanks!
I just checked the error logs again. The memory errors seem to have stopped right around the time we adjusted the memory limit in the php.ini file.
Great, are you still getting the undefined function error?