Linmp
Forum Replies Created
-
I’m getting the same error. Using PHP 8.3 (ea-php83).
[08-May-2024 11:50:10 UTC] PHP Warning: The magic method MchGdbcBasePublicPlugin::__wakeup() must have public visibility in /home/website/wp-content/plugins/goodbye-captcha/includes/plugin/MchGdbcBasePublicPlugin.php on line 44
Forum: Themes and Templates
In reply to: [Mantra] Bug Report – WordPress 5.5I think there is a easy fix, on the file “/includes/theme-comments.php”
find on line 22 the following:
case '' :
Bellow that add:
case 'comment' :
Save the changes made, and upload to the server.
Should now work.I don’t use these theme, but I use another that had the same problem and these modification solved the problem.
>> Before should look like these <<
function mantra_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case '' : ?>
>> After should look like these <<
function mantra_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case '' : case 'comment' : ?>
- This reply was modified 4 years, 7 months ago by Linmp. Reason: Make code clear
Forum: Plugins
In reply to: [WP PGP Encrypted Emails] Accept also S/MIME keysHello Meitar again!
Thanks for your work!
1) Yes, I’m using Contact Form 7. And yes you did fix this problem with Contact Form 7.2) Now I have tested the “Email Subscribers & Newsletters” (https://www.ads-software.com/plugins/email-subscribers/) and is giving me a error when sending “Newsletters”.
=== Error Log : Beginning ===
Fatal error: Uncaught exception ‘Error’ with message ‘Length must be greater than 0’ in /www/blog/wp-includes/random_compat/random_bytes_dev_urandom.php:93 Stack trace: #0 /www/blog/wp-content/plugins/wp-pgp-encrypted-emails/includes/class-wp-smime.php(139): random_bytes(0) #1 [internal function]: WP_SMIME::encrypt(‘<strong style=”…’, ‘From: “Admin” <…’, Resource id #297) #2 /www/blog/wp-includes/class-wp-hook.php(298): call_user_func_array(Array, Array) #3 /www/blog/wp-includes/plugin.php(203): WP_Hook->apply_filters(‘<strong style=”…’, Array) #4 /www/blog/wp-content/plugins/wp-pgp-encrypted-emails/wp-pgp-encrypted-emails.php(1340): apply_filters(‘smime_encrypt’, ‘<strong style=”…’, ‘From: “Admin” <…’, Resource id #297) #5 /www/blog/wp-content/plugins/ in /www/blog/wp-includes/random_compat/random_bytes_dev_urandom.php on line 93
=== Error Log : End ===
The e-mail to the webmaster e-mail is send encrypted, the e-mail to the user without S/MIME key is send properly, the e-mail send to the user with S/MIME key set up is not sent.
3) The same happens when publishing a normal article of the wordpress… and I really mean, I do a normal article on wordpress, but when I publish it to the web site I received the error bellow:
=== Error Log : Beginning ===
Fatal error: Uncaught exception ‘Error’ with message ‘Length must be greater than 0’ in /www/blog/wp-includes/random_compat/random_bytes_dev_urandom.php:93 Stack trace: #0 /www/blog/wp-content/plugins/wp-pgp-encrypted-emails/includes/class-wp-smime.php(139): random_bytes(0) #1 [internal function]: WP_SMIME::encrypt(‘Hello Carina,<b…’, ‘From: “Admin” <…’, Resource id #295) #2 /www/blog/wp-includes/class-wp-hook.php(298): call_user_func_array(Array, Array) #3 /www/blog/wp-includes/plugin.php(203): WP_Hook->apply_filters(‘Hello Carina,<b…’, Array) #4 /www/blog/wp-content/plugins/wp-pgp-encrypted-emails/wp-pgp-encrypted-emails.php(1340): apply_filters(‘smime_encrypt’, ‘Hello Carina,<b…’, ‘From: “Admin” <…’, Resource id #295) #5 /www/blog/wp-content/plugins/ in /www/blog/wp-includes/random_compat/random_bytes_dev_urandom.php on line 93
=== Error Log : End ===
“Hello Carina” is probably referring in this case of the user with S/MIME set up on its account.
The other e-mails are sent correctly (encrypted to the admin e-mail, and to the none set up S/MIME user).
And yes the article is published correctly on the web site.This happens if “Email Subscribers & Newsletters” is active… without it the e-mail notifications can’t be send of course. Disabling the “WP PGP Encrypted Emails” makes it work properly without errors.
4) It should be possible to upload the private key of the blogs admin e-mail so that e-mails can be sign when being sent out.
Forum: Plugins
In reply to: [WP PGP Encrypted Emails] Accept also S/MIME keysYes, first the sample that is send that doesn’t work:
======================== SAMPLE-NOT-WORKING.eml : BEGINNING ========================
Return-Path: <[email protected]>
X-Original-To: [email protected]
Delivered-To: [email protected]
From: Carla Ariana <[email protected]>
To: [email protected]
Subject: Blogmania “Acerca daquilo”
Date: Fri, 26 May 2017 15:08:33 +0000
Reply-To: [email protected]
X-Mailer: PHPMailer 5.2.22 (https://github.com/PHPMailer/PHPMailer)
X-WPCF7-Content-Type: text/plain
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8MIME-Version: 1.0
Content-Disposition: attachment; filename=”smime.p7m”
Content-Type: application/x-pkcs7-mime; smime-type=enveloped-data; name=”smime.p7m”
Content-Transfer-Encoding: base64MIIEGAYJKoZIhvcNAQcDoIIECTCCBAUCAQAxggLMMIICyAIBADCBrzCBoTELMAkG
A1UEBhMCUFQxFzAVBgNVBAoTDkdydXBvcHR3ZWIuY29tMR4wHAYDVQQLExVHcnVw
b3B0d2ViLmNvbSBTU0wgQ0ExHjAcBgNVBAMTFUdydXBvcHR3ZWIuY29tIFNTTCBD
QTE5MDcGA1UEDRMwaHR0cDovL2NhLmdydXBvcHR3ZWIuY29tLyBmb3IgbW9yZSBp
bmZvcm1hdGlvbnMuAgkAmyOqztYz9YcwDQYJKoZIhvcNAQEBBQAEggIA33/pVGUv
wLgUo3GkICaPYdEoqZyYXWmqhzmCHbNT++RAPTotiGT9x0FC6VPys7Cj3/98L0WI
qbjy8e1oQkc5xy1ITKe+AagVmxogZBPZehsraBQQkHNOw9rm0u+HtNRCzqzAJ5fR
ywO4bfohyHF6wYvt0Z8QQUwRuzDLZAzlLobBRTSSu8RJVMdLIIjwJPDPQHNcDxs8
ouVak8hYPW39BEdig5+EelHZjYGcClUVdka/a/4Y2EgsPo9iIHF6q/ZiXJX0N0H6
MSLD5zrZM/LCLxKUkuCcLcyAIXF5BAlMYCLdp0nVL+N+EdiVYlT4w5rkwEgSxNMS
RJJNF+SfT1h0hy284Ku5NhJyU+vemHwuI5cP+fayrh46qDxXO02w8ZwgXT5mzZsW
ACZ/oXxdKYzsNd3M7O03JBWie7ngGg7/07DpvXaoxXxPVxkdCtRQHN+BRMnIZAyD
RBfbM5Tb2bU5wuy35tFzTjXEsEHdRqAp8mSe67awuFKqiUccOYEvkaBFrQXuh4gG
qQhUEDVfRQ4hWWIqUQlEzJA5WyodLn5G+O10GNj0XacX9f4YUE4MJIv5lk++JqDA
v8B1RiqZq6vs4nEnRwjAd8ZYC6d6jImnNyBBp8MPywGHm9E38wa79Cmsqezy1waA
KEBf7mTtom1VbShnDRh6GghferBIRvHjsG8wggEuBgkqhkiG9w0BBwEwHQYJYIZI
AWUDBAEqBBBotMVoZ8Qc7RAJvKRh7FUvgIIBADU92myVnerIR3iszmqLmao8ePr6
GT56nNEU0oNVvic0dfPfveQYBaI8wL58loks3vj2ybSZmziU1mJ0aGV7+klr5fog
PR0ChyCYYOKUSkNzxWdEizet/viGNOWs/91Q0997yy1ctxNrZDFpPRZae99h6BVy
k8PKWTeqES8Obsmo4FTu/CgW3chRxoMQ7zp85WnDj716C4a9iQv9WL5HTCsBqRIa
frz9V+eHegAS0EG6k6cI0w6wRKMLQQJ1YNvDuFbvg53VL1I7RF+79916PM+Mi9vy
D/9NiJBHZAGUllQWsrC1hDVxmt0bAnofQ65DfNjpS+mpWzA3LOXSary45UU========================= SAMPLE-NOT-WORKING.eml : END ========================
Based on the sample above send to me I did the change bellow that makes it work on the e-mail program:
======================== SAMPLE-WORKING.eml : BEGINNING ========================
Return-Path: <[email protected]>
X-Original-To: [email protected]
Delivered-To: [email protected]
From: Carla Ariana <[email protected]>
To: [email protected]
Subject: Blogmania “Acerca daquilo”
Date: Fri, 26 May 2017 15:08:33 +0000
Reply-To: [email protected]
X-Mailer: PHPMailer 5.2.22 (https://github.com/PHPMailer/PHPMailer)
X-WPCF7-Content-Type: text/plain
MIME-Version: 1.0
Content-Disposition: attachment; filename=”smime.p7m”
Content-Type: application/x-pkcs7-mime; smime-type=enveloped-data; name=”smime.p7m”
Content-Transfer-Encoding: base64MIIEGAYJKoZIhvcNAQcDoIIECTCCBAUCAQAxggLMMIICyAIBADCBrzCBoTELMAkG
A1UEBhMCUFQxFzAVBgNVBAoTDkdydXBv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ChyCYYOKUSkNzxWdEizet/viGNOWs/91Q0997yy1ctxNrZDFpPRZae99h6BVy
k8PKWTeqES8Obsmo4FTu/CgW3chRxoMQ7zp85WnDj716C4a9iQv9WL5HTCsBqRIa
frz9V+eHegAS0EG6k6cI0w6wRKMLQQJ1YNvDuFbvg53VL1I7RF+79916PM+Mi9vy
D/9NiJBHZAGUllQWsrC1hDVxmt0bAnofQ65DfNjpS+mpWzA3LOXSary45UU========================= SAMPLE-WORKING.eml : END ========================
Forum: Plugins
In reply to: [WP PGP Encrypted Emails] Accept also S/MIME keysI have just tested S/MIME (for now) to send a form from web site to the admin e-mail and I find my first problem:
I’ve tested the 0.6.2 and is not working properly for me when I received the messages encrypted to the admin from a contact form.
I have found why it didn’t properly decrypts in the e-mail software, your software is sending the e-mail with the following before the encrypted content:
============= BEGIN =============
X-WPCF7-Content-Type: text/plain
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8MIME-Version: 1.0
Content-Disposition: attachment; filename=”smime.p7m”
Content-Type: application/x-pkcs7-mime; smime-type=enveloped-data; name=”smime.p7m”
Content-Transfer-Encoding: base64
============= END =============I have change this to:
============= BEGIN =============
X-WPCF7-Content-Type: text/plain
MIME-Version: 1.0
Content-Disposition: attachment; filename=”smime.p7m”
Content-Type: application/x-pkcs7-mime; smime-type=enveloped-data; name=”smime.p7m”
Content-Transfer-Encoding: base64
============= END =============And the message was properly open.
The problem is with the string:
Content-Type: text/plain; charset=UTF-8
If it is removed from there, the message opens properly.
I will continue testing after this is corrected.Forum: Plugins
In reply to: [WP PGP Encrypted Emails] Accept also S/MIME keysHi Meitar!
Thanks to willhowells and you Meitar for adding the support for S/MIME in the 0.6.0 version!I will test the S/MIME feature in the most recent version 0.6.1 at this time, and I will give the feedback on it soon, about errors or things that can be improved if any.
Forum: Plugins
In reply to: [WP PGP Encrypted Emails] Accept also S/MIME keysThat is a great news! Thanks to the user willhowells at github for the work.
I hope that eventually you can integrate the code into the plugin after all quality assurance.Forum: Plugins
In reply to: [VigilanTor] use a better/ different listHere the “Every hour” never works, not in this version, and also in the previous version it also didn’t work, but I tested the 10 and 30 minutes and it works properly… isn’t anything wrong on the code?
At least a real cron in the hosting company I have the web site is problematic because it can only be done once every hour and I need to program individually to every hour, the control panel is a custom made by company it self.
Thanks for the work. Yes, many VPN company’s don’t offer reverse hostname, but some do and can be added more easily in add-hoc style. Adding the IPs mannually is a pain, but can be made in the .htaccess or in your plugin if you add support for that of course.
Thanks for your good work =)
Forum: Plugins
In reply to: [VigilanTor] use a better/ different listThe update list function every 1 hour is not working! The 10 minutes works fine, so it is something in the 1 hour that is missing (maybe in file “vigilantor.php”):
$this->_updateFrequencies = array(
‘_10m’ => array(‘interval’ => 600, ‘display’ => __(‘Every 10 minutes’)),
‘_20m’ => array(‘interval’ => 1200, ‘display’ => __(‘Every 20 minutes’)),
‘_30m’ => array(‘interval’ => 1800, ‘display’ => __(‘Every half hour’)),
‘_60m’ => array(‘interval’ => HOUR_IN_SECONDS, ‘display’ => __(‘Every hour’)),
‘_120m’ => array(‘interval’ => HOUR_IN_SECONDS * 2, ‘display’ => __(‘Every 2 hours’)),
‘_360m’ => array(‘interval’ => HOUR_IN_SECONDS * 6, ‘display’ => __(‘Every 6 hours’)),
);seems like in 60 minutes should be:
‘_60m’ => array(‘interval’ => HOUR_IN_SECONDS * 1, ‘display’ => __(‘Every hour’)),I’m correct?
- This reply was modified 8 years, 3 months ago by Linmp. Reason: added "vigilantor.php" page indication
Forum: Plugins
In reply to: [VigilanTor] use a better/ different listSo, hopefully, it should be more accurate now… I will update and test =)
I understand… but it would be nice to have that option, why add another plugin or edit .htaccess if it can be done all in the same place. Maybe just put a warning that entering domains may make the web page take longer to load.
Forum: Plugins
In reply to: [WP PGP Encrypted Emails] Accept also S/MIME keysYou’re welcome. I hope they are useful. If not, at least I tried =)
Forum: Plugins
In reply to: [WP PGP Encrypted Emails] Accept also S/MIME keysThanks for accepting the suggestion as valid.
I’m not a programmer, so I don’t know if this may help you achieve the objective or not:
– https://www.ads-software.com/plugins/smime/ some S/MIME plugin, maybe you can inspire in the code.– https://php.net/manual/en/function.openssl-pkcs7-encrypt.php , https://php.net/manual/en/function.openssl-pkcs7-sign.php and https://php.net/manual/en/openssl.ciphers.php PHP itself supports S/MIME including advanced encryption.
I hope at least one of this may help you, if not, at least I tried =)
Forum: Plugins
In reply to: [SimpleSecure] New Types of formsI have that interest, it would be very nice to be able to create different forms, in the same wordpress web site, for several proposes.
Also a major point is, if it is possible to send file(s) trough the form (person can define what kind of extensions allowed and their size), and then the SimpleSecure do it’s magic and from their it goes to the e-mail securely.
But have the possibility to attach different files (one for their photo, other for ID, other for the pdf file signed, etc.)Thanks for the work!
Forum: Plugins
In reply to: [SimpleSecure] Include captcha?I agree, adding captcha, read “reCAPTCHA”, would be very nice… I have a online form for almost 3 years… and not a single spam message! In my case it was a formmail altered version where I added the reCAPTCHA and since then no more problems their.
Could not be enable by default, but if needed…