Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thank you. It forces us to disable debug mode (which we have enabled on our development projects) because it breaks the backend sometimes (output before headers).
    I was confused as this thread is 3 weeks old, the latest version was released a few days ago and the issue is still around.

    This is still an issue for me on WP v6.7.1 and Autoptimize v3.1.12

    Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the autoptimize domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/clients/client1/web314/web/wp-includes/functions.php on line 6114
    Thread Starter kschlager

    (@kschlager)

    Thank you for your quick response.

    I overlooked, that in our case script-b is enqueued via wp_enqueue_script() but the output (filter ‘script_loader_tag’) is modified to be type=”module”. Modules are not aggregated nor deferred. So the loading order is not right.
    We will get around this on our side.

    Thread Starter kschlager

    (@kschlager)

    Yes, I mean trash, sorry.

    After deleting the parent page, the child pages are gone. They are not deleted, only the parent page got deleted, but they are visible nowhere. So you got ‘ghost’-pages. The child-pages are still there and are fuly working in the frontend but you can’t find them in the admin area.
    Of course unless you click the ‘Expand All’ button. Most users will not see nor know these buttons if you don’t tell them.

    Did a quick fix: I modified ‘collapse_subpages’ to look if the parent page is in the list before collapsing. Would be great if you could test this and integrate it in your next update if it works.

        function collapse_subpages(parent_id) {
            jQuery('#the-list').find('[data-parent="' + parent_id + '"]').each(function() {
    			if (jQuery('#the-list').find('[data-acs-id="' + parent_id + '"]').length) {
    				jQuery(this).hide();
    				collapse_subpages(jQuery(this).attr('data-acs-id'));
    			}
            });
        }
    
    Thread Starter kschlager

    (@kschlager)

    Great, works as expected.
    Thank you.

    Thread Starter kschlager

    (@kschlager)

    You’re right, the second fix is nonsense. I just searched for get_the_title() and came along this line. Didn’t even recognize it was in another function.

    Thank you.

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