• Resolved eswarnaiduv

    (@eswarnaiduv)


    Hi Everyone,

    I have installed WPcode and created a snippet and unfortunately I have added die() function in the first line of the snippet and because of this site got broke.

    I have tried enabling safemode. But, still couldnt able to load the admin console to deactivate the snippet, I went to filemanage in my hosting panel and deleted plugin files and site started working. whenever I reinstall wpcode and activate it. My site is crashing. I have tried deleting some rows in my database from the posts table where this die() function is found.

    After deleting the rows, I was able to access wpcode in safemode and while i check the snippets, there are zero snippets. But, still site is crashing, if i remove safemode.

    How can I resolve this issue. because of this we were forced to use codesnippets plugin. But, wpcode is much more flexible compared to any other snippet plugins.

    Can someone help me fix this issue.

Viewing 1 replies (of 1 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @eswarnaiduv,

    To get around the issue at this point you will have to activate any snippet when in Safe Mode to reset the plugin snippet preload.

    WPCode preloads snippets for execution separately from the tables where the snippets info is stored.

    Activating any snippet in safe mode will reset the snippet preload option, you can create a new empty snippet and activate it.

    If you run into this issue in the future please use WPCode Safe Mode to quickly update the faulty snippet as described here: https://wpcode.com/docs/php-error-handling-safe-mode/

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