Roy Orbitson
Forum Replies Created
-
Yes, I see. Too much processing of those fields occurs before the
wpcf7_mail_componentshook. The downside of using onlywpcf7_before_send_mailis that it fires before most additional mails get attached. You could processmailandmessagesproperties as you do now, but also attach towpcf7_additional_mailthen process all the message arrays present in that filtered array, includingmail_2. That should preserve your processing of all the properties you do now and offer attachment processing to the additional messages.Do you agree that it makes sense to extend your conditional tag processing to all messages?
I used
8for the priorities in mine so that the additional messages would be available to any other code that attaches with the default priority (10), but also to allow modification/removal at priority9. You could increase your chances of catching all messages if you use a very late priority, like(PHP_INT_MAX - (PHP_INT_MAX % 2)) / 2.Forum: Plugins
In reply to: [More Mails for CF7] Conditional Fields CF7 plugin not working with More MailYou may need to consider writing custom code, e.g. your own plugin, as whether to send mail isn’t controlled by just deleting the
To:address of an email. You should be removing unnecessary messages completely by attaching to thatwpcf7_additional_mailhook.Forum: Plugins
In reply to: [More Mails for CF7] Conditional Fields CF7 plugin not working with More MailForum: Plugins
In reply to: [More Mails for CF7] Conditional Fields CF7 plugin not working with More MailThis is not something I can address. Supporting more than the default two emails is completely up to the author of the Conditional Fields for CF7.
After a cursory review of that plugin’s code, I see no use of the
wpcf7_additional_mailhook which could alert it to the presence of other messages, and it appears to have the expected mail properties hard-coded.The thing is that any plugin can use that hook to send additional mail along with a form submission. It may not be easy it for Conditional Fields to apply its extra logic onto such messages, or even know whether it should.
Since I haven’t heard back from you, and this is extremely unlikely to be a fault in this plugin, I’m going to mark this resolved. If it were occurring for multiple users, and it didn’t look like a simple server config issue, I would investigate further. You don’t need to test with this plugin, the following code should be enough to trigger the same issue:
<?php header('Content-Type: text/plain'); var_dump(file_get_contents('https://mysite.gr/wp-json/'));Hi @pexlechris,
The first error line you’re seeing seems to indicate the kind of issue this plugin is encountering. In order to isolate the Adminer program from WordPress, and vice versa, but still dynamically check for authentication, this plugin runs a background request to WordPress’ JSON API as if it were you. This request is secured by the same HTTPS protocol as the original request by your browser, even though it should only be a machine-local request.
PHP itself (not specifically this plugin) cannot verify the certificate that’s being used by the web server (Apache/Nginx) when making this local request. This can be caused by knowingly using a self-signed (invalid) certificate, or your web server selecting the incorrect certificate. The latter can happen if your site is only listening on your public IP address, but PHP is connecting to a loopback address, e.g. 127.0.0.1, or something similar. I think you may have a misconfigured server.
You can check what address PHP is trying to connect to with the following code, which will confirm the host name as PHP sees it, the address it will try to connect to by default, and then both the IPv4 and IPv6 records. So save it as a file like
h.phpon your server, then visit it in your browser.<?php header('Content-Type: text/plain'); $h = $_SERVER['HTTP_HOST']; var_dump( $h, dns_get_record($h), dns_get_record($h, DNS_A), dns_get_record($h, DNS_AAAA) );Forum: Plugins
In reply to: [Database Access with Adminer] Could not read credentialsBeat me to it! Thanks.
Forum: Plugins
In reply to: [Database Access with Adminer] Could not read credentialsIt’s still working for me. You’re not trying to save that link directly, by any chance, are you? It should take you to a page with a single file listed.
Forum: Plugins
In reply to: [Database Access with Adminer] Could not read credentialsWant to help me test an updated version? Feel free to compare the contents of the zip file to the stable release version, if you’re at all concerned about its content. The version tag is such that it will be overwritten by the next stable release.
Forum: Plugins
In reply to: [Database Access with Adminer] Could not read credentialsThere might be something more I can try. It normally happens because PHP likes to cache files that are used frequently, which includes one of the special files my plugin creates and renews regularly to ensure that your db credentials are used securely, and not stored or transmitted in ways they shouldn’t be.
This is all to work around an architectural issue in WordPress, which is that it “boots” through the config file (the last line is
require_once ABSPATH . 'wp-settings.php) rather than just including it, like practically every other file-based config system. Otherwise I could just include WP’s config and use its constants without loading WordPress itself.Forum: Plugins
In reply to: [More Mails for CF7] aesthetics issueChanging
innerHTMLremoves any events bound to elements within it. Your changed will also be overwritten the next time you update this plugin. If you’re really keen on changing it, consider changing only text nodes on the DOM.Forum: Plugins
In reply to: [More Mails for CF7] aesthetics issueThe titles are still numbered, the title + number in the explanation paragraph are hard-coded.
Forum: Plugins
In reply to: [More Mails for CF7] aesthetics issueThen the author of CF7 has changed the forms output again. It definitely used to number the forms dynamically (3, 4, …). All my plugin does is repeat the second form as many times as you tell it to. If I made my own copy of their form rather than just using theirs, it could more easily break from any tiny change and I’d have to constantly check mine was compatible. I’m better off leaving it alone, because it’s more important that editing and sending the emails work.
Forum: Plugins
In reply to: [More Mails for CF7] Plugin Not Working after updateThank you for the report. The name of the hook for loading form settings in CF7 was changed.
I have updated this plugin, so try the new version. Hopefully you did not hit Save when your Mail (3) section was empty, and overwrite its existing settings.
If it’s still not loading the extra settings, even after you’ve tried saving new ones, let me know.
Forum: Plugins
In reply to: [Disable Yoast's Structured Data] Need update to WP 5.8If you can provide an example or a link, then I can look at it.