Skip Navigation

[Resolved] WP Views causing critical errors

This support ticket is created 4 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 4 replies, has 2 voices.

Last updated by ASCB 4 years ago.

Assisted by: Minesh.

Author
Posts
#2265085

Setting up new queries using Views (e.g. hidden link) and I keep running into recurring errors causing the page to fail to load completely , and the page editor to fail to work at all on any page calling on any new View. I suspect this is related to my other recent issue with toolset (https://toolset.com/forums/topic/views-query-filters-wont-accept-changes-keep-resetting/#post-2263125)

Turning on the debugger gives the following errors, and they clear when I disable the Views plugin, but large portions of the site rely on the latter to function.

Notice: is_archive was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/ascb_web/ascb.org/wp-includes/functions.php on line 5663

Notice: is_home was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/ascb_web/ascb.org/wp-includes/functions.php on line 5663

Notice: is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/ascb_web/ascb.org/wp-includes/functions.php on line 5663

Warning: Cannot modify header information - headers already sent by (output started at /home/ascb_web/ascb.org/wp-includes/functions.php:5663) in /home/ascb_web/ascb.org/wp-includes/functions.php on line 6712

Warning: Cannot modify header information - headers already sent by (output started at /home/ascb_web/ascb.org/wp-includes/functions.php:5663) in /home/ascb_web/ascb.org/wp-admin/includes/misc.php on line 1310

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /home/ascb_web/ascb.org/wp-includes/formatting.php on line 234
There has been a critical error on this website. Please check your site admin email inbox for instructions.

#2265465

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I'm not sure if the error is coming from the code I shared.

What if you disable that code? Do you see it working?

I see the error is the fatal error about the memory and there is no concrete evidence that those error are coming from Toolset based on the description you shared.

In order to minimize the cause of the issue:
*** Please make a FULL BACKUP of your database and website.***
Could you please try to resolve your issue by deactivating all third-party plugins as well as with the default theme to check for any possible conflicts with any of the plugins or themes? - Do you see any difference?

#2266101
Capture.PNG

It doesn't appear to be related to the code, the problem persists when I remove it. As does the critical memory exhausted error when I disable our theme and all non-Toolset plugins; the only thing that allows the affected pages to load is disabling Views. The header errors do appear to be caused by a conflict with our Restrict User Access plugin, but those do not affect page loading, that's apparently a separate non-critical issue that I just turned up while troubleshooting this one.

Everything appears to run fine on our test site, but no combination of plugins resolves the memory exhausted error on our production site except for disabling Views, and wiping and reinstalling the plugin has not helped. I also notice that the original problem of Views query settings reverting and refusing to accept changes remains, as in this Webinar Types filter at hidden link

#2268087

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please try to increase the memory limit on your server.

You can check with your server hosting authority and ask them to increase memory limit to 512M. You should try to add the following line of the code to your wp-config.php file:

ini_set("memory_limit","512M"); 
define( 'WP_MEMORY_LIMIT', '512M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );

Please check the following related ticket:
https://toolset.com/forums/topic/fatal-error-memory-exceeded/#post-409605

More info:
- hidden link

#2269919

Expanding the memory allotment is allowing the page to load, at least for now, though I will have to be reviewing what we can do to stop pageload consuming that many resources in the first place. Thank you!