JupiterX issue

This topic contains 25 replies, has 3 voices, and was last updated by  amweb 5 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #503947

    amweb
    Full Member
    Post count: 55

    Dear GD support team,

    I am having regular layout issues which seem to be linked to the JupiterX compiler.

    When I try to preview a listing which is being created, the styles always get corrupted on the first page load of the preview page, with an error message in the console about the file “/wp-content/uploads/jupiterx/compiler/jupiterx/style.css”: “Failed to load resource: the server responded with a status of 404 ()”.
    Sometimes the same error is also displayed for the file “/wp-content/uploads/jupiterx/compiler/jupiterx/script.js”.

    This happens only on GD pages, especially on the first load of the “preview listing” page. If I reload the same page, the message disappears and the styles are loaded properly, but if I click again on the “Preview listing” link, the issue happens again.

    It also used to happen on the “Add listing” pages (here too, only on the first page load, a reload of the page resolved the layout issues). For the “Add listing” page I managed to solve it (at least as it seem for now), by excluding the “/add-listing” page from WP Super Cache.

    I tried activating the option “Exclude pages with GET parameters from cache” in WP Super Cache, but this did not solve the issue on the preview page.

    Thank you in advance for your support.

    #503954

    Alex Rollin
    Moderator
    Post count: 27815

    Ah, understood. Please share WP Admin credentials so we can look into the issue on your site. FTP will be very helpful

    WordPress Credentials
    WP Admin Login URL:
    WP Admin Username:
    WP Admin Password:

    FTP Credentials
    FTP Host:
    FTP Port:
    FTP User:
    FTP Password:

    #503965

    amweb
    Full Member
    Post count: 55
    This reply has been marked as private.
    #503970

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #504141

    Kiran
    Moderator
    Post count: 7069

    Hi Aron,

    Please update all the plugins which have updates available.

    I have checked and replicated same. There are many plugins are active on site so difficult which one is causing conflicts.

    Do you have a staging site? Staging site is best todo some debugging by disabling some non-GD plugins. It will help us to track from which plugin the issue is coming. Conflicts could be related to Elementor or Jupiter or Caching or any other plugin.
    Or do you allow to do debugging on live site?

    Best Regards,
    Kiran

    #504309

    amweb
    Full Member
    Post count: 55
    This reply has been marked as private.
    #504567

    amweb
    Full Member
    Post count: 55

    Hi, are there any news?

    #504575

    Kiran
    Moderator
    Post count: 7069

    Hello,

    After doing some debugging found that dynamic css from wp-content/uploads/jupiterx/compiler/jupiterx/ not loaded on preview page.

    I have added following PHP snippet in you child-theme functions.php and seems issue is fixed. Please try this snippet on your live site.

    
    
    /**
     * Fix GeoDirectory preview page issue on Jupiter X theme.
     */
    function gd_snippet_20190823_wp_footer() {
    	if ( empty( $_GET['preview'] ) ) {
    		return;
    	}
    ?>
    <script type="text/javascript">
    jQuery(function(){
    	var href = jQuery('link#jupiterx-css').attr('href');
    	href = href + '&_r=' + ( Math.floor( Math.random() * 100000000000 ).toString() );
    	jQuery('link#jupiterx-css').attr('href', href );
    });
    </script>
    <?php
    }
    add_action( 'wp_footer', 'gd_snippet_20190823_wp_footer', 20 );

    Please try after clearing your browser cache.

    Let us know.

    Thanks,
    Kiran

    #504581

    amweb
    Full Member
    Post count: 55

    Hi Kiran,

    Thank you very much, this seems to have solved the issue!

    Have a nice weekend,
    Aron

    #504869

    Kiran
    Moderator
    Post count: 7069

    Thanks for letting us know.

    #505145

    amweb
    Full Member
    Post count: 55

    Hi Kiran,

    Unfortunately I just noticed that I still encounter the issue, on the add listing page for gd_place (“Account” menu on the top right >> “Schede” >> “Aggiungi scheda”), when I switch from one package to another.
    It is always the same two files that cause issues (always “/wp-content/uploads/jupiterx/compiler/jupiterx/style.css” and sometimes also “/wp-content/uploads/jupiterx/compiler/jupiterx/script.js”).

    Can you please have another look?

    Thank you in advance and kind regards,
    Aron

    #505147

    Kiran
    Moderator
    Post count: 7069

    Hi,

    Try after removing following three lines from my snippet:

    
    
    if ( empty( $_GET['preview'] ) ) {
        return;
    }

    Let us know how it goes.

    Kiran

    #505157

    amweb
    Full Member
    Post count: 55

    Thank you, that effectively solves the issue for the CSS file. 🙂

    Unfortunately on the other hand it also seems that there are still some JS issues on the page.
    For example the address fields behave strangely when autocompiling an address: if I click on one of the autocompile suggestions from Google Maps, most of the times it will not insert the city in the “City” field, sometimes it needs a long time to fill the city, and sometimes it chooses an address in the wrong city (same address, but another city from the list of suggestions).

    In the console it does not display any errors, but it outputs the address object as follows:

    {address: "STREET_VALUE,,REGION_VALUE,COUNTRY_VALUE,ZIP_VALUE", country: "COUNTRY_CODE_VALUE"}

    The values for STREET_VALUE and ZIP_VALUE are correct, but between STREET_VALUE and REGION_VALUE there is nothing (only a double comma), where the city should be.

    Do you have any idea what could be wrong?

    Thank you in advance for your support,
    Aron

    #505537

    Kiran
    Moderator
    Post count: 7069

    Hi Aron,

    I tried on my test sites but not replicated similar issues. Can you tell us which address you tried to search in address field and which address you selected from autocomplete search(pscreenshot if possible).

    Kiran

    #505669

    amweb
    Full Member
    Post count: 55
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 26 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount