• Resolved scottastanford

    (@scottastanford)


    Hi there, hitting a stumbling block when attempting to load the plugin on the front end or via admin columns inline edit (plugin works as expected on a standard post edit screen). We use ACF to load our image fields:

    Uncaught TypeError: Cannot read property 'innerText' of undefined
        at constructor.<anonymous> (?gui-live-edit=1&post-id=20198&fields=g_content_rows&row-id=row-1&ts=1615903356&sadfsd=1412m1241:812)
        at p (backbone.min.js?ver=1.4.0:2)
        at f (backbone.min.js?ver=1.4.0:2)
        at l (backbone.min.js?ver=1.4.0:2)
        at i.n.trigger (backbone.min.js?ver=1.4.0:2)
        at i.propagate (media-views.min.js?ver=5.5.3:2)
        at i.open (media-views.min.js?ver=5.5.3:2)
        at i.open (script.js?ver=5.3.15:352)
        at i.open (assign_image_folder_tree.js?ver=5.3.15:442)
        at i.<computed> [as open] (media-views.min.js?ver=5.5.3:2)
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor ionut.calara

    (@ionutcalara)

    Hi @scottastanford can you paste the code you are using to load the plugin on the admin edit columns?

    Thread Starter scottastanford

    (@scottastanford)

    Hi @ionutcalara, I am not adding/changing any code to load it for the inline edit from Admin Columns Pro:

    I’ve tried to following filters but to no avail:

    add_filter( 'load_stockpack', 'stockpack_load', 10, 1 );
    add_filter( 'frontend_load_stockpack ', 'stockpack_load', 10, 1 );
    
    function stockpack_load( $load ) {
    
        if ( (! is_admin() && is_user_logged_in()) || is_admin()) {
            return $load;
        }
    }
    
    add_filter('stockpack_providers', 'stockpack_providers', 20, 1);
    
    function stockpack_providers($providers)
    {
    
        $current_user = get_current_user_id();
    
        switch ($current_user) {
            case 2:
                return array(
                    'Adobe Stock' => __('Adobe Stock', 'stockpack'),
                    'Pexels' => __('Pexels', 'stockpack'),
                    'Pixabay' => __('Pixabay', 'stockpack'),
                    'Unsplash' => __('Unsplash', 'stockpack'),
                );
                break;
            case 3:
                return array(
                    'Adobe Stock' => __('Adobe Stock', 'stockpack'),
                    'Pexels' => __('Pexels', 'stockpack'),
                    'Pixabay' => __('Pixabay', 'stockpack'),
                    'Unsplash' => __('Unsplash', 'stockpack'),
                );
                break;
            case 173:
                return array(
                    'Adobe Stock' => __('Adobe Stock', 'stockpack'),
                    'Pexels' => __('Pexels', 'stockpack'),
                    'Pixabay' => __('Pixabay', 'stockpack'),
                    'Unsplash' => __('Unsplash', 'stockpack'),
                );
                break;
            default:
                return array(
                    'Pexels' => __('Pexels', 'stockpack'),
                    'Pixabay' => __('Pixabay', 'stockpack'),
                    'Unsplash' => __('Unsplash', 'stockpack'),
                );
                break;
        }
    
    }
    Plugin Contributor ionut.calara

    (@ionutcalara)

    Hi @scottastanford unfortunately, I wasn’t able to replicate the issue with the free version, they lack any editing option there, so I will need a copy of the plugin to test.
    Please reach out via the contact form here to provide it:
    https://stockpack.co/contact

    Plugin Contributor ionut.calara

    (@ionutcalara)

    Hi @scottastanford I am afraid it’s feasible for us to buy licenses just to test compatibility issues. I am closing this until further notice. Feel free to reopen.

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

The topic ‘JS Error’ is closed to new replies.