Hi @masouddarvishi1992,
I’ve just tested this as well, but the plugin’s Dashboard loads fine on any of my localhost setups.
You can check the Developer Tools -> Console tab for any errors related to the loading of the JS/CSS files from the plugin.
For instance, it could be that the plugin’s CSS files are being loaded over HTTPS in your case, while your localhost environment is not properly setup for SSL; causing them to fail loading. The DevTools console should reveal the reason behind the failure to load them.
Kind regards, Jarno
Did you set the WordPress language to Persian or Arabic?
Hey @masouddarvishi1992,
Yes, I set the site language to Persian before checking the Dashboard and the CSS loaded correctly for me (here’s a screenshot).
But I do suspect that I know the cause of the issue you’re experiencing; do you happen to have SCRIPT_DEBUG set to true on this environment? If so, try setting it to false, which should solve this.
Looks like the plugin only has .min.css files specifically for RTL layouts, so the described behavior can indeed occur with SCRIPT_DEBUG set to true on RTL layouts. We’ll have a look at correcting that in an upcoming release.
Kind regards, Jarno
Yes, I checked now. I enabled define( ‘SCRIPT_DEBUG’, true ); ! Why is this a problem with your plugin? Other plugins do not interfere with define( ‘SCRIPT_DEBUG’, true ); !
Hi @masouddarvishi1992,
Thanks for confirming the cause of the issue. This happens because of what I mentioned previously: specifically for RTL layouts (i.e. Persian) the plugin currently only contains the .min.css versions of admin dashboard styles.
Therefore the described behavior occurs with SCRIPT_DEBUGset to true on RTL layouts, as it then tries to load the un-minified (.css) files: and those don’t exist for RTL yet.
We’ll have a look at correcting that in an upcoming release. Thanks for flagging it.
Kind regards, Jarno
@masouddarvishi1992
And if you’d like to fix/workaround this issue with SCRIPT_DEBUG set to true in the current version of the plugin, you can manually create the missing .css files:
– navigate to /wp-content/plugins/really-simple-ssl/assets/css/rtl
– create copies/duplicates of the following files: admin.min.css, plugin.min.css, rsssl-plugin.min.css
– rename the duplicated files to: admin.css, plugin.css, rsssl-plugin.css
Kind regards, Jarno