All my posts disappeared in my website

Product : Theme X (I’m running with X-child theme)
Website: www.secure-enough.com

After I updated the theme , ones I change the website’s language from English to Arabic (RTL direction) all my posts disappeared

Note: It was supporting right to left direction before the update.

Hey,

Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

– WordPress Admin username / password
– FTP credentials

Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

Done,
All required information uploaded to the main post

Hello There,

Thanks for providing the information. I can see that you have installed caching plugin W3 Total Cache. After making your changes or settings, please clear your plugin cache and all the caching mechanism in your site so that the latest changes will be used and not the cached version.

Please let us know how it goes.

Hi,

I have cleared all caches including browser and plugin cache, Same issue still remaining.

Also, I have tried plugin called “RTL Tester” which was working perfect before the update, but nothing changed.

Hey @abdullahom1,

Hope you are doing great :slight_smile:
To take a closer look I need to enable debug mode but unfortunately I am unable to access your files as FTP login credentials are not working. Can you enable debug mode for us?

You can do it by editing wp-config.php file in your file manager. Look for define( ‘WP_DEBUG’, true );, by default debug mode is set to false just change it to true.

Also try increasing wp memory limits. You can try adding this in your wp-config.php located at the root directory of your site.

define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );

You can add it before the line

/* That’s all, stop editing! Happy blogging. */

Let me know how it goes.

Regards

Hi Rahul,

Done,
Debug mode enabled, and memory limit updated .

Regards,

Hello There,

Thanks for updating in! I have investigated further and it turns out that this is a bug in the latest release of the theme. I already reported this to our developers. Meanwhile, I went ahead and created a patch. I override the isotope template _script-isotope-index.php file in your child theme (/x-child/framework/views/global/) and I added this content in it.

<?php

// =============================================================================
// VIEWS/GLOBAL/_SCRIPT-ISOTOPE-INDEX.PHP
// -----------------------------------------------------------------------------
// Isotope script call for index output.
// =============================================================================

$is_rtl = is_rtl();

?>

<script>

  jQuery(document).ready(function($) {

    <?php if ( $is_rtl ) : ?>

      $.xIsotope.prototype._positionAbs = function( x, y ) {
        return { right: x, top: y };
      };

    <?php endif; ?>

    var $container = $('#x-iso-container');

    $container.before('<span id="x-isotope-loading"><span>');

    $(window).load(function() {
      $container.xIsotope({
        itemSelector   : '.x-iso-container > .hentry',
        resizable      : true,
        filter         : '*',
        <?php if ( $is_rtl ) : ?>
          transformsEnabled : false,
          isOriginLeft: false,
        <?php endif; ?>
        containerStyle : {
          overflow : 'hidden',
          position : 'relative'
        }
      });
      $('#x-isotope-loading').stop(true,true).fadeOut(300);
      $('#x-iso-container > .hentry').each(function(i) {
        $(this).delay(i * 150).animate({'opacity' : 1}, 500);
      });
    });

    $(window).xsmartresize(function() {
      $container.xIsotope({  });
    });

  });

</script>

Please check your site now.

It works perfect,

Thanks

You’re welcome.