lovingboth
Forum Replies Created
-
Thanks.
Ah ha, doing a search of Stripe’s documentation – which I shouldn’t need to do, but I am blaming this one on Stripe – reveals that you can turn off the Link ‘feature’ at dashboard.stripe.com/settings/payment_methods
I’d still like the misleading message about future payments to go though.
One thing that’s gone missing from the old one is the option not to ask for postcode details.
I’d prefer not to have to ask for those too, but I am more forgiving about that.
I wonder if this is the same thing I think would be useful: ‘send this submitted form to (email address field from the form)’.
Obviously (to me) this wouldn’t be done as automatically on submission, or it’d be used for spamming people, but it would be really useful.
Yeah, I tthought so.
Just in case there is a database backup from the right time, where are forms stored in it?
Forum: Plugins
In reply to: [footnotes] Replacement plugin that uses syntax.The syntax I love(d) was the ((footnote)) one.
Incredibly simple, incredibly useful.
Feeling less snarky and more embarrassed – this turns out to be another WP change breaking the script I use to do most of the work, and an older version was being installed.
Not complaining about that change, as the bit the script was relying on in one bit was never guaranteed not to change, it just hadn’t for many many years.. until it did at some point between the last install I did and this time.
As I say, the official system requirements at https://wordpress.org/about/requirements/ are ‘PHP 7.4 or later’, not ‘PHP 7.4 or 8.0 (only)’ or – given that PHP 8.0 support is still tagged as ‘beta’ on the link you give – ‘PHP 7.4 (only)’.
It has been over a year since the release of PHP 8.1, and PHP 7.4 has been out of support for months. At this rate, by the time this is fixed, PHP 8.0 will be out of support too.
If I sound snarky, it is because I spent over an hour last night working out why an automated process that has worked for over fifteen years did not work this time.
- This reply was modified 3 years ago by lovingboth.
I have a script to do all the bits that you’re asking me to do manually: setup the datatbase passwords, use the secret key generator to replace the salt example lines, enable core updates, fix the URL so the user can’t break their system by editing the settings, preload some plugins etc etc etc.
Yes, I know why the table does not exist. But on PHP 7.4 (and quite possibly 8.0) the mysqli_query does not generate a fatal error and WordPress goes ‘Oh, this is a new installation’ and copes fine.
With PHP 8.1 here, it falls over with the fatal error unless I manually edit the core WP file to tell it not to.
The browser console did earlier reveal that the theme was trying to include some of its CSS via http rather than https and the browser was having none of that, so thanks for that reminder!
Ah ha – the browser console didn’t say much..
21:53:49.468 XHRPOSThttps://example.com/wp-admin/admin-ajax.php [HTTP/1.1 500 Internal Server Error 183ms].. but the server’s log files reveal that the problem is that Forminator assumes you have the PHP Curl module installed, and it wasn’t:
[Thu Mar 24 22:25:50.003322 2022] [proxy_fcgi:error] [pid 929:tid 140708547647232] [client 82.5.0.165:54758] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function curl_version() in /home/user/public_html/wp-content/plugins/forminator/library/external/src/Forminator/Stripe/HttpClient/CurlClient.php:85\nStack trace:\n#0 /home/user/public_html/wp-content/plugins/forminator/library/external/src/Forminator/Stripe/HttpClient/CurlClient.php(73): Forminator\\Stripe\\HttpClient\\CurlClient->initUserAgentInfo()\n#1 /home/user/public_html/wp-content/plugins/forminator/library/external/src/Forminator/Stripe/HttpClient/CurlClient.php(34): Forminator\\Stripe\\HttpClient\\CurlClient->__construct()\n#2 /home/user/public_html/wp-content/plugins/forminator/library/external/src/Forminator/Stripe/ApiRequestor.php(521): Forminator\\Stripe\\HttpClient\\CurlClient::instance()\n#3 /home/user/public_html/wp-content/plugins/forminator/library/external/src/Forminator/Stripe/ApiRequestor.php(362): Forminator\\Stripe\\ApiRequestor->httpClient()\n#4 /home/user/public_html/...', referer: https://example.com/wp-admin/admin.php?page=forminator-settings§ion=paymentsInstall that, and it’s worked.
(This also happens if I use the test keys published at stripe.com/docs/keys when not logged in.)
I can install it on another site on another server. Both have the same version of WP installed (5.9) but the one it doesn’t install on has Debian with PHP 7.0, and the one it does has Ubuntu 20.04 with PHP 7.4..
.. however the minimum PHP version is said to be “5.4 or higher”.
add_submenu_page( 'edit.php?post_type=bafg', //$parent_slug __( 'Settings', 'bafg-pro' ), //$page_title __( 'Settings', 'bafg-pro' ), //$menu_title 'manage_options', //$capability 'bafg_settings', //$menu_slug 'bafg_settings_page_callback', //$function 3, );Is the comma after the 3 the issue, or is there something missing after it?