sphakka
Forum Replies Created
-
Here are the plugins (‘no-comment’ just disable the blog’s comment/ping, etc. functions — no JS installed. Code here):
$ wp plugin list
+------------------------+----------+--------+---------+----------------+-------------+
| name | status | update | version | update_version | auto_update |
+------------------------+----------+--------+---------+----------------+-------------+
| cf7-conditional-fields | active | none | 2.4.15 | | off |
| contact-form-7 | active | none | 5.9.8 | | off |
| hivepress | active | none | 1.7.7 | | off |
| hivepress-messages | active | none | 1.3.0 | | off |
| loco-translate | active | none | 2.6.11 | | off |
| really-simple-captcha | active | none | 2.3 | | off |
| wp-rollback | active | none | 2.0.7 | | off |
| no-comment | must-use | none | | | off |
+------------------------+----------+--------+---------+----------------+-------------+I’ll try to deactivate some plugins selectively and report.
No other theme installed apart from mine which is a child of latest ListingHive and just uses some CSS and PHP tweaks. The functions.php is here.
By further debugging, I discovered that
PHPMailer\SMTP()
has an option to specify the debug output format. Guess what? I set this to$phpmailer->Debugoutput = 'error_log';
in the
phpmailer_init
hook, and… bingo! CF7 worked again!? There’s definitely some weird interaction with WP/PHP’s logging subsystem because:- Disabling SMTP debugging (d’oh, I should have tried it before!) restores correct CF7 functioning.
- With SMTP debugging set to
SMTP::DEBUG_LOWLEVEL
, I can’t get the full log, only an excerpt like:
[27-Aug-2024 14:35:15 UTC] Sending with mail()
[27-Aug-2024 14:35:15 UTC] Sendmail path: /usr/sbin/sendmail -t -i
[27-Aug-2024 14:35:15 UTC] Envelope sender:code
...So, I have a workaround, but would appreciate some feedback from experts. There might still be a bug with CF7.
BTW, this is happening on a shared hosting instance, so I don’t have full access to the server logs.
Oops, here it is: https://secondemain.cas-geneve.ch/contact/
Versions:
- WP-6.61
- CF7-5.9.8
- HivePress-1.7.7
- ListingHive-1.2.9
- PHP-8.2
I also added
wp_mail_failed
andwp_mail_succeded
hooks to log errors and the sent mail’s content, but nothing is logged. It looks like those actions are never triggered: possibly$phpmailer->send()
never returns?Forum: Plugins
In reply to: [Theater for WordPress] kijkwijzer alt text translationsHere me back after some hacking (pretty new to WP dev).
Actually putting the Kijkwijzer in an upstream theme template prevents proper integration with the production’s contents — it can only be shown before or after the whole production content.
Thus, I implemented it inside the Kijkwijzer plugin itself via a filter hooked to the
wpt_production_page_content()
. Since I was at it, also added admin options to toggle the display (for now in a fixed place) and to use German/Swiss FSK icon variants.Finally, I refactored a bit the code to handle translations.
Jeroen, if you’re interested, I can provide offline the code and extra icons.
Forum: Plugins
In reply to: [Theater for WordPress] kijkwijzer alt text translationsI see, thanks!
BTW, is there a way to show icons on production pages (without manually adding shortcodes)? Maybe I’m missing something, but I don’t see any template for productions…
Forum: Plugins
In reply to: [Theater for WordPress] kijkwijzer alt text translationsThanks for the quick feedback!
The Kijkwijzer extension is in Dutch because it is the Motion picture rating system of The Netherlands.
I know, but the icons are awesome ??
Indeed, I’m in Switzerland which uses Germany’s FSK plus some adjustments. So I’d just need an extra “18” icon, which I can make myself: which font did you use?