Skip Navigation

[Resolved] PHP fatal error

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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Karachi (GMT+05:00)

This topic contains 4 replies, has 3 voices.

Last updated by stevenT-5 1 year ago.

Assisted by: Waqar.

Author
Posts
#2577995

Hi, I have my site setup on a Plesk server. There's a duplicate of the site on the same sever for staging purposes. The WordPress tool in Plesk allows you to copy database and files between the two copies of the same site. The setup used to work fine with Toolset plugins running until recently when I upgraded the server with PHP 8x. Under PHP 8 when running data copy using the tool described above, I get PHP error. When I turn Toolset off, the operation works fine. Below are the error messages generated by the server:

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10485760 bytes) in /var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/wp-views/application/models/shortcode/post/excerpt_gui.php on line 89

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10485760 bytes) in /var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/wp-views/application/models/shortcode/post/excerpt_gui.php on line 8

timeout: the monitored command dumped core
Segmentation fault
-

Please advise.
Steven

#2578277

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Hi there

Those are out-of-memory errors, it looks like there is insufficient memory available to one of your sites.

The debug info you shared shows that the site you took that from has 256Mb of memory available, but the error shows that only 128M is available (and that is not enough), presumably that refers to the other site.

You should revise how much memory is available from the server PHP settings (you can check that using the info tab at Tools > Site Health), and how much is allocated to WordPress via the WP_MEMORY_LIMIT and WP_MAX_MEMORY_LIMIT settings in wp-config.php.

They should be at least 256M.

#2580159

thanks for the response, Nigel.

I allocated more server memory equally for the two sites, and the copying operation seems to be stable now with no errors. The remaining mystery is that why Toolset Views causes this memory insufficiency as other plugins seem to be fine with the original settings? Could it be that some parts of the code require a bit more calculation or interpretation hence more processing power needed during data copying operation? I want to understand the nature of the problem a bit more beyond the fix.

#2581091

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Steven,

Thanks for the update and glad that the copying operation is functioning stable now.

It will be difficult to pinpoint the exact cause of this memory exhaustion, without first understanding the inner working of this copying mechanism.

In terms of code, the Toolset Views/Blocks is a fairly large and complex plugin since it consists of many components. But that complexity shouldn't be consuming too much memory just for the file copying/moving operations. I suspect that this copying mechanism could be in some way, analyzing/processing the code involved in the files too, which is the only explanation that I can think of for this increase in memory usage.

regards,
Waqar

#2581365

Thanks for the reply, Waqar.
What you're saying makes sense. I'm good for now.
Have a good week.

/ steven

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.