Posted On October 8, 2021

WordPress Code Snippet Crashed My Site

kimconnect 0 comments
blog.KimConnect.com >> Codes >> WordPress Code Snippet Crashed My Site

Error Message:

ParseError thrown

syntax error, unexpected ‘$’, expecting variable (T_VARIABLE)

Resolution:

1. If still login to the site as Admin, call the safe-mode method via the site’s URL: https://blog.kimconnect.com/wp-login.php?redirect_to=https%3A%2F%2Fblog.kimconnect.com%2Fwp-admin%2Fadmin.php%3Fpage%3Dsnippets%26snippets-safe-mode%3Dtrue&reauth=1

2. If Admin login session has expired or one cannot login add: define('CODE_SNIPPETS_SAFE_MODE', true); to wp-config.php

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Expanding System Volume C Drive of Windows Hyper-V Virtual Machine

There are three three steps to expand a disk of a virtual machine: Connect to…

PowerShell: Move Guest VM to Different Cluster in Hyper-V

# Assumptions: # - Guest VM files are stored at a single location # -…

How To Prevent Windows From Automatically Rebooting After Updates

# Add New Registry Key $regHive='REGISTRY::HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU' $keyname='NoAutoRebootWithLoggedOnUsers' $value=1 Set-ItemProperty -Path $regHive -Name $keyname -value $value…