Hello,
I have also a similar problem since the last update: Fatal error caused by this plugin. I can’t access the posts, where I have used maxbuttons,
for example: https://susannes-reisen.de/auf-dem-jakobsweg-durch-die-auvergne/
Thanks for letting us know. We are working on a solution right now, which will be released very soon!
Please check version 9.7.3, this should fix the issues. Thanks for letting us know, and sorry for the trouble!
further informations to the fatal error using maxbuttons since the last update:
WordPress-Version 6.3.1
Aktives Theme: Twenty Sixteen Child (Version 1.0) Aktuelles Plugin: MaxButtons (Version 9.7.3) PHP-Version 8.1.24
Fehler-Details
==============
Ein Fehler vom Typ E_ERROR wurde in der Zeile 954 der Datei /homepages/26/d831906465/htdocs/clickandbuilds/Fernweh/wp-content/plugins/maxbuttons/classes/button.php verursacht. Fehlermeldung: Uncaught TypeError: strpos(): Argument #1 ($haystack) must be of type string, int given in /homepages/26/d831906465/htdocs/clickandbuilds/Fernweh/wp-content/plugins/maxbuttons/classes/button.php:954
Stack trace:
#0 /homepages/26/d831906465/htdocs/clickandbuilds/Fernweh/wp-content/plugins/maxbuttons/classes/button.php(954): strpos()
#1 /homepages/26/d831906465/htdocs/clickandbuilds/Fernweh/wp-content/plugins/maxbuttons/classes/button.php(922): MaxButtons\maxButton->checkDataTags()
#2 /homepages/26/d831906465/htdocs/clickandbuilds/Fernweh/wp-content/plugins/maxbuttons/classes/maxbuttons-class.php(783): MaxButtons\maxButton->shortcode()
#3 /homepages/26/d831906465/htdocs/clickandbuilds/Fernweh/wp-includes/shortcodes.php(395): MaxButtons\maxButtonsPlugin->shortcode()
#4 [internal function]: do_shortcode_tag()
#5 /homepages/26/d831906465/htdocs/clickandbuilds/Fernweh/wp-includes/shortcodes.php(235): preg_replace_callback()
#6 /homepages/26/d831906465/htdocs/clickandbuilds/Fernweh/wp-includes/class-wp-hook.php(310): do_shortcode()
#7 /homepages/26/d831906465/htdocs/clickandbuilds/Fernweh/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#8 /homepages/26/d831906465/htdocs/clickandbuilds/Fernweh/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1864): apply_filters()
#9 /homepages/26/d831906465/htdocs/clickandbuilds/Fernweh/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(569): WP_REST_Posts_Controller->prepare_item_for_response()
#10 /homepages/26/d831906465/htdocs/clickandbuilds/Fernweh/wp-includes/rest-api/class-wp-rest-server.php(1188): WP_REST_Posts_Controller->get_item()
#11 /homepages/26/d831906465/htdocs/clickandbuilds/Fernweh/wp-includes/rest-api/class-wp-rest-server.php(1035): WP_REST_Server->respond_to_request()
#12 /homepages/26/d831906465/htdocs/clickandbuilds/Fernweh/wp-includes/rest-api.php(545): WP_REST_Server->dispatch()
#13 /homepages/26/d831906465/htdocs/clickandbuilds/Fernweh/wp-includes/rest-api.php(2911): rest_do_request()
#14 [internal function]: rest_preload_api_request()
#15 /homepages/26/d831906465/htdocs/clickandbuilds/Fernweh/wp-includes/block-editor.php(743): array_reduce()
#16 /homepages/26/d831906465/htdocs/clickandbuilds/Fernweh/wp-admin/edit-form-blocks.php(77): block_editor_rest_api_preload()
#17 /homepages/26/d831906465/htdocs/clickandbuilds/Fernweh/wp-admin/post.php(187): require('/homepages/26/d...')
#18 {main}
thrown
Could you please help to resolve the error?
thanks,
Susanne
It’s the same with 9.7.3 : the fatal error persits also after installing 9.7.3
Susanne
But I can give some further informations: the posts, I have created with the classic editor don’t have the error, only using the block editor I catch this error. ( I don’t know, if these informations can help – I know nearly nothing about html, CSS and PHP ….)
Susanne
I’ve replicated the problem and will release a fix soon. The cause is having some invalid fields on the shortcode. I don’t know how you fill them out in the editor, but you might want to check them .
Are you using the ‘shortcode’ block or maxbuttons block in Gutenberg? I couldn’t replicate any issues with the maxbuttons block.
Hello,
I use the shortcode block. I create columns with the blog editor . I use one of this columns, wher I insert a shortcode block. Then I do “copy- paste” with a maxbutton, that I have createde in an earlier post and change only the links inside.
Should I do otherwise?
Thanks
Susanne
Hi, There is also a maxbuttons block which might be easier. But if it works for you it’s fine. Can you check the new version and see if it works?
-edit Ah on your website I can see you are using “ tags for the shortcode, but those should be ” ( minor difference but it might change how it works )
Hello,
now it doesn’t give fatal error any more , but the page doesn’t change the content of the shortcode- area to a real MaxButton. ( p.e.: https://susannes-reisen.de/2019-mercantour-gr5-udn-gr53/ ) .
and sorry – where is the difference between the tag “ and the tag ”- and where can I found it? For me on my svreen it looks similar.
Susannne
Did you active the plugin again? Perhaps it got deactivated?
There is a small difference between those, but the cursive ones are only used for writing and the shortcode might not understand it. The correct one (might?) be around the button for the number 2 in top of the keyboard ( not familiar with german keyboards) , they must be straight.
Hello,
uff, you are right ! I missed to reactivate the plugin. Now it works fine. Thank you very much – also for the explication of the difference between the two tags ( ” and ”)
Susanne
My website works fine too now.
Welcome, happy to hear all works fine again!