jansass GmbH
Forum Replies Created
-
…and its back:
Fatal error: Uncaught Error: Call to undefined method WP_Error::get_results() in /usr/www/client-install/wp-content/plugins/poll-creator-pro/build/vote/render.php:69 Stack trace: #0 /usr/www/client-install/wp-includes/blocks.php(572): require() #1 /usr/www/client-install/wp-includes/class-wp-block.php(599): {closure}() #2 /usr/www/client-install/wp-includes/class-wp-block.php(579): WP_Block->render() #3 /usr/www/client-install/wp-includes/class-wp-block.php(579): WP_Block->render() #4 /usr/www/client-install/wp-includes/blocks.php(2383): WP_Block->render() #5 /usr/www/client-install/wp-includes/blocks.php(2466): render_block() #6 /usr/www/client-install/wp-includes/class-wp-hook.php(341): do_blocks() #7 /usr/www/client-install/wp-includes/plugin.php(205): WP_Hook->apply_filters() #8 /usr/www/client-install/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php(656): apply_filters() #9 /usr/www/client-install/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php(460): WP_REST_Revisions_Controller->prepare_item_for_response() #10 /usr/www/client-install/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php(318): WP_REST_Autosaves_Controller->prepare_item_for_response() #11 /usr/www/client-install/wp-includes/rest-api/class-wp-rest-server.php(1292): WP_REST_Autosaves_Controller->get_items() #12 /usr/www/client-install/wp-includes/rest-api/class-wp-rest-server.php(1125): WP_REST_Server->respond_to_request() #13 /usr/www/client-install/wp-includes/rest-api.php(594): WP_REST_Server->dispatch() #14 /usr/www/client-install/wp-includes/rest-api.php(2981): rest_do_request() #15 [internal function]: rest_preload_api_request() #16 /usr/www/client-install/wp-includes/block-editor.php(762): array_reduce() #17 /usr/www/client-install/wp-admin/edit-form-blocks.php(114): block_editor_rest_api_preload() #18 /usr/www/client-install/wp-admin/post.php(187): require(‘/usr/www/users/…’) #19 {main} thrown in /usr/www/client-install/wp-content/plugins/poll-creator-pro/build/vote/render.php on line 69
Any news here ?
Actually, this is not correct. Correct is that synced (!) patterns should use the same ID, unsynced should create NEW ID upon insertion, else they would refer to the original (synced). So your plugin need to hook to insertBlocks() https://developer.ww.wp.xz.cn/block-editor/reference-guides/data/data-core-block-editor/
Forum: Plugins
In reply to: [Passwordless Login] Duplicate Shortcode@alexandrubodea Hey, any news on this ?
Correct, thanks a lot!
Hey,
i think i found it: when adding “Vote” to a page manually, it works (each page has its own vote counter). When adding it by an unsynced reuasable, it does not work (each page has the SAME counter). Thats because you encode it using “pollClientId”:”896c7de4-ff68-4a6c-9806-…
Is that the same for all other functions as well? Cant i use them as non-synced reusables?
Marc
Forum: Plugins
In reply to: [301 Redirects - Redirect Manager] Redirects + WPMLAlright, thanks anyway. Quickfix would be: remove doubleslashes, –they are not illegal, but seldomly used in real life…– They are illegal as per RFC (only allowed to separate protocol from URL).
- This reply was modified 11 months, 3 weeks ago by jansass GmbH.
Forum: Fixing WordPress
In reply to: Design > Editor > Edit Template > Save removes custom wp:patternWell done, ticket closed! Thanks a lot!
Forum: Fixing WordPress
In reply to: Design > Editor > Edit Template > Save removes custom wp:pattern…So far i understand: when using built in template editor, patterns no longer delivery dynamic content (as before 6.4), but instead, the result (output) from those patterns is embedded to templates. So i cant use patterns along with eg. PHP to deliver eg the current time.
Right ?
Forum: Fixing WordPress
In reply to: Design > Editor > Edit Template > Save removes custom wp:patternThis is a compare of after resetting (left) and should-be (right): https://securesha.re?#u=2e5d855e28ec9553be7e012da8d332dd.bin&p=9KSlzMhGDZkEsNM9Hd_UKnSZvskKwEIgAI04zaAIxyo
Forum: Fixing WordPress
In reply to: Design > Editor > Edit Template > Save removes custom wp:patternIn my eyes this does not make sense and is not implemented consistently: page.html (removes all patterns and displays none after first save) behaves differently than eg single-post.html (keeps some patterns and display all after first save).
And since i need the pattern so serve as template (there are variables in it) it does not make sense to parse them and store the output, since the context when saving is “backend with admin user” and not “frontend with any given other user)”…
i fully understand your explanation – it explains everything – but it does not make sense, right ?
Options from here:
- which is why i am struggling: patterns stopped behaving somewhen in the past and were never intended to be used as templates. so i need to rewrite it all to blocks ??
- i need to make WP use my files, not the interpreted DB version. And probably thats what i want: how do i delete page editor templates in DB?
- i need to set my patterns to be REUSABLE (syncable) but there is no option to do this by file inclusion in theme, right ?
- This reply was modified 1 year, 1 month ago by jansass GmbH.
- This reply was modified 1 year, 1 month ago by jansass GmbH.
- This reply was modified 1 year, 1 month ago by jansass GmbH.
- This reply was modified 1 year, 1 month ago by jansass GmbH.
Forum: Fixing WordPress
In reply to: Design > Editor > Edit Template > Save removes custom wp:patternThank you very much for your indepth explanation, its a good compilation of the most important pieces of information on this topic on one page! I only have one question: How do i delete the edited version from DB? I WP Backend > Editor i see a “reset” next to each template, which does not reset the content to the file version (and not to the default WP one). It does something, but i cant even guess where that content originally came from.
To deliver a more concise example this is how page.html looks in my child theme (stripped down to the important info to make i easy to understand). Before save:
<!– wp:template-part {“slug”:”header”,”tagName”:”header”,”theme”:”twentytwentythree-child”} /–>
<!– wp:pattern {“slug”:”twentytwentythree/ad_management_above”} /–>
<!– wp:post-content {“layout”:{“type”:”constrained”}} /–>
<!– wp:template-part {“slug”:”footer”,”tagName”:”footer”,”theme”:”twentytwentythree-child”} /–>After save:
<!– wp:template-part {“slug”:”header”,”tagName”:”header”,”theme”:”twentytwentythree-child”} /–>
<!– wp:post-content {“layout”:{“type”:”constrained”}} /–>
<!– wp:template-part {“slug”:”footer”,”tagName”:”footer”,”theme”:”twentytwentythree-child”} /–>…the italic line is missing. Instead of this pattern i could any other like:
<!– wp:pattern {“slug”:”twentytwentythree/post-meta”} /–>and after save, this is not deleted but serialized to plain, static HTML (as post-meta.html delivers it).
So, just to be precise, i am talking about registered patterns, not blocks as defined here: https://developer.ww.wp.xz.cn/themes/patterns/registering-patterns/#:~:text=WordPress%20will%20recognize%20any%20pattern,the%20top%20of%20a%20file.
…and opted for the recommended path to simply add those to /patterns (to make them auto-register). but exactly those are getting mangled or removed…
[events_calendar scope=’future’] is nearly what i was searching for.
But “future” is about the only parameter that works. “this-week” doesnt such like any other described here: https://wp-events-plugin.com/documentation/event-search-attributes/ and even custom event scopes from the here https://wp-events-plugin.com/documentation/tutorials/create-your-own-event-scope/ dont work… Well
- This reply was modified 1 year, 7 months ago by James Huff.
- This reply was modified 1 year, 7 months ago by jansass GmbH.
Thanks, but according to docs, bookings=1 includes or 0 excludes events with bookings enabled. If “user” is supplied, bookings belonging to the current user will be returned.
Since even past events were bookable (but not ARE bookable today) the result is the same: i can see all events in the same color, today and on have “book”, before not.
Forum: Plugins
In reply to: [CAOS | Host Google Analytics Locally] First/Third Party CookieThats exactly what it though, so there is no real need to user measurement protocol (with all the disadvantages in caching, …), right?