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-
AuthorPosts
-
August 20, 2019 at 1:36 pm #503947
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.
August 20, 2019 at 2:03 pm #503954Ah, 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:August 20, 2019 at 2:41 pm #503965This reply has been marked as private.August 20, 2019 at 3:00 pm #503970This reply has been marked as private.August 21, 2019 at 10:57 am #504141Hi 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,
KiranAugust 22, 2019 at 7:48 am #504309This reply has been marked as private.August 23, 2019 at 1:09 pm #504567Hi, are there any news?
August 23, 2019 at 2:17 pm #504575Hello,
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,
KiranAugust 23, 2019 at 2:38 pm #504581Hi Kiran,
Thank you very much, this seems to have solved the issue!
Have a nice weekend,
AronAugust 26, 2019 at 5:59 am #504869Thanks for letting us know.
August 27, 2019 at 1:31 pm #505145Hi 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,
AronAugust 27, 2019 at 1:37 pm #505147Hi,
Try after removing following three lines from my snippet:
if ( empty( $_GET['preview'] ) ) { return; }
Let us know how it goes.
Kiran
August 27, 2019 at 2:27 pm #505157Thank 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,
AronAugust 29, 2019 at 1:48 pm #505537Hi 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
August 30, 2019 at 7:04 am #505669This reply has been marked as private. -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket