sjlevy
Forum Replies Created
-
Forum: Plugins
In reply to: [Email Post Changes] WordPres 6.3 issueTo fix this, change lines 103 and 104 of class.email-post-changes.php to read:
$left = apply_filters( "wp_post_revision_field$field", $this->left_post->$field, $field, $this->left_post, 'from' );
$right = apply_filters( "wp_post_revision_field$field", $this->right_post->$field, $field, $this->right_post, 'to' );The duplicate posts have become a real issue for me as well, starting around March 2020. I have noticed this happening specifically with iPhone Safari users.
If they submit a form but don’t close the success page/tab, and then re-open safari at a later date– the browser sometimes initiate an HTTP POST that triggers the duplicate entry. This can be from a different IP address for example if they have moved from Wifi to cellular. This can happen hours or even days later from the original submission.
More concerning is that this happens even when a form has the permission limit one post per user. In one case I used a form for a basic election/vote with the limit in place. The users were required to log in and vote. We had users voting multiple times completely unaware because of this issue. A re-attempt via a desktop browser will give the expected ‘you have already submitted this form’, but somehow Safari is getting around the check. You would think Formidable would re-query server-side to check the database for an existing submission by a user before accepting a duplicate post, but apparently it is not or somehow Safari is getting around it.
I haven’t been able to pin it down but yet but it may be a somewhat recently introduced bug or has been recently exacerbated.
Forum: Plugins
In reply to: [Invisible reCaptcha for WordPress] Problem with AJAX after updateNew update appears to have fixed the issue, thanks for that.
I was having trouble reproducing it myself and was not in a position to grant access to the site, sorry I couldn’t provide more information.
I have a similar problem but different error, immediately after update:
PHP Parse error: syntax error, unexpected 'private' (T_PRIVATE) in /var/www/wp-content/plugins/my-custom-css/pages/myphp/Edit.php on line 257
Forum: Plugins
In reply to: [Invisible reCaptcha for WordPress] Problem with AJAX after updateI am having a similar problem with admin-ajax.php on a Multisite installation, directly after updating to 1.2.2, and I do not use WPML:
[11-Mar-2019 18:41:58 UTC] PHP Fatal error: Uncaught Error: Class ‘InvisibleReCaptcha\Modules\WordPress\WordPressPublicModule’ not found in E:\inetpub\wwwroot\wp-content\plugins\invisible-recaptcha\engine\PublicEngine.php:30
Stack trace:
#0 E:\inetpub\wwwroot\wp-content\plugins\invisible-recaptcha\includes\plugin\MchBasePlugin.php(109): InvisibleReCaptcha\PublicEngine->__construct()
#1 E:\inetpub\wwwroot\wp-content\plugins\invisible-recaptcha\engine\RequestHandler.php(24): InvisibleReCaptcha\MchLib\Plugin\MchBasePlugin::getInstance()
#2 E:\inetpub\wwwroot\wp-includes\class-wp-hook.php(286): InvisibleReCaptcha\RequestHandler::InvisibleReCaptcha\{closure}(”)
#3 E:\inetpub\wwwroot\wp-includes\class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#4 E:\inetpub\wwwroot\wp-includes\plugin.php(465): WP_Hook->do_action(Array)
#5 E:\inetpub\wwwroot\wp-settings.php(374): do_action(‘plugins_loaded’)
#6 E:\inetpub\wwwroot\wp-config.php(111): require_once(‘E:\\inetpub\\wwwr…’)
#7 E:\inetpub\wwwroot\wp-load.php(37): require_once(‘E:\\inetpub\\wwwr…’)
#8 E in E:\inetpub\wwwroot\wp-content\plugins\invisible-recaptcha\engine\PublicEngine.php on line 30Forum: Plugins
In reply to: [Download Manager] Fatal error after updateSame issue here:
PHP Fatal error: Class 'WPDM\admin\menus\Stats' not found in E:\inetpub\wwwroot\wp-content\plugins\download-manager\admin\class.WordPressDownloadManagerAdmin.php on line 13
Reverted back to old version for now
Forum: Plugins
In reply to: [Comet Cache] long filename issuesAfter further inspection I still believe this to be a long filename issue
The error was very repeatable with long post name entries
I browsed to one of the paths, and attempted to write the same filename that comet-cache is.
The filename was being truncated once the path hit 247 chars (windows path limitation is technically 260 but it wants allowance for 12 characters plus 1 null character, 247+12+1 = 260)
From Microsoft: https://msdn.microsoft.com/en-us/library/aa365247(VS.85).aspx#maxpath
Maximum Path Length Limitation
In the Windows API (with some exceptions discussed in the following paragraphs), the maximum length for a path is MAX_PATH, which is defined as 260 characters. A local path is structured in the following order: drive letter, colon, backslash, name components separated by backslashes, and a terminating null character. For example, the maximum path on drive D is “D:\some 256-character path string<NUL>” where “<NUL>” represents the invisible terminating null character for the current system codepage. (The characters < > are used here for visual clarity and cannot be part of a valid path string.)
By changing the character limit in the code cited by Raam I was able to resolve the issue. I altered lines 147 and 153 of Shared/CachePathUtils.php — down from 201 to a lower number.
It appears that the length check in CachePathUtils is looking at the URL length instead of the filesystem path length, revising that code might resolve the issue for all Windows server users.
Ok thank you for the quick response
Forum: Plugins
In reply to: [Comet Cache] long filename issuesRaam,
Thank you for being so responsive
I apologize for not replying sooner, yes I probably made the wrong assumption. There could be something else locking the file.
I will continue to investigate.
Forum: Plugins
In reply to: [Invisible reCaptcha for WordPress] login_url and redirect issueMy apologies,
It seems like wp-login.php always presents itself (even for logged in users)
Forum: Plugins
In reply to: [WP-SpamShield] 'not installed correctly' web.config issueThanks for taking the time
Sorry for the trouble
Forum: Plugins
In reply to: [WP-SpamShield] 'not installed correctly' web.config issueThe developer points out that Windows/IIS is not supported which is understandable.
The latest WP-SpamShield 1.9.8 update has removed all of the web.config’s introduced in 1.9.7.8 from the plugin directories. The plugin appears to be working correctly again on IIS (obviously minus the .htaccess restrictions)
I had been trying to figure out why this 1.9.7.8 web.config directive would not work on my IIS configurations:
<authorization> <allow users="*" /> </authorization>
Turns out it was because I needed to install the ‘URL Authorization’ feature, see the ‘Setup’ section of this doc: https://www.iis.net/configreference/system.webserver/security/authorization
Additionally it looks like there were some syntax issues (at least with IIS version 8). IIS generates the authorization rule like this:
<security> <authorization> <remove users="*" roles="" verbs="" /> <add accessType="Allow" users="*" /> </authorization> </security>
Similarly a deny rule:
<security> <authorization> <remove users="*" roles="" verbs="" /> <add accessType="Deny" users="*" /> </authorization> </security>
The <remove> tag seems to be necessary to remove any inherited/default authorization.
By replacing the 1.9.7.8 web.config directives with the new syntax above it was happy
Forum: Plugins
In reply to: [WP-SpamShield] 'not installed correctly' web.config issueJust a note to others having this issue
I was able to remove or rename web.config in wp-content/plugins/wp-spamshield/js/, deactivate and reactivate the plugin to get an ‘installed correctly’ installation status
Forum: Plugins
In reply to: [WP-SpamShield] exclude a specific pageThanks Scott,
That is exactly what I needed
You’ve got one of the most effective plugins, plus 100% response to support forums- nice work
Forum: Fixing WordPress
In reply to: WP Mail / Outlook / MIME multipart issuesHere is a screenshot and redacted header:
https://i.stack.imgur.com/YmzMW.pngReceived: from smtp.school.edu (XXX.XXX.XXX.XXX) by email.school.edu (XXX.XXX.XXX.XXX) with Microsoft SMTP Server id 14.3.266.1; Sun, 15 Nov 2015 21:15:40 -0600 DKIM-Signature: [v=1; a=rsa-sha1; c=relaxed/relaxed; s=s1024; d=school.edu; h=subject:to:date:from:message-id:mime-version:content-type; bh=XXXXXX; b=XXXXXX DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=school.edu; h=subject:to:date:from:message-id:mime-version:content-type; b=XXXXXX Received: from WWW1.school.edu ([XXX.XXX.XXX.XXX]) by smtp.school.edu with Microsoft SMTPSVC(7.0.6002.18264); Sun, 15 Nov 2015 21:15:40 -0600 Subject: =?UTF-8?B?TGlicmFyeSAtIFXXXXXgU3VnZ2VzdGlvXXXXXXtaXR0ZWQgb24gTFNVIExXXXXXcm1z?= To: <[email protected]> X-PHP-Originating-Script: 0:class-phpmailer.php Date: Mon, 16 Nov 2015 03:15:40 +0000 From: School Web <[email protected]> Message-ID: <[email protected]> X-Priority: 3 X-Mailer: PHPMailer 5.2.10 (https://github.com/PHPMailer/PHPMailer/) Reply-To: <[email protected]> MIME-Version: 1.0 Return-Path: [email protected] X-OriginalArrivalTime: 16 Nov 2015 03:15:40.0590 (UTC) FILETIME=[126F9CE0:01D1201D] X-MS-Exchange-Organization-AuthSource: email.school.edu X-MS-Exchange-Organization-AuthAs: Anonymous X-MS-Exchange-Organization-PRD: school.edu X-MS-Exchange-Organization-SenderIdResult: Pass Received-SPF: Pass (email.school.edu: domain of [email protected] designates XXX.XXX.XXX.XXX as permitted sender) receiver=email.school.edu; client-ip=XXX.XXX.XXX.XXX; helo=smtp.school.edu; Content-type: multipart/alternative; boundary="B_3530511021_187771850" > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3530511021_187771850 Content-type: text/plain; charset="UTF-8" Content-transfer-encoding: 7bit Affiliation:<=strong> XXXXXX Student Comments: 1. I would feel a lot safer if, after a certain tim=, we would have to swipe our IDs to have access into the building. <=r/>2. I wish the undergrads did not have access to our classrooms or our l=brary, especially during finals season. 3. I would appreciate i= if the library would allow us to have the study rooms for more than 3 hou=s IF all of the other study rooms are not full. I don't see the rationale =ehind kicking us out when there is no one else waiting for the room and th=re are 6 other empty ones not being used... --B_3530511021_187771850 Content-type: text/html; charset="UTF-8" Content-transfer-encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8"> </head> <body> <table cellspacing=3D"0" style=3D"font-size:12px;line-height:135%; border-b=3Dtto= m:1px solid #dddddd;"> <tbody> <tr style=3D"background-color:#eeeeee;"> <th style=3D"text-align:left;color:=3D444444;padding:7px 9px;border-top:1px sol= id #dddddd"> <strong>Affiliation:<=3Dstrong></strong></th> <td style=3D"text-align:left;color:#444444;padding:7px 9px;bor=3Der-top:1px sol= id #dddddd"> XXXXXX Student</td> </tr> <tr style=3D"background-color:#ffffff;"> <th style=3D"text-align:left;color:=3D444444;padding:7px 9px;border-top:1px sol= id #dddddd"> <strong>Comments:</st=3Dong></strong></th> <td style=3D"text-align:left;color:#444444;padding:7px 9px;border=3Dtop:1px sol= id #dddddd"> 1. I would feel a lot safer if, after a certain tim=3D, we would have to swip= e our IDs to have access into the building. <br> <=3Dr/>2. I wish the undergrads did not have access to our classrooms o= r our l=3Dbrary, especially during finals season. <br> <br> 3. I would appreciate i=3D if the library would allow us to have the study ro= oms for more than 3 hou=3Ds IF all of the other study rooms are not full. I do= n't see the rationale =3Dehind kicking us out when there is no one else waitin= g for the room and th=3Dre are 6 other empty ones not being used...</td> </tr> </tbody> </table> </body> </html> --B_3530511021_187771850--