• Hello,

    Thank you for your very nice plugin, which i really like!
    I have tried it today and everything is perfect, except that i can’t generate the glossary index on my wordpress 6.6.1.
    When i create an article or a page and try to include the tag [tooltip_glossary], save button is telling that there is an error, the page can’t be saved. I have tried several times on an article or on a page and the problem is always present.

    The web server show the problem on that command with http code “500”:

    “POST /blog/wp-json/wp/v2/pages/229?_locale=user HTTP/1.1” 500 2819 “https://XXXXXXXXXXX/blog/wp-admin/post-new.php?post_type=page” “Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0”

    Are you aware of a specific problem with your plugin and this specific worpdress version?

    Thank you for your help

    Renaud

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter renaudgarelli

    (@renaudgarelli)

    Here are the debug info that my webserver is loging when the error is generated :

    [Thu Aug 15 19:46:07.866311 2024] [php:warn] [pid 450:tid 450] [client 212.83.136.217:0] PHP Warning:  Trying to access array offset on value of type bool in /var/www/html/blog/wp-content/plugins/bluet-keywords-tooltip-generator/glossary-shortcode.php on line 20, referer: https://XXXXXXXXXXX/blog/wp-admin/post.php?post=234&action=edit
    [Thu Aug 15 19:46:07.866365 2024] [php:error] [pid 450:tid 450] [client 212.83.136.217:0] PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /var/www/html/blog/wp-content/plugins/bluet-keywords-tooltip-generator/glossary-shortcode.php:20\nStack trace:\n#0 /var/www/html/blog/wp-includes/shortcodes.php(434): tltpy_glossary(Array, '', 'tooltip_glossar...')\n#1 [internal function]: do_shortcode_tag(Array)\n#2 /var/www/html/blog/wp-includes/shortcodes.php(273): preg_replace_callback('/\\\\[(\\\\[?)(toolti...', 'do_shortcode_ta...', '\\n<p><code>[tool...')\n#3 /var/www/html/blog/wp-includes/class-wp-hook.php(324): do_shortcode('\\n<p><code>[tool...')\n#4 /var/www/html/blog/wp-includes/plugin.php(205): WP_Hook->apply_filters('\\n<p><code>[tool...', Array)\n#5 /var/www/html/blog/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1871): apply_filters('the_content', '<!-- wp:paragra...')\n#6 /var/www/html/blog/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(958): WP_REST_Posts_Controller->prepare_item_for_response(Object(WP_Post), Object(WP_REST_Request))\n#7 /var/www/html/blog/wp-includes/rest-api/class-wp-rest-server.php(1230): WP_REST_Posts_Controller->update_item(Object(WP_REST_Request))\n#8 /var/www/html/blog/wp-includes/rest-api/class-wp-rest-server.php(1063): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/wp/v2/pages/(?...', Array, NULL)\n#9 /var/www/html/blog/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch(Object(WP_REST_Request))\n#10 /var/www/html/blog/wp-includes/rest-api.php(420): WP_REST_Server->serve_request('/wp/v2/pages/23...')\n#11 /var/www/html/blog/wp-includes/class-wp-hook.php(324): rest_api_loaded(Object(WP))\n#12 /var/www/html/blog/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)\n#13 /var/www/html/blog/wp-includes/plugin.php(565): WP_Hook->do_action(Array)\n#14 /var/www/html/blog/wp-includes/class-wp.php(418): do_action_ref_array('parse_request', Array)\n#15 /var/www/html/blog/wp-includes/class-wp.php(813): WP->parse_request('')\n#16 /var/www/html/blog/wp-includes/functions.php(1336): WP->main('')\n#17 /var/www/html/blog/wp-blog-header.php(16): wp()\n#18 /var/www/html/blog/index.php(17): require('/var/www/html/b...')\n#19 {main}\n thrown in /var/www/html/blog/wp-content/plugins/bluet-keywords-tooltip-generator/glossary-shortcode.php on line 20, referer: https://XXXXXXXXXXX/blog/wp-admin/post.php?post=234&action=edit
    212.83.136.217 [15/Aug/2024:19:46:07 +0000] "POST /blog/wp-json/wp/v2/pages/234?_locale=user HTTP/1.0" 500 3505 "https://XXXXXXXXXXX/blog/wp-admin/post.php?post=234&action=edit" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
    Plugin Author Jamel.Z

    (@lebleut)

    Hello @renaudgarelli

    and thank you for the error report

    Hopefully I will check it and let you know ASAP

    Thread Starter renaudgarelli

    (@renaudgarelli)

    Thank you very much Jamel for your very quick answer ??
    I truly think your plugin is the best glossary available, what’s why i would love to go with it!

    If it can help you here is my config :

    – wordpress latest official container (wordpress 6.6.1 FR)
    – container OS : debian 12.6
    – php version : PHP 8.2.21

    Please keep me posted if i can provide anything else to help you!

    Thank you,

    Renaud

    Plugin Author Jamel.Z

    (@lebleut)

    Hi back @renaudgarelli

    I see the problem and it will be fixed in the next update hopefully and for now as quick fix, you should just add a label in the Glossary/”select a family” input like show in this screenshot :

    https://app.screencast.com/1Sm5qtgvjqixJ

    let me know if that helps,

    regards,

    Jamle

    Thread Starter renaudgarelli

    (@renaudgarelli)

    Hi Jamel,

    Thank you so much for your quick answer!
    Yes i can confirm that the quick fix you provided did the job : i am able to generate the glossary menu without any error ??

    Thank you very much and have a good day,

    Renaud

    Plugin Author Jamel.Z

    (@lebleut)

    Great, with pleasure ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.