• Resolved verminaard

    (@verminaard)


    Hello.
    WP version is 5.0.3 (and older)
    Geo Mashup version is 1.11.3
    PHP version is 7.1, 7.2, 7.3

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Dylan Kuhn

    (@cyberhobo)

    Thanks, I will work on that here:

    https://github.com/cyberhobo/wordpress-geo-mashup/issues/831

    I’ll let you know if I have further questions for you.

    Thread Starter verminaard

    (@verminaard)

    Thank you so much.

    Yeah, just feel free. If I can provide some useful information, I’ll do it with pleasure. Thank you.

    Plugin Author Dylan Kuhn

    (@cyberhobo)

    I wasn’t able to reproduce the problem with a fresh WordPress and Geo Mashup install with PHP 7.2 or 7.3.

    If you’re able to put up a temporary test site with just WordPress and Geo Mashup, it might be useful to know if you see the problem there.

    Another thing that could provide useful information would to temporarily add debugging constants to your wp-config.php file:

    
    define( 'WP_DEBUG', true );
    

    What I’m hoping that would give you is a warning message with more information about where the problem occurs than “wp-db.php on line 3189”.

    Thread Starter verminaard

    (@verminaard)

    I’ve tried to set up a new website without any modifications or additional plugins, but with the same result.

    In my debug.log file I see just errors like those:

    [04-Feb-2019 00:29:53 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1208225936 bytes) in /home/httpdocs/wordpress/wp-includes/wp-db.php on line 3189
    [04-Feb-2019 00:29:57 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1920234376 bytes) in /home/httpdocs/wordpress/wp-includes/wp-db.php on line 3189

    Also I’ve tried to do a lot of actions with my DB including restoring from backups, modifying, deleting the tables, creating the tables manually and automatically with the plugin installation, converting from MyISAM to INNODB and back, restoring the original backup again without any success.

    When I switch to PHP 5.6 everything works fine.
    I don’t understand what’s going on. Tell me please, where I can find some additional information?

    Plugin Author Dylan Kuhn

    (@cyberhobo)

    I think it’s going to take a profiling tool like xdebug to collect the needed information. That will show exactly where the resources are going.

    Thread Starter verminaard

    (@verminaard)

    Sorry for my late reply.
    I’ve done some tests and finally I found out that the problem is with my hosting provider settings.
    I tried to use fresh install of wordpress with plugin using PHP 7+ on my local computers too and everything works fine so it looks like finally I need to find some resolution with my hosting provider.

    Sorry to trouble you and thanks a lot for your attention.

    Plugin Author Dylan Kuhn

    (@cyberhobo)

    Better late than never, thanks for following up.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Allowed memory exhausted using PHP 7+’ is closed to new replies.