• Resolved moshe

    (@moshe1111)


    After adding code – the site crashed.
    After attempts to transfer the site to a secure site, it succeeded partially, but soon after, the site collapsed with security error 403.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter moshe

    (@moshe1111)

    After that it was fixed. And probably the problem was because of the storage company.
    But there is another problem. I can’t access the extension to delete the problem code. Because the solution you wrote only helps the extension home page and dashboard home page, but does not help the extension settings page.

    Plugin Author Shea Bunge

    (@bungeshea)

    Hello,

    This issue sounds like it is due to adding malformed or buggy code to the plugin. Unfortunately, we cannot be responsible for the quality of the code that is provided.

    I’m not really sure what you mean in your second post, but perhaps using safe mode would help to allow you to access the dashboard and deactivate problematic snippets.

    • This reply was modified 4 years, 5 months ago by Shea Bunge.

    403 error is access error. Malformed snippet gaves commonly another error.

    This plugin has serious problem relating with deactivating a problematic snippet. Simply it doesn’t work always.

    If user by accident fails deactivating a snippet and activates a snippet, which has the same function, Code snippet doesn’t allow to deactivate the problematic snippet.

    This is extremely big risks for sites, where the user doesn’t have direct database access. IMO this plugin should newer use with other sites as self-maintained sites, if there is not possibility to use phpMyAdmin.

    As far as I know, this is not possible with wordpress.com sites to have direct database access. Then this plugin should newer user with wordpress.com sites.

    Maybe a problematic snippet could deactivating by using safe mode even if it is not possible to deactivate snippet by using the normal deactivate/activate button, which exists in the snippet list. Activating with combined radio button is problematic, because there is always the risk, that activating/deactivating fails. User should wait some seconds to check, if changing has been happened. I have met situations, where I thought that I deactivated a snippet, but didn’t happen. Then I must open cPanel and then phpMyAdmin. I must seach problematic snippet and deactivate it editing single database record.

    Plugin Author Shea Bunge

    (@bungeshea)

    @tapiohuuhaa if you think you have discovered a bug, I would be grateful if you could start a new thread with some examples of what causes it so that I can track down the source and attempt to create a fix.

    Thread Starter moshe

    (@moshe1111)

    1. Using Safe Mode does not open the extension settings to me.
    2. When I delete and reinstall the extension, it did not let me activate the extension with new settings. He simply remembers the old settings and drops the site.
    Do you have any alternate way to completely delete it from the site so I can install it again?

    If the problem relates with invalid code snippet(s) uninstalling and reinstalling doesn’t help at all.

    If you have possibility to direct database access, you can delete unwanted snippet by using you control panel and there phpMyAdmin. If you don’t have direct database access you can’t fix the problem because the data is in the database. Uninstalling and reinstalling doesn’t change the database. That would need an additional option to the plugin. It might be a good idea to have option “delete database table”/ “clear database table” when installing and uninstalling.

    • This reply was modified 4 years, 5 months ago by tapiohuuhaa.
    Thread Starter moshe

    (@moshe1111)

    I have access to the database, but I can’t reset tables, because it’s a live site, and it can’t be reset without damaging any other existing tables.
    If you have advice about how to get to the existing table and delete only it, I would like to know.
    Thank you

    With phpMyAdmin you should be able to clear single table without any changes in other existing tables. I have several times edited single Code Snippet records and sometimes I have deleted some Code snippet record.

    Search wp_(prefix_)snippets

    I don’t figure why you couldn’t edit single table. Anyway if you have active invalid snippet, you must get it deleted or marked as inactive in order to use Code Snippet again.

    You might have inssufficient rights for database tables. Look Manage Priviledges with control panel. In my case this can do by clicking the name of the database.

    • This reply was modified 4 years, 5 months ago by tapiohuuhaa.

    na

    If you can’t fix error by editing wp_(prefix_)snippets table, you can try to fix this error by using safe mode. If you can’t in safe mode delete/inactivate the problematic snippet, then you can’t ever use Code Snippet again.

    Plugin Author Shea Bunge

    (@bungeshea)

    The recommended way to resolve issues with snippets is not to poke around in the database, but to use safe mode. A guide on how to enable safe mode is available in the pinned thread: https://wordpress.org/support/topic/help-i-just-activated-a-snippet-and-my-site-broke/

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘The site crashed and a 403 error was added’ is closed to new replies.