• Good morning, I have just installed the plugin updated to version 3.6.2 on my WordPress test site (WP version 6.4.2, PHP version 8.2.13). I insert a new snippet but after pressing the save button, I get the error message indicated in the topic (500). In the PHP log I find the following error message:

    AH01071: Got error ‘PHP message: WordPress database error Table ‘wp_popon.OuFhonvO_snippets’ doesn’t exist for query SHOW FULL COLUMNS FROM OuFhonvO_snippets made by require(‘wp-blog-header.php’), wp, WP->main, WP->parse_request, do_action_ref_array(‘parse_request’), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Code_Snippets\\REST_API\\Snippets_REST_Controller->create_item, Code_Snippets\\save_snippet’, referer: https://paolobertinetti.it/wp-test/wp-admin/admin.php?page=add-snippet

    I confirm that the wp_popon.OuFhonvO_snippets table does not exist in the database also after pressing the ‘Settings/Debug/Upgrade Database Table’ button obtaining a “Successfully performed database table upgrade.” message.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    I think the issue here is that your database table prefix contains the . character. We can certainly perform an update to rectify this, but I believe it’s recommended to only use alphanumeric characters and underscores in table names.

    Thread Starter Paolo Bertinetti

    (@mrpro64)

    Hi Shea,

    Thank you for your answer. Table prefix does not contains the “.” character, ‘wp_popon’ is the database name and ‘OuFhonvO_’ is the table prefix.

    Hi All,
    another input to the issue.
    Same error here:
    WordPress: 6.4.2
    Code Snippets: 3.6.2

    AH01215: WordPress database error Table ‘mydbname.wp_snippets’ doesn’t exist for query SHOW FULL COLUMNS FROM wp_snippets made by require(‘wp-blog-header.php’), wp, WP->main, WP->parse_request, do_action_ref_array(‘parse_request’), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Code_Snippets\REST_API\Snippets_REST_Controller->create_item, Code_Snippets\save_snippet, referer: https://example.hu/wp-admin/admin.php?page=add-snippet

    Oksana

    (@qwerty100)

    hello, I have the same error “Could not update snippet. Request failed with status code 500”, when trying to add a piece of PHP code
    php 8.1.23
    WordPress 6.4.2
    Code Snippets 3.6.2

    • This reply was modified 10 months ago by Oksana.

    I had the same issue earlier today, and it stopped when changing from PHP 8.0 to 8.2

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘“Could not update snippet. Request failed with status code 500”’ is closed to new replies.