Masoud
Forum Replies Created
-
Forum: Plugins
In reply to: [LiteSpeed Cache] missing htaccess data@tenkstars understood. thank you for the help ^_^
@qtwrk thank you for the info.Forum: Plugins
In reply to: [LiteSpeed Cache] missing htaccess datahi @tenkstars. thanks for the help. i’m not a pro.
but from what i understood by looking at the wp-rocket original code was i looked at similarities, and deleted them.
so the above code is not being produced in lightspeed cache and somehow is missing i guess.
and if another cache plugin is producing these codes, maybe they are good?
or maybe lightspeed has not developed their plugin to this extent yet.
like the Pre-Load Fonts feature, that wp-rocket has and is such a good option to save site loading time by pre-loading them from the server and also suggested by SEO, but lightspeed cache is starting to think of implementing it.that’s why i came here to ask for the plugin author/support opinion on this code to see if it’s truly harmful? or is it something that is good to be there…
- This reply was modified 3 years, 8 months ago by Masoud.
hello @wfgerald
thanks for checking this problem and helping me.i did what you asked.
there is no error there –> please check this photo to see
+
please check this photo too, it the rules i’ve set (not working)what i did extra that i felt might help :
6 – yesterday i contacted the theme author (rubybuild), at envato, themeforest.
and described the issue to them. and asked if there is something wrong with theme or any issue regarding this .
they answered today and said the theme is quality coded and tested many times.
and they also said that this is related to wordfence which is causing the issue by forcing the 404 the wrong way causing incompatibility with other plugins and codes.7 – while the :
” Brute Force Protection > additional options > prevent discovery of username through ‘/?author=N’ scans, oEmbed API, … ” was enable
i also enabled the option : ” Disable reading of php://input ”i thought this might help. but unfortunately the results were the same as before.
8 – i disabled option :
” Brute Force Protection > additional options > prevent discovery of username through ‘/?author=N’ scans, oEmbed API, … ” from wordfence,
and to make sure if this is the theme issue, or is it wordfence, i decided to install a free plugin called — > Disable Author Archivesand the result were 100% with no issue in 404 pages. everything went fine and worked with no problem.
for seeing the results, please click on this photonow the ” Disable Author Archives ” plugin, has no options and it’s very simple.
i paste the code since it is free, and with permission of the author @freemp for study and improvements purposes.the code is :
if ( ! defined( 'ABSPATH' ) ) exit; /* Return status code 404 for existing and non-existing author archives. */ add_action( 'template_redirect', function() { if ( isset( $_GET['author'] ) || is_author() ) { global $wp_query; $wp_query->set_404(); status_header( 404 ); nocache_headers(); } }, 1 ); /* Remove author links. */ add_filter( 'author_link', function() { return '#'; }, 99 ); add_filter( 'the_author_posts_link', '__return_empty_string', 99 );
this code done no issue and not stopped any plugin or css or etc from running.
-note : when i say that i’m testing, i mean
A – i delete browser cache, stored files and everything from the beginning of time
B – flush DNS
C – restart browser
D – use different browsers to make sure
E – click on “Save Changes” to Update WordPress Permalinks each time, after any changes.sorry for long message,
please help me fix this.thank you for your help.
hello @wfgerald
for a moment, i thought just because this is a free support, no one will help me..
but many thanks for your attention and your help.i did what you asked.
1 – disabled all other plugins except, wpbakery and massive addons (results were the same).
2 – changed the theme to default wordpress 2020 (the issue is not happening because there is no wpbakery used in 2020 theme.
3 – switched firewall to learning mode, but the results were the same.the ?author is not getting blocked by the firewall. it’s just i think wordfence is not compatible with the wp-bakery page builder.
here is a picture of the issue in backend –> look at this picture please
what i did extra that i thought might solve the issue :
4 – i tried to add the wp-bakery elements to whitelist rules. so worfence allows it to pass and work. but there is no document about it. so i add anything that came to my mind. i tried to add vc-row , vc-column , vc-css etc
and tried to add them to header, body, query string (i honestly had no idea what i was doing and how to use it)
got a little help from this document in wp-bakery page builder -> Click On LINK Please
(did no help to solve the issue)5 – i tried to add the code, as do_shortcode to my header to force it to work( i think wp-bakery [vc-column] is shortcode). but nothing. the results were the same.
and i saw my broken header twice. so i removed the code.the thing is, the header and 404 template is working fine on all other 404 pages i face, and the issue only happens when wordfence is forcing the browser to show a 404 page when a user tries to access an author page (existing author or non-existing author).
for example, if you go to a non-existing page, like: site.com/nothing
it will show a normal 404 and everything works fine. –> Please see normal 404 Picturebut when you try to access an author page, like: site.com/?author=2 or site.com/?author=1234
the wordfence forced 404 page will be shown out of any style, and not running the css, elements, shortcodes, plugins and blocks all.please help me fix it.
thank you for help.Forum: Plugins
In reply to: [WP-PostViews] reset the view data and make them 0i did what you said, and things are ok now.
thanks a lot for help.
Forum: Plugins
In reply to: [WP-PostViews] reset the view data and make them 0hello.
that did the work for posts. tnx a lot.but my custom post type’s posts, does not have a custom fields.
is there a way so i can make them 0 too?thank you.
Forum: Plugins
In reply to: [Clef Two-Factor Authentication] shortcode for custom login pagehi @stremblaym .
thank you for the answer. but it’s not working.
they did include nothing about this, in their documentation.Forum: Plugins
In reply to: [Clef Two-Factor Authentication] shortcode for custom login pagei’ve also used these 2 codes.
in my custom login page ( page-user-login.php ).
but they didn’t work for me.1 –
<?php do_shortcode('clef_render_login_button'); ?>
2 –
<?php do_shortcode('[clef_render_login_button]'); ?>
———-
Update : It will work if i use the shortcode in a widget!
and i can see the login button.
but it’s not appearing in my login form when i use the shortcode.thanks .
- This reply was modified 8 years ago by Masoud.
Forum: Fixing WordPress
In reply to: wp-login canonical_redirect issueno help ? no one know how to do this?
Forum: Fixing WordPress
In reply to: Internal Server Error@bbjmm
if your site is running then your login page will run without an issue too.i clicked on the address you said, and it took me to the login pannel:
here is the address:
https://www.mariobajardi.com/bjm/wp-login.php?redirect_to=http%3A%2F%2Fwww.mariobajardi.com%2Fbjm%2Fwp-admin%2F&reauth=1have you tried to reach your login page from another device ?
because i can see your login page without a single issue.Forum: Fixing WordPress
In reply to: Internal Server Error@bbjmm
hi.
i am able to browse your website without any problem.
no internal error is here.maybe this is cause by old cache of your browser.
please first of all try to clear your browser’s cache. close & re-open the browser.
go to your website. press CTRL+F5 to see the latest changes.by the way, your website looks cool ??
good luck,
Masoud .- This reply was modified 8 years ago by Masoud.
Forum: Fixing WordPress
In reply to: Corrupted images in Media Library@littleinu
hi.
i faced the same issue not long ago, all of my images are corrupted and whatever i uploaded looked broken..
(not completely the same issue, but somehow like yours)
i googled and i came up with this solution :function parallelize_hostnames($url, $id) { $hostname = par_get_hostname($url); $url = str_replace(parse_url(get_bloginfo('url'), PHP_URL_HOST), $hostname, $url); return $url; } function par_get_hostname($name) { //add your subdomains below, as many as you want. $subdomains = array('alexjberger.com'); $host = abs(crc32(basename($name)) % count($subdomains)); $hostname = $subdomains[$host]; return $hostname; } add_filter('wp_get_attachment_url', 'parallelize_hostnames', 10, 2);
1 – add this into your functions.php file
from Dashboard > Appearance > Editor > Functions.php
2 – complete answer can be found here :
https://stackoverflow.com/questions/34404336/how-to-parallelize-downloads-across-hostnames-on-wordpressgoodluck,
Masoud .- This reply was modified 8 years ago by Masoud.
Forum: Fixing WordPress
In reply to: Plugin to pay and secure your product@dudedesign
hi.
i am using s2members plugin (paid version)
and it’s a pay and secure plugin.
however i’m not sure about the booking/choosing a date to receive item
(if s2members has it or not)
you can check more details on their site : https://www.s2member.comgoodluck,
Masoud .Forum: Fixing WordPress
In reply to: Internal Server Error@bbjmm
hi.
i’ve faced such issue before.
1 – can you see the main site page? (as an example https://www.yoursite.com)
2 – what have you done recently to your site? any changes in files/codes ?Forum: Plugins
In reply to: [Contact Form 7] rtl languagehi @william712
what @mohammad2232 is trying to say , is:
he has a website in RTL language – Persian/Farsi Language .
1 – he is using another ReCaptcha for his login form , and is it in Persian/Farsi Language by default (perhaps it can detects the site language , or there is an option in the plugin to change the language of google recaptcha)2 – the ReCaptcha you are using in Contact Form7 default Language is in English.
how can he change the default contact form7 Language, from English to Persian/Farsi .
- This reply was modified 8 years, 1 month ago by Masoud.