Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter bebablub

    (@bebablub)

    I have a potential fix for the current dev version
    file: js\mla-set-parent-scripts.js
    starting from line 87

    			// Enable whole row to be clicked
    $( '#mla-set-parent-inside-div' ).on( 'click', 'tr', function() {
    $( this ).find( '.found-radio input' ).prop( 'checked', true );
    $( '#mla-set-parent-submit' ).prop( 'disabled', false );
    });

    // Enable Update button when a radio button is selected directly
    $( '#mla-set-parent-response-div' ).on( 'change', 'input[type="radio"]', function() {
    $( '#mla-set-parent-submit' ).prop( 'disabled', false );
    });

    starting from line 202 (when preselected)

    			// Enable whole row to be clicked
    $( '#mla-set-parent-inside-div' ).on( 'click', 'tr', function() {
    $( this ).find( '.found-radio input' ).prop( 'checked', true );
    $( '#mla-set-parent-submit' ).prop( 'disabled', false );
    });

    // Enable Update button when a radio button is selected directly
    $( '#mla-set-parent-response-div' ).on( 'change', 'input[type="radio"]', function() {
    $( '#mla-set-parent-submit' ).prop( 'disabled', false );
    });

    and finally when dialog is closed reset state starting from line 138

    		close: function() {
    $( '#mla-set-parent-input' ).val('');
    $( '#mla-set-parent-post-type' ).val('all');
    $( '#mla-set-parent-response-div' ).html('');
    $( '#mla-set-parent-div' ).hide();
    $( '#mla-set-parent-overlay' ).hide();
    $( '#mla-set-parent-submit' ).prop( 'disabled', true );
    },

    I think this is because of some dependency conflicts or changes in latest wordpress version.

    For me the following workaround/fix is working in version 1.24.1 (just download plugin, replace the following files, zip it again and replace it in admin panel):

    file: admin\admin.php
    replace “admin_head()” function starting at line 58 with

        public function admin_head() {

            global $gmCore;

            add_filter( 'admin_body_class', [ &$this, 'admin_body_class' ] );

            $page = $gmCore->_get( 'page' );

            if ( $page && ( false !== strpos( $page, 'GrandMedia' ) ) ) {

                ?>

                <style id="gmedia_admin_css">html, body {

                        background: <?php echo isset( $_GET['gmediablank'] ) ? 'transparent' : '#708090'; ?>;

                    }</style>

                <script>

    if(typeof initAutocomplete!=='function'){window.initAutocomplete=function(){};}

    if(typeof sprintf!=='function'){window.sprintf=function(){var a=arguments,s=a[0],i=1;return s.replace(/%((%)|s|d)/g,function(m){var v=null;if(m[2]){v=m[2];}else{v=a[i];if(m==='%d'){v=parseFloat(v);if(isNaN(v)){v=0;}}i++;}return v;});};}

                </script>

                <?php

            }

        }

    and

    file: admin\assets\js\gmedia.global.js
    replace the whole file with:

    /**

     * Gmedia Globals

     *

     * @var GmediaGallery

     */

    if ( ! ajaxurl ) {

        //noinspection JSUnresolvedVariable.

        var ajaxurl = GmediaGallery.ajaxurl;

    }

    if ( typeof initAutocomplete !== 'function' ) {

        window.initAutocomplete = function() {};

    }

    if ( typeof sprintf !== 'function' ) {

        window.sprintf = function() {

            var args = arguments,

                string = args[0],

                i = 1;

            return string.replace(/%((%)|s|d)/g, function(m) {

                var val = null;

                if ( m[2] ) {

                    val = m[2];

                } else {

                    val = args[i];

                    switch ( m ) {

                        case '%d':

                            val = parseFloat(val);

                            if ( isNaN(val) ) {

                                val = 0;

                            }

                            break;

                    }

                    i++;

                }

                return val;

            });

        };

    }

    What does it do? There are some functions in js missing probably because of dependency problems. The workaround introduce a mockup for missing initAutocomplete() function and introduces a new debug sprintf() function. In my opinion the changes are not critical. But the plugin author should validate that. I hope this is possible because of Ukraine conflict.

    best regards

    Benjamin

    Thread Starter bebablub

    (@bebablub)

    Hi @jmcelhaney

    No sorry i’m getting the same error with version 3.5.1:
    Fatal error: Array and string offset access syntax with curly braces is no longer supported in /var/www/wordpress/wp-content/plugins/ninja-forms/deprecated/includes/admin/edit-field/li.php on line 247

    If i’m change line 247 and replace the curly braces from:
    } elseif ( !empty($v) && is_string($v) && ( ('{' == $v{0} && '}' == $v{strlen($v) - 1}) || ('[' == $v{0} && ']' == $v{strlen($v) - 1}) || preg_match('/^\(?function ?\(/', $v) ) ) {

    to

    } elseif ( !empty($v) && is_string($v) && ( ('{' == $v[0] && '}' == $v[strlen($v) - 1]) || ('[' == $v[0] && ']' == $v[strlen($v) - 1]) || preg_match('/^\(?function ?\(/', $v) ) ) {

    then everything works…

    Thread Starter bebablub

    (@bebablub)

    I had also issues with JS optimization. But after disabling it everything seems to run fine with the latest version 1.3. Thank you!

    Thread Starter bebablub

    (@bebablub)

    Thx for all the replies. Using the jQuery Migrate Helper plugin using the 1.12.4 legacy setting did not fix anything for me. The error still exists…

    Thread Starter bebablub

    (@bebablub)

    Update: There were some caching issues. So WP FullCalendar 1.1 JS components were loaded. After flushing caches it looks a little bit better no but the following error is still there and nothing is shown…:

    jquery.min.js?ver=3.5.1:2 Uncaught TypeError: Cannot read property ‘format’ of null
    at g (main.js?ver=1.2:1)
    at f (main.js?ver=1.2:1)
    at e (main.js?ver=1.2:1)
    at r (main.js?ver=1.2:1)
    at q (main.js?ver=1.2:1)
    at i (main.js?ver=1.2:1)
    at f (main.js?ver=1.2:1)
    at Ja.e [as render] (main.js?ver=1.2:1)
    at HTMLFormElement.<anonymous> (main.js?ver=1.2:1)
    at Function.each (jquery.min.js?ver=3.5.1:2)

    @lucianobosco
    Just replace “the_content” with “reblex_the_content” in “reusable-blocks-extended.php” and you will be fine 😉

    @plugin Author: Could you please update the sources to this changes?

    I had also issues with double instancing of the_content in hook. In CM Routes Manager for example it leads to a endless loop and a 503 error.

    Thank you!

    Thread Starter bebablub

    (@bebablub)

    Thank you for your reply.

    Correct, the problem is in the admin area. The plugs of “URL Filter for Expert” are changing if i’m clicking on it. The plugs of “Page Type Filter” are not changing. But theres seems to be a link because my cursor changes if i’m hover over it.

    I’m running many other plugins. So you are suggesting to deactivate one by one to see whats causing the issues right?

    Thread Starter bebablub

    (@bebablub)

    After some search i found a proper and very flexible solution. There is a plugin called “plugin load filter”: https://de.ww.wp.xz.cn/plugins/plugin-load-filter/
    With this plugin you are able to define filter patterns for URLs (for example amp). Furthermore you are also able to define which plugins shall be disabled/enabled on a match. So thats exactly the behavior i needed.

    Thread Starter bebablub

    (@bebablub)

    Good idea, but unfurtunatly there is no “Rollback” link in plugin list within troubleshoot mode (even with just only enabling/troubleshoot Rollback plugin): https://ibb.co/nPzbfT

    So theres no chance to check it :/

    Thread Starter bebablub

    (@bebablub)

    Thank you for your reply!

    I also tried it with a different browser…so it’s not browser specific…

    The Rollback button is just disabled… on click nothing happens:
    https://ibb.co/dHWiuo

    But there is a JS error:
    https://ibb.co/hK3rfT

    Probably a problem with other plugins?

    The problem is that i have lot’s of plugins installed….
    +————————————-+———-+———–+————+
    | name | status | update | version |
    +————————————-+———-+———–+————+
    | add-meta-tags | active | none | 2.11.3 |
    | advanced-cron-manager | active | none | 2.3.2 |
    | advanced-iframe | active | none | 7.5.2 |
    | all-in-one-wp-security-and-firewall | active | none | 4.3.5 |
    | anti-tor | active | none | 1.0.0 |
    | archives-calendar-widget | active | none | 1.0.12 |
    | asset-queue-manager | active | none | 1.0.3 |
    | automatic-post-tagger | active | none | 1.8.2 |
    | better-search-replace | active | none | 1.3.2 |
    | bj-lazy-load | active | none | 1.0.9 |
    | cloudflare | active | none | 3.3.2 |
    | disable-comments | active | none | 1.7.1 |
    | disable-password-reset | active | none | 1.0 |
    | display-widgets | active | none | 2.7 |
    | download-manager | active | available | 2.8.7 |
    | duplicate-post | active | none | 3.2.2 |
    | elementor | active | available | 2.0.3 |
    | email-address-encoder | active | none | 1.0.7 |
    | exclude-pages-from-menu | active | none | 2.0 |
    | fancybox-for-wordpress | active | none | 3.0.13 |
    | favicon-by-realfavicongenerator | active | none | 1.3.11 |
    | fix-duplicates | active | none | 1.0.4 |
    | fix-image-rotation | active | none | 2.1.1 |
    | grand-media | active | none | 1.12.11 |
    | google-sitemap-generator | active | none | 4.0.9 |
    | heartbeat-control | active | none | 1.2.3 |
    | hide-unwanted-shortcodes | active | none | 1.1 |
    | imagemagick-engine | active | none | 1.5.2 |
    | infinite-timeline | active | none | 1.0 |
    | inline-google-spreadsheet-viewer | active | none | 0.12.8 |
    | media-library-assistant | active | none | 2.74 |
    | memcached-is-your-friend | active | none | 2.0.0 |
    | ml-slider | active | none | 3.8.1 |
    | miniorange-2-factor-authentication | active | none | 5.0.12 |
    | ninja-forms | active | none | 3.3.7 |
    | osd-exclude-from-search-results | active | none | 2.4 |
    | osm | active | available | 3.5 |
    | page-links-to | active | none | 2.11.1 |
    | page-loading-effects | active | none | 1.0.1 |
    | plugin-load-filter | active | none | 3.0.3 |
    | private-content | active | none | 4.3 |
    | search-filter | active | none | 1.2.10 |
    | search-autocomplete | active | none | 2.1.16 |
    | shortcode-widget | active | none | 1.5.1 |
    | simple-301-redirects | active | none | 1.07 |
    | simple-custom-css | active | none | 4.0.1 |
    | simple-page-ordering | active | none | 2.3.2 |
    | qr-code-generator-widget | active | none | 1.10 |
    | sitemap | active | none | 4.3 |
    | strava_stats | active | none | 1 |
    | tags-all-in-one | active | none | 1.0.5 |
    | tinymce-advanced | active | none | 4.7.11 |
    | updraftplus | active | none | 1.14.11 |
    | uptime-robot-monitor | active | none | 2.2.2 |
    | validated | active | none | 2.1.2 |
    | vevida-optimizer | active | none | 1.2 |
    | windsor-strava-athlete | active | none | 1.3.5 |
    | wp-auto-featured-image | active | none | 1.5 |
    | wp-gpx-maps | active | available | 1.3.16 |
    | wp-optimize | active | none | 2.2.4 |
    | wp-typography | active | none | 5.3.5 |
    | wp-cloudy | active | none | 4.4.7 |
    | wp-display-header | active | none | 6 |
    | wp-fastest-cache | active | none | 0.8.8.1 |
    | wp-fullcalendar | active | none | 1.2 |
    | wp-missed-schedule-posts | active | none | 1.1 |
    | wp-rollback | active | none | 1.5.1 |
    | wp-script-optimizer | active | none | 0.4.5 |
    | wp-statistics | active | none | 12.3.6.3 |
    | wp-to-twitter | active | none | 3.3.6 |
    | wptouch | active | none | 4.3.28 |
    | wp-ulike | active | available | 3.3.1 |
    | wp-historical-weather | active | none | 1.0 |
    | wordpress-seo | active | none | 7.7.1 |
    | PluginOrganizerMU.class | must-use | none | 9.3 |
    | object-cache.php | dropin | none | |
    +————————————-+———-+———–+————+

    I already tried to deactivate:
    Asset Queue Manager
    BJ Lazy Load
    plugin load filter
    WP Scripts & Styles Optimizer

    because these plugins are changing the load behavior of JS and Styles. But the problem is still existing.

    Do you have any idea? Or point were i can start to search for the error?

    Thank you!

    Thread Starter bebablub

    (@bebablub)

    little addition: this also happens with activated and deactivated plugins.

    I’m running version 1.51

    Thank you for your help!

Viewing 12 replies - 1 through 12 (of 12 total)