usminfoserv
Forum Replies Created
-
Completely resolved for me, too. Thank you!
And before you ask… we are using WordPress 5.6 and autoptimize 2.8.1
I’m experiencing the same error since the upgrade to Photo Gallery 1.5.66 which updated the jquery.mobile.min.js from 1.3.2 to 1.4.5.
Uncaught SyntaxError: missing ) in parenthetical — jquery.mobile.min.js:7
Additionally, with autoptimize’s javascript aggregation turned on, this causes problems with unrelated pages. Deactivating photo gallery solves those issues. Turning off autoptimize’s aggregation feature also solves the issue. It’s not clear whether this is related to the syntax error… but it would be nice to have it fixed if possible.
Is there a pre-minified version of jquery.mobile.min.js that I could swap in that would help narrow down where the issue is?
Update: It looks like the flatbook theme includes ACF in the theme. WordFence is reporting it as a plugin needing an update, and flags are showing for the Updates and Plugins menu items in the dashboard. However, there is no way to update the plugin within the theme on the updates page. It’s no longer clear to me if this is a WordFence issue, or if it’s a WordPress issue and WordFence is just reporting on the inconsistent information in WordPress.
Using IF/ELSE could work if you want to enumerate all sites where it could be used (we have four environments currently).
My solution is below, but it requires putting a file outside of all of the web roots, which might not be something feasible for WordFence to do:
# cat .htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
# Wordfence WAF
<IfModule mod_php5.c>
php_value auto_prepend_file ‘/usr/local/wordfence/wordfence-waf.php’
</IfModule>
<Files “.user.ini”>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Files># END Wordfence WAF
# cat /usr/local/wordfence/wordfence-waf.php
<?php
// Before removing this file, please verify the PHP ini settingauto_prepend_filedoes not point to this.if (file_exists($_SERVER[‘DOCUMENT_ROOT’] . ‘/wp-content/plugins/wordfence/waf/bootstrap.php’)) {
define(“WFWAF_LOG_PATH”, $_SERVER[‘DOCUMENT_ROOT’] . ‘/wp-content/wflogs/’);
include_once $_SERVER[‘DOCUMENT_ROOT’] . ‘/wp-content/plugins/wordfence/waf/bootstrap.php’;
}
?>