Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hey Kristy,

    yes exactly, I assumed that you’re using WP Recipe Maker because I only took a quick glance at your blog. In any case, I’m happy that you were able to solve the problem! 🙂

    Cheers
    Philipp

    Hi,

    I’m not from support, but I think I can help you anyway because I had the same issue. Go to plugin settings -> selection settings -> image selector and replace the code in the field with the following:

    .jpibfi_container img:not(.wprm-recipe-container img)

    This prevents all images inside the recipe container from getting a Pinterest pin.

    Cheers
    Philipp

    Hey Brecht,

    thanks for the fast reply.

    Ok, but if I’m going to translate the nutrition labels under “Custom Nutrients” page you mentioned, they will be displayed in that language regardless of the site language. So I get german labels in an english recipe for example.

    Maybe I could duplicate every nutrient and create a german version of it. When creating a recipe I would then only use the nutrients with the correct language and leave the other empty so that they don’t get shown. But thats not really a statisfying solution to be honest.

    I don’t know why the strings aren’t showing in Polylang string translation either.

    Hm.

    I don’t know why but suddenly the correct locations are shown. Beats me, but as long as it works…

    rockyourblog

    (@rockyourblog)

    Ok, suddenly it works now, but I have no idea why. I suspect it was a caching problem on my end.

    Thanks anyway! 🙂

    Works great so far, thanks for the tip! I’m gonna use this until either Yoast or Pinterest will fix this issue.

    I have the exact same problem on all of my maintained websites using latest Yoast SEO. I’m using WP Recipe Maker on these sites, too.

    Pinterest only recognizes Article Rich Pins instead of Recipe Rich Pins. If I disable Yoast SEO, it works as it should.

    Is that an issue on Pinterests end? Do you have found a solution?

    Updating to WPRM v5.0.4 solved the issue for me. Many thanks!

    I’ve isolated the issue to the 6G-Firewall rules. If I deactivate this feature, I’m able to save the recipes again without an error message.

    Surely I can’t be the only one with this problem, because another WP installation of mine with roughly the same setup has this problem, too.

    Any ideas?

    Hey,

    I’ve opened a support thread at AIOWPS forum, but no one has answered yet: https://wordpress.org/support/topic/possible-conflict-between-aiowps-wp-recipe-maker-v5/

    I’ve isolated the problem to the 6G-Firewall rules used by AIOWPS though. If I disable these in my .htaccess, it works again. Maybe Wordfence does use them too?

    Unfortunately turning off parts of the firewall is not really a viable solution to this issue. Maybe one of you guys have an idea wich rule is causing this behavior?

    #AIOWPS_SIX_G_BLACKLIST_START
    # 6G FIREWALL/BLACKLIST
    # @ https://perishablepress.com/6g/
    
    # 6G:[QUERY STRINGS]
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{QUERY_STRING} (eval\() [NC,OR]
    RewriteCond %{QUERY_STRING} (127\.0\.0\.1) [NC,OR]
    RewriteCond %{QUERY_STRING} ([a-z0-9]{2000,}) [NC,OR]
    RewriteCond %{QUERY_STRING} (javascript:)(.*)(;) [NC,OR]
    RewriteCond %{QUERY_STRING} (base64_encode)(.*)(\() [NC,OR]
    RewriteCond %{QUERY_STRING} (GLOBALS|REQUEST)(=|\[|%) [NC,OR]
    RewriteCond %{QUERY_STRING} (<|%3C)(.*)script(.*)(>|%3) [NC,OR]
    RewriteCond %{QUERY_STRING} (\|\.\.\.|\.\./|~|
    
    |<|>|\|) [NC,OR]
    RewriteCond %{QUERY_STRING} (boot\.ini|etc/passwd|self/environ) [NC,OR]
    RewriteCond %{QUERY_STRING} (thumbs?(_editor|open)?|tim(thumb)?)\.php [NC,OR]
    RewriteCond %{QUERY_STRING} ('|\")(.*)(drop|insert|md5|select|union) [NC]
    RewriteRule .* - [F]
    </IfModule>
    
    # 6G:[REQUEST METHOD]
    <IfModule mod_rewrite.c>
    RewriteCond %{REQUEST_METHOD} ^(connect|debug|move|put|trace|track) [NC]
    RewriteRule .* - [F]
    </IfModule>
    
    # 6G:[REFERRERS]
    <IfModule mod_rewrite.c>
    RewriteCond %{HTTP_REFERER} ([a-z0-9]{2000,}) [NC,OR]
    RewriteCond %{HTTP_REFERER} (semalt.com|todaperfeita) [NC]
    RewriteRule .* - [F]
    </IfModule>
    
    # 6G:[REQUEST STRINGS]
    <IfModule mod_alias.c>
    RedirectMatch 403 (?i)([a-z0-9]{2000,})
    RedirectMatch 403 (?i)(https?|ftp|php):/
    RedirectMatch 403 (?i)(base64_encode)(.*)(\()
    RedirectMatch 403 (?i)(=\'|=\%27|/\'/?)\.
    RedirectMatch 403 (?i)/(\$(\&)?|\*|\"|\.|,|&|&?)/?$
    RedirectMatch 403 (?i)(\{0\}|\(/\(|\.\.\.|\+\+\+|\\"\\")
    RedirectMatch 403 (?i)(~|
    |<|>|:|;|,|%|\|\s|\{|\}|\[|\]|\|)
    RedirectMatch 403 (?i)/(=|\$&|_mm|cgi-|etc/passwd|muieblack)
    RedirectMatch 403 (?i)(&pws=0|_vti_|\(null\)|\{\$itemURL\}|echo(.*)kae|etc/passwd|eval\(|self/environ)
    RedirectMatch 403 (?i)\.(aspx?|bash|bak?|cfg|cgi|dll|exe|git|hg|ini|jsp|log|mdb|out|sql|svn|swp|tar|rar|rdf)$
    RedirectMatch 403 (?i)/(^$|(wp-)?config|mobiquo|phpinfo|shell|sqlpatch|thumb|thumb_editor|thumbopen|timthumb|webshell)\.php
    </IfModule>
    
    # 6G:[USER AGENTS]
    <IfModule mod_setenvif.c>
    SetEnvIfNoCase User-Agent ([a-z0-9]{2000,}) bad_bot
    SetEnvIfNoCase User-Agent (archive.org|binlar|casper|checkpriv|choppy|clshttp|cmsworld|diavol|dotbot|extract|feedfinder|flicky|g00g1e|harvest|heritrix|httrack|kmccrew|loader|miner|nikto|nutch|planetwork|postrank|purebot|pycurl|python|seekerspider|siclab|skygrid|sqlmap|sucker|turnit|vikspider|winhttp|xxxyy|youda|zmeu|zune) bad_bot
    
    # Apache < 2.3
    <IfModule !mod_authz_core.c>
    Order Allow,Deny
    Allow from all
    Deny from env=bad_bot
    </IfModule>
    
    # Apache >= 2.3
    <IfModule mod_authz_core.c>
    <RequireAll>
    Require all Granted
    Require not env bad_bot
    </RequireAll>
    </IfModule>
    </IfModule>
    #AIOWPS_SIX_G_BLACKLIST_END

    Hi Brecht,

    thanks for your reply!

    The console prints this after hitting “save” button using Firefox. Apart from that, I can’t see anything related to WPRM.

    Response { type: "basic", url: "https://[mysite].com/wp-json/wp/v2/wprm_recipe/18210", redirected: false, status: 403, ok: false, statusText: "Forbidden", headers: Headers, body: ReadableStream, bodyUsed: false }
    admin-modal.js:30:23435

    I disabled the Plugin “All In One WP Security & Firewall” and now it works again. Enabled it and the error shows again. Seems one or more of the .htaccess rules set by this Plugin are preventing WPRM to access the requested files.

    These are the rules pasted by “All In One WP Security & Firewall”:
    https://www.zeta-uploader.com/1869185873

    Maybe you can help me find the culprit here, otherwise I’ll contact support of AIOWPS.

Viewing 11 replies - 1 through 11 (of 11 total)