Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hey @rsouzaam ??
    I already gave the project to the client, so I don’t want to break it again now. I couldn’t find anything specific in the Network tab as far as I remember. When I try the URL now, it does return the scripts as expected.

    Here is the system info:

    				### Begin System Info ###

    -- WPForms Info

    Lite: Mar 24, 2023 at 5:15pm (GMT)
    Lite Connect: Backup is not enabled

    -- Site Info

    Site URL: https://[...]
    Home URL: https://[...]
    Multisite: No

    -- WordPress Configuration

    Version: 6.7.1
    Language: de_DE
    User Language: de_DE
    Permalink Structure: /%postname%/
    Active Theme: dng2024
    Show On Front: page
    Page On Front: Startseite (#2315)
    Page For Posts: Unset
    ABSPATH: /var/www/vhosts/[...]/
    Table Prefix: Length: 9 Status: Acceptable
    WP_DEBUG: Enabled
    WPFORMS_DEBUG: Not set
    Memory Limit: 40M
    Registered Post Stati: publish, future, draft, pending, private, trash, auto-draft, inherit, request-pending, request-confirmed, request-failed, request-completed, acf-disabled, dp-rewrite-republish
    Revisions: Enabled

    -- WordPress Uploads/Constants

    WP_CONTENT_DIR: /var/www/vhosts/[...]/wp-content
    WP_CONTENT_URL: https://[...]/wp-content
    UPLOADS: Not set
    wp_uploads_dir() path: /var/www/vhosts/[...]/wp-content/uploads/2025/03
    wp_uploads_dir() url: https://[...]/wp-content/uploads/2025/03
    wp_uploads_dir() basedir: /var/www/vhosts/[...]/wp-content/uploads
    wp_uploads_dir() baseurl: https://[...]/wp-content/uploads

    -- WordPress Active Plugins

    Advanced Custom Fields PRO: 6.3.12
    EWWW Image Optimizer: 8.1.1 (needs update - 8.1.2)
    Regenerate Thumbnails: 3.1.6
    Resizable Editor Sidebar: 1.0.5
    SMTP Mailer: 1.1.17
    UpdraftPlus - Backup/Restore: 1.25.2
    Wordfence Security: 8.0.3
    WPForms Lite: 1.9.4.1
    Yoast Duplicate Post: 4.5
    Yoast SEO: 24.6

    -- WordPress Inactive Plugins

    EMC Scheduling Manager: 4.2
    Real Cookie Banner (Free): 5.0.13
    Search & Replace: 3.2.3

    -- Webserver Configuration

    PHP Version: 8.2.27
    MySQL Version: 10.3.39
    Webserver Info: Apache

    -- PHP Configuration

    Memory Limit: 256M
    Upload Max Size: 8M
    Post Max Size: 8M
    Upload Max Filesize: 8M
    Time Limit: 180
    Max Input Vars: 1000
    Display Errors: N/A

    -- PHP Extensions

    cURL: Supported
    fsockopen: Supported
    SOAP Client: Installed
    Suhosin: Not Installed

    -- Session Configuration

    Session: Disabled

    ### End System Info ###

    Same problem here – load-scripts.php experiences a timeout, jQuery is not loaded, causing the WPForms editor to load forever.

    (The URL is /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,underscore,wp-util,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-draggable,wp-pol&load%5Bchunk_1%5D=yfill,moxiejs,plupload&ver=6.7.1)

    I fixed it by disabling script concatenation. You can do so by adding the following line to the wp-config.php file:

    define( 'CONCATENATE_SCRIPTS', false );

    In my opinion the plugin shouldn’t break on script concatenation though, as it’s WordPress’ default and everything else works fine with it…

    • This reply was modified 1 month, 2 weeks ago by Jan Dembowski.
    • This reply was modified 1 month, 2 weeks ago by Tim. Reason: found temp. fix
    • This reply was modified 1 month, 2 weeks ago by Tim.

    @akshaycode1 the page is not public yet. But for now my fix works fine. I assume it should usually generate the IDs automatically?

    Tim

    (@greller)

    I now set the IDs for each headline automatically via the functions.php:

    function custom_sanitize_title($title)
    {
    $title = strtolower($title);
    $umlauts = [
    '?' => 'ae',
    '?' => 'oe',
    'ü' => 'ue',
    '?' => 'ss',
    '?' => 'ae',
    '?' => 'oe',
    'ü' => 'ue',
    ];
    $title = strtr($title, $umlauts);
    $title = preg_replace('/[^a-zA-Z0-9]+/', '-', $title);
    $title = preg_replace('/-$/', '', $title);
    return $title;
    }

    add_filter( 'the_content', 'add_ids_to_header_tags' );
    function add_ids_to_header_tags( $content ) {
    $pattern = '#(?P<full_tag><(?P<tag_name>h\d)(?P<tag_extra>[^>]*)>(?P<tag_contents>[^<]*)</h\d>)#i';
    if ( preg_match_all( $pattern, $content, $matches, PREG_SET_ORDER ) ) {
    $find = array();
    $replace = array();
    foreach( $matches as $match ) {
    if ( strlen( $match['tag_extra'] ) && false !== stripos( $match['tag_extra'], 'id=' ) ) {
    continue;
    }
    $find[] = $match['full_tag'];
    $id = custom_sanitize_title( $match['tag_contents'] );
    $id_attr = sprintf( ' id="%s"', $id );
    $replace[] = sprintf( '<%1$s%2$s%3$s>%4$s</%1$s>', $match['tag_name'], $match['tag_extra'], $id_attr, $match['tag_contents']);
    }
    $content = str_replace( $find, $replace, $content );
    }
    return $content;
    }
    Tim

    (@greller)

    Same issue here. How were you able to fix it?

    Thread Starter Tim

    (@greller)

    I did not change anything, but it does work most of the time now

    Thread Starter Tim

    (@greller)

    Well that doesn’t help much if you just roll out the 2.0 update via automatic updates. Every site was touched by 2.0 even before 2.0.2 came out.

    Yes, theme and companion are at version 2.0.4 on that page. I was able to get the missing colors back by now though.

    Thread Starter Tim

    (@greller)

    I already did the migrations by myself, but thanks for the offer.

    Just wanted to let you know about the issues so you could fix them in the next version if possible.

    On that note: A different page, which uses blocksy as well, lost 3 of its palette-colors. Only colors 1 to 5 are shown in the customizer and I cannot add the other 3 colors back. They are also missing in the CSS.

    Thanks, this helped me a lot!
    I just want to add, that it doesn’t has to be a filter, but can also be an action that isn’t added properly. In my case it was:

    add_action('wp_head', /* something that returned null */);

    You can create a page, which is then editable with Gutenberg, and show its content on your archive page.
    In your case: create a new page with the name Products, so that it has the permalink “/products/”. Then add an archive.php that looks something like this:

    <?php
    function custom_post_type_content(): string | false
    {
        $custom_post_types = get_post_types(['public' => true, '_builtin' => false], "names");
        $type = get_post_type();
        if (isset($custom_post_types[$type])) {
            // Get the static page with a matching slug
            $category_static_page = get_page_by_path($type);
    
            // If such a page exists, get it
            if (isset($category_static_page)) {
                // Output page content and apply the usual the_content filters
                return apply_filters('the_content', $category_static_page->post_content);
            }
        }
        return false;
    }
    
    if ($content = custom_post_type_content()) {
        get_header();
        echo $content;
        get_footer();
    } else {
        if (wp_redirect(home_url())) {
            exit;
        }
    }
    
    • This reply was modified 1 year, 12 months ago by Tim.
Viewing 10 replies - 1 through 10 (of 10 total)