Knut Sparhell
Forum Replies Created
-
Forum: Plugins
In reply to: [Form Block] How to use hidden fields?<!-- wp:form-block/input -->
<div class="wp-block-form-block-input form-block__element is-type-hidden"><input name="test" type="hidden" class=""/></div>
<!-- /wp:form-block/input -->There is no way to access a text field to enter av value since it has no visual representation in the editor.
Forum: Plugins
In reply to: [Form Block] Suggestion: Action on submissionExcellent. Then this plugin will be well suited for developers, too. I’ll point that out in my review, coming soon.
Forum: Plugins
In reply to: [Form Block] Select with zero valueThank you for your quick response! This is promising.
Forum: Plugins
In reply to: [Form Block] Suggestion: Array of radiosAh, found it now. Thanks. Had a feeling I had missed something.
That seems to be a simple container with a legend, describing the set. Thats better, I can remove the paragraph above.
But ideally, it could be a variant of a group, if such is possible. A group may be transformed to different layouts, like a row. So I now group my input fields inside the fieldset, transform it to a row to fit my layout preference. And still have to ensure the input names are exactly the same.
Forum: Plugins
In reply to: [Add to Home Screen & Progressive Web App] % sign in translatable stringsTip: Use real printf placeholders with
__( sprintf( 'My %s translatable string here', $arg ), 'domain' ), or usestr_replacewith non printf placeholders, like{site_name}or#site_name. You may support old and new in a (long) transition period for en_US sites, since they are also stored in the settings.Forum: Plugins
In reply to: [Form Block] Fatal error upon delete form submissionMy suggested fix is probably not correct.
$itemshould stay an object. The error is that it uses$item['id']on line 29, when it should be$item->id.- This reply was modified 7 months, 1 week ago by Knut Sparhell.
Forum: Plugins
In reply to: [Worldline Online Checkout] Refund not allowedAdditional info: In the setting “User role for access to capture/refund/delete” teh “Shop Manager” role is selected. The problem occurs for the Administrator.
Thank you @teknikjg for the suggestion. The current logic is weird. I changed || to && and it works. This will limit the access to users with either the designated role or being an administrator, actually only returns error when user does not have the designated role and also not being an administrator.
The filter is added in
functions.phpof a child theme. A contact form is placed on a page by using the from block. When viewed the $rendered_html used to be filtered by a simple PHP function, adding some extra html to it before returning it for display. Downgrading Jetpack makes it work as before. Nothing else is changed. Example to test it:add_filter( 'grunion_contact_form_field_html', function( string $rendered_html, string $field_label, ?string $id ): string {
return 'START' . $rendered_html . 'END';}, 10, 3 );The above emits/logs an argument type errror for
$rendered_html(null). The form is displayed as usual, without the intended modifications.Forum: Plugins
In reply to: [WP Accessibility] Download and Update doesn´t workZIP file not found (404)
Forum: Plugins
In reply to: [Public Post Preview] The link expires after few seconds with v 3.0Thank you for the quick fix!
Forum: Plugins
In reply to: [Public Post Preview] The link expires after few seconds with v 3.0If it mayn help, I added this code to
mu-plugins/ppp.php\add_filter( 'ppp_nonce_life', static function( int $life ): int {
\error_log( '[' . \current_filter() . '] '. $life );
return 100000 * $life;
} );and it logs
[ppp_nonce_life] 48, and the link works again.It seems this filter makes the link last about 1 hour. Tested this on three sites with same result.
Forum: Plugins
In reply to: [Security Header Generator] Menu item “Security Headers” not visibleI’m sorry for the bad wording, “dictating” was not the intent. My apologies.
I have started deactivating since there is now no way to edit the settings when things break on the front.
Forum: Plugins
In reply to: [Security Header Generator] Menu item “Security Headers” not visibleSame problem. This has to be fixed ASAP.
Works on mulitisite, however.
- This reply was modified 1 year, 10 months ago by Knut Sparhell.
- This reply was modified 1 year, 10 months ago by Knut Sparhell.
I have now identified that some servers return
nullfor UAPI functions that are removed, or not yet implemeted, in the actual version.Please try version 5.2.9 and see if it helps.
Hmm, are any feature the plugin offers working? Can you visit cPanel Email (Alle Email Adresses) in your wp-admin?
- It seeems your site is actually hosted on cPanel. I can see that on https://albaemail.com:2083/
- After logging in, are there applets to manage Email accounts and/or Forwarders? cPanel Version (see Sever Information)?
- If you create an app token there, and (temporarily) add
const WF_CPANEL_API_TOKEN = 'paste-your-api-token';
to yourwp-config.php, do that help? (If so,shell_execPHP function is crippeled or disabled in an odd way the plugin could not detect before using it. But the plugin can work without it, view the Manage Tokens submenu page. If you add a new token there, you can remove the temp config line above.)
If the above does not help, and it’s of no use, just uninstall it for now and check back later.
I will, however, in the next release, try to further protect against possible fatals, emit an decent error message, and let it go on doing nothing. But that will probably not help you, unless we can sort out what’s happening, and if this can be expected in a healthy cPanel and PHP based hosting environment.