cyberhobo / wordpress-geo-mashup

Official repository for Geo Mashup, the plugin that makes WordPress into a GeoCMS. Documentation:
https://github.com/cyberhobo/wordpress-geo-mashup/wiki/Getting-Started
63 stars 15 forks source link

Allowed memory exhausted using PHP 7+ #831

Closed cyberhobo closed 5 years ago

cyberhobo commented 5 years ago

From forum post https://wordpress.org/support/topic/allowed-memory-exhausted-using-php-7/:

I've been using the plugin a lot with PHP 5.6 without any problems but now my hosting provider force me to use PHP 7.3 and I got a problem with it.

I can't edit any page of my website which doesn't have a pin on the map (for example, if it's done automatically by reposting from another service) or I can't create a new post on my website. I get just a blank page or 500 internal server error. If I switch to PHP 5.6, I can do all of this things. If I switch to PHP 5.6, put the pin to the map in the imported or just created post and then switch to PHP 7.3, I can edit all of the posts.

Of course, if I disable the plugin, I don't have any problems using PHP 7+ but I don't have any maps too)))

What I defined in my server logs which can be useful is a lot of errors like this:

500 GET /wp-admin/post.php?post=8284&action=edit HTTP/1.0

Error 177.231.232.26 End of script output before headers: post.php

Warning 177.231.232.26 mod_fcgid: stderr: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 640073952 bytes) in /home/vhosts/hedgecat.com/httpdocs/wp-includes/wp-db.php on line 3189

The number like 640073952 bytes can be different up to almost 2 Gb.

Can you help me with this issue please? Which more useful information I can provide for you?

Thanks in advance.

cyberhobo commented 5 years ago

I'm not able to reproduce this with PHP 7.2.

cyberhobo commented 5 years ago

Unable to reproduce with PHP 7.3 as well.

cyberhobo commented 5 years ago

Seems to have been specific to a hosting provider.