Quantcast
Channel: Topic Tag: MySQL | WordPress.org
Viewing all articles
Browse latest Browse all 5536

RobertHarm on "[Plugin: Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps)] MySQL Error Log"

$
0
0

Hi again,

did a deeper look into the code & think I found (and fixed) an issue that could be related to these log entries: the dbdelta()-function that is used to update the database tables for Leaflet Maps Marker and that is run once a day (controlled by a transient) throws errors as I also added backticks to the field names there but as I just read now according to the WordPress codex backticks are not supported by dbdelta().
Can you please test if the following fix works?

1. replace /inc/install-and-updates.php with code from https://raw.githubusercontent.com/robertharm/Leaflet-Maps-Marker/e3af95b67d64214ba69881928fe6223042a94c2f/inc/install-and-updates.php

2. open leaflet-maps-marker.php and find

function lmm_install_and_updates() {
        //info: set transient to execute install & update-routine only once a day
        $current_version = "v394"; //2do - mandatory: change on each update to new version!
        $schedule_transient = 'leafletmapsmarker_install_update_cache_' . $current_version;
        $install_update_schedule = get_transient( $schedule_transient );
        if ( $install_update_schedule === FALSE ) {
            $schedule_transient = 'leafletmapsmarker_install_update_cache_' . $current_version;
            set_transient( $schedule_transient, 'execute install and update-routine only once a day', 60*60*24 );
            include('inc' . DIRECTORY_SEPARATOR . 'install-and-updates.php');
        }
    }

3. temporarily replace this function with

function lmm_install_and_updates() {
        include('inc' . DIRECTORY_SEPARATOR . 'install-and-updates.php');
    }

4. open the page "liste all markers" and check if the error log still occurs.

5. restore the original function lmm_install_and_updates() {...}

Let me know if that worked for you!
best,
Robert


Viewing all articles
Browse latest Browse all 5536

Trending Articles