Images not showing after Staging Deploy
This topic contains 7 replies, has 2 voices, and was last updated by Alex Rollin 4 years, 11 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
April 14, 2020 at 1:01 pm #540083
I have a big problem and I believe it is something to do with how Geodirectory stores images.
I made some updates to various aspects of my website in Staging mode. However, after deploying to the live site, many (in fact, most) of my listings images stopped appearing. This hasn’t happened to any other images elsewhere on the website; just the ones in Geodirectory.
I have exported all of the listing places to an excel sheet and taken a look at their image links. All the images are correctly pointing to the /wp-content/uploads/ folder but for some reason, a high proportion are not being shown in the media library. This has totally baffled me. I have gone into File Manager and checked inside the folder, and *all* the images are there but for some very strange reason many of them are not in the Media Library and thus not showing up on the listings page.
I know there is a difference between ‘featured’ images and any additional images BUT I only have one image per listing (so the featured image).
The ones that are showing have the following link:
https://www.xxxx.com/wp-content/uploads/2020/
The ones that are not showing, are trying to find the image from within the directory listing url
https://www.xxx.com/xxx-directory/600w or
https://www.xxx.com/places/%5Bname of listing]/720w
As I say, they are all on the server in the wp-content/uploads/ folder but they are missing in the Media Library.
I have tried everything, including deactivating all my plugins and purging all cache, but to not avail.
Any suggestions please on how I can resolve this?
Many thanks, Gary
April 14, 2020 at 1:58 pm #540099Should be something like: https://www.xxxx.com/wp-content/uploads/2020/01
Where do you see this kind of link? on the frontend? https://www.xxx.com/xxx-directory/600w
It looks like an image optimization settings, maybe from the theme or a plugin.
Have you tried disabling plugins and switching themes to see if the issue persists?
https://wpgeodirectory.com/docs-v2/faq/troubleshooting/#conflict-test
April 14, 2020 at 2:10 pm #540101Hi Alex,
Yes, the images that are showing (frontend) have the following link address:
https://www.xxxx.com/wp-content/uploads/2020/01
https://www.xxxx.com/wp-content/uploads/2020/02
https://www.xxxx.com/wp-content/uploads/2020/03 etcThe images that are not showing have the following type of addresses:
https://www.xxx.com/places/200w (frontend on the archive page)
https://www.ipohgo.com/places/600w
https://www.ipohgo.com/places/720wOne the actually listings (GD Detail) page, the image link address is this type:
https://www.ipohgo.com/places/ [LISTING POST TITLE] /200wI have disabled all plugins except Geodirectory (and I deactivated all the remaining Geodirectory extensions). But the images were still missing.
I also changed the theme to the wordpress Twenty-Twenty, but again the images are not showing.
I’m completely baffled. All the images are definitely in the wp-content/uploads/ folder but the ones that are showing these strange links are also not appearing in the Media Library. I’m confused as it is totally random.
April 14, 2020 at 5:30 pm #540170This reply has been marked as private.April 14, 2020 at 6:14 pm #540192This reply has been marked as private.April 14, 2020 at 6:55 pm #540207There is a console error I have seen before, about avada fusion-video.js
I have set the archive item to turn ajax off and use the thumbnail
I was checking on this page /perak-tong-cave-temple/
You have 3 separate performance plugins running and soemthing is no doubt using lazy load. I recommend you turn off lazy load for GD posts to avoid a settings conflict.
Let us know if you see the issue in other places.
Please disable all the cache next time you want us to check. so we can check into the issue further, if needed.
April 15, 2020 at 6:15 am #540274Hi Alex,
Many thanks for this. The images do now appear on my archive item pages but still missing on the actual individual listing page.
However, I have been doing some further trouble-shooting and I think you are right about the Lazy Loading. It was actually turned off (in Avada, WP Rocket and SG Optimiser). I have now deactivated WP Rocket and SG Optimiser. And I have turned on Lazy Loading in Avada. Now (nearly) all the images are showing in the archive and on individual listings pages. After further investigation I have found that the only images now missing (with Avada Lazy Load turned on) are those images that are 200px wide (or well).
They actually generate a Geodirectory PHP Error:
Plugin: geodirectory
Trying to access array offset on value of type boolwp-content/themes/Avada/includes/lib/inc/class-fusion-images.php:182 Fusion_Images->set_largest_image_size() wp-includes/class-wp-hook.php:287 apply_filters('wp_calculate_image_srcset') wp-includes/media.php:1376 wp_calculate_image_srcset() wp-includes/media.php:1593 wp_image_add_srcset_and_sizes() wp-content/plugins/geodirectory/includes/widgets/class-geodir-widget-post-images.php:422 GeoDir_Widget_Post_Images->output_images() wp-content/plugins/geodirectory/includes/widgets/class-geodir-widget-post-images.php:278 GeoDir_Widget_Post_Images->output() wp-content/plugins/geodirectory/vendor/ayecode/wp-super-duper/wp-super-duper.php:1349 WP_Super_Duper->shortcode_output() wp-includes/shortcodes.php:343 do_shortcode_tag() Unknown location preg_replace_callback() wp-includes/shortcodes.php:218 do_shortcode() wp-content/plugins/fusion-builder/shortcodes/fusion-column-inner.php:549 FusionSC_ColumnInner->render() wp-includes/shortcodes.php:343 do_shortcode_tag() Unknown location preg_replace_callback() wp-includes/shortcodes.php:218 do_shortcode() wp-content/plugins/fusion-builder/shortcodes/fusion-row-inner.php:31 fusion_builder_row_inner() wp-includes/shortcodes.php:343 do_shortcode_tag() Unknown location preg_replace_callback() wp-includes/shortcodes.php:218 do_shortcode() wp-content/plugins/fusion-builder/shortcodes/fusion-column.php:615 FusionSC_Column->render() wp-includes/shortcodes.php:343 do_shortcode_tag() Unknown location preg_replace_callback() wp-includes/shortcodes.php:218 do_shortcode() wp-content/plugins/fusion-builder/shortcodes/fusion-row.php:28 fusion_builder_row() wp-includes/shortcodes.php:343 do_shortcode_tag() Unknown location preg_replace_callback() wp-includes/shortcodes.php:218 do_shortcode() wp-content/plugins/fusion-builder/shortcodes/fusion-container.php:694 FusionSC_Container->render() wp-includes/shortcodes.php:343 do_shortcode_tag() Unknown location preg_replace_callback() wp-includes/shortcodes.php:218 do_shortcode() wp-includes/class-wp-hook.php:287 apply_filters('the_content') wp-content/plugins/fusion-builder/inc/class-fusion-template-builder.php:1335 Fusion_Template_Builder->render_content() wp-content/plugins/fusion-builder/inc/class-fusion-template-builder.php:873 Fusion_Template_Builder->{closure}() wp-includes/class-wp-hook.php:287 do_action('avada_override_current_page_title_bar') wp-content/themes/Avada/includes/custom-functions.php:142 avada_current_page_title_bar() wp-content/themes/Avada/header.php:58 load_template('wp-content/themes/Avada/header.php') wp-includes/template.php:672 locate_template() wp-includes/general-template.php:41 get_header() wp-content/plugins/fusion-builder/templates/template-page.php:14
April 15, 2020 at 8:07 pm #540425OK, did you disable lazy load for GD Post Images element responsible for the missing images?
Open the template responsible and edit GD Post Images ajax_load=”1″, change it to
ajax_load="0"
Use the shortcode builder if there are any issues.
If there is still an issue please share a link to the page with missing images so we can check on the issue.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket