5 Common WordPress Issues and Plugins to Correct Them

Reading Time: 2 minutes

1. Backing Up WordPress

So your blog hosting companies servers go down and your blog vanishes into thin air. How do you retrieve all the posts you’ve spent hours writing and all the comments your readers have left over the years?

Don’t think this is a 1 in a million chance, it actually happens more than you might imagine. But luckily, you need no server end knowledge, and the solution is not only simple, you can put it on autopilot. WP-DB-Backup is a wordpress plugin that backs up the entire wordpress MySQL database of tables that make up your blog. It also has the added feature of allowing you to schedule daily or weekly backups to be emailed to you. So if something does go wrong, you can simply restore it with minimum damage.

2. Page Load Time

It’s essential to keep your page load times as low as possible to ensure your visitors stay on your site. Not only that, it’s important for Search Engine Optimization as it’s a ranking signal to Google. WordPress can be quite slow, the answer – WP Super Cache. This is a caching plugin, it serves visitors static versions of frequently accessed pages, which decreases loading time as it no longer has to query the database thus enhancing user experience.

3. Redirecting Old URLS to new Ones

Perhaps you have a dated post, that is now obsolete, and you’ve written a much fresher one. You want to direct any traffic landing on that page to the newer version, and you’re not a dab hand with 301 redirecting using the .htaccess file. Luckily, the Redirection Plugin has the answer. It’s simple to use and makes monitoring 404 errors very easy.

4. Keeping Your Visitors On Your Site and Visiting Other Pages

A common problem is getting visitors to navigate through your site and read more of your content. The Yet Another Related Posts Plugin (YARPP) helps solve this. It automatically selects related posts that may be of interest to readers and displays them at the bottom of individual posts. Increasing the chance of further engagement with your site.

5. Letting Your Visitors Contact You

The easiest way to let your readers get in touch with you is obviously via email, or perhaps yet, via a contact form that can be displayed across your site, be it in the footer, the sidebar or on a standalone page. Contact Form 7 plugin allows this to be accomplished with ease

There are literally thousands of wordpress plugins available, these are just some of the most popular and useful ones to solve common problem.

Post written by Helen Clough from IT Support Company – Integral IT

Robocopy switches

Reading Time: 3 minutes

Robocopy Options and Switches

Copy options :

/S :: copy Subdirectories, but not empty ones.
/E :: copy subdirectories, including Empty ones.
/LEV:n :: only copy the top n LEVels of the source directory tree.

/Z :: copy files in restartable mode.
/B :: copy files in Backup mode.
/ZB :: use restartable mode; if access denied use Backup mode.
/EFSRAW :: copy all encrypted files in EFS RAW mode.

/COPY:copyflag[s] :: what to COPY for files (default is /COPY:DAT).
(copyflags : D=Data, A=Attributes, T=Timestamps).
(S=Security=NTFS ACLs, O=Owner info, U=aUditing info).

/DCOPY:T :: COPY Directory Timestamps.

/SEC :: copy files with SECurity (equivalent to /COPY:DATS).
/COPYALL :: COPY ALL file info (equivalent to /COPY:DATSOU).
/NOCOPY :: COPY NO file info (useful with /PURGE).

/SECFIX :: FIX file SECurity on all files, even skipped files.
/TIMFIX :: FIX file TIMes on all files, even skipped files.

/PURGE :: delete dest files/dirs that no longer exist in source.
/MIR :: MIRror a directory tree (equivalent to /E plus /PURGE).

/MOV :: MOVe files (delete from source after copying).
/MOVE :: MOVE files AND dirs (delete from source after copying).

/A+:[RASHCNET] :: add the given Attributes to copied files.
/A-:[RASHCNET] :: remove the given Attributes from copied files.

/CREATE :: CREATE directory tree and zero-length files only.
/FAT :: create destination files using 8.3 FAT file names only.
/256 :: turn off very long path (> 256 characters) support.

/MON:n :: MONitor source; run again when more than n changes seen.
/MOT:m :: MOnitor source; run again in m minutes Time, if changed.

/RH:hhmm-hhmm :: Run Hours – times when new copies may be started.
/PF :: check run hours on a Per File (not per pass) basis.

/IPG:n :: Inter-Packet Gap (ms), to free bandwidth on slow lines.

File Selection Options :

/A :: copy only files with the Archive attribute set.
/M :: copy only files with the Archive attribute and reset it.
/IA:[RASHCNETO] :: Include only files with any of the given Attributes set.
/XA:[RASHCNETO] :: eXclude files with any of the given Attributes set.

/XF file [file]… :: eXclude Files matching given names/paths/wildcards.
/XD dirs [dirs]… :: eXclude Directories matching given names/paths.

/XC :: eXclude Changed files.
/XN :: eXclude Newer files.
/XO :: eXclude Older files.
/XX :: eXclude eXtra files and directories.
/XL :: eXclude Lonely files and directories.
/IS :: Include Same files.
/IT :: Include Tweaked files.

/MAX:n :: MAXimum file size – exclude files bigger than n bytes.
/MIN:n :: MINimum file size – exclude files smaller than n bytes.

/MAXAGE:n :: MAXimum file AGE – exclude files older than n days/date.
/MINAGE:n :: MINimum file AGE – exclude files newer than n days/date.
/MAXLAD:n :: MAXimum Last Access Date – exclude files unused since n.
/MINLAD:n :: MINimum Last Access Date – exclude files used since n.
(If n < 1900 then n = n days, else n = YYYYMMDD date).

/XJ :: eXclude Junction points. (normally included by default).

/FFT :: assume FAT File Times (2-second granularity).
/DST :: compensate for one-hour DST time differences.

/XJD :: eXclude Junction points for Directories.
/XJF :: eXclude Junction points for Files.

Retry Options :

/R:n :: number of Retries on failed copies: default 1 million.
/W:n :: Wait time between retries: default is 30 seconds.

/REG :: Save /R:n and /W:n in the Registry as default settings.

/TBD :: wait for sharenames To Be Defined (retry error 67).

Logging Options :

/L :: List only – don’t copy, timestamp or delete any files.
/X :: report all eXtra files, not just those selected.
/V :: produce Verbose output, showing skipped files.
/TS :: include source file Time Stamps in the output.
/FP :: include Full Pathname of files in the output.
/BYTES :: Print sizes as bytes.

/NS :: No Size – don’t log file sizes.
/NC :: No Class – don’t log file classes.
/NFL :: No File List – don’t log file names.
/NDL :: No Directory List – don’t log directory names.

/NP :: No Progress – don’t display % copied.
/ETA :: show Estimated Time of Arrival of copied files.

/LOG:file :: output status to LOG file (overwrite existing log).
/LOG+:file :: output status to LOG file (append to existing log).

/UNILOG:file :: output status to LOG file as UNICODE (overwrite existing log).
/UNILOG+:file :: output status to LOG file as UNICODE (append to existing log).

/TEE :: output to console window, as well as the log file.

/NJH :: No Job Header.
/NJS :: No Job Summary.

/UNICODE :: output status as UNICODE.

Job Options :

/JOB:jobname :: take parameters from the named JOB file.
/SAVE:jobname :: SAVE parameters to the named job file
/QUIT :: QUIT after processing command line (to view parameters).

/NOSD :: NO Source Directory is specified.
/NODD :: NO Destination Directory is specified.
/IF :: Include the following Files.

For a script see https://cloudbuild.co.uk/?p=1222

Copy Data Script

Reading Time: < 1 minute

Copy the below script to a notepad and amend paths and exclusions. Rename file to .bat e.g. Copy.bat

Test before applying to a real environment. The below script will only COPY. For additional switches see https://cloudbuild.co.uk/?p=1224

:START

SET robo_path=C:\Windows\System32\robocopy.exe
SET source_dir=”\\server\share”
SET dest_dir=”\\server\share”
SET log_fname=\\server\share\BackupReportLog.txt

REM See the robocopy documentation for what each command does.
REM /COPY:DAT :: COPY file data, attributes, and timestamps
REM /COPYALL :: COPY ALL file info
REM /B :: copy files in Backup mode.
REM /MIR :: MIRror a directory tree
REM /L :: Just list the info, don’t actually do it
SET what_to_copy=/COPY:DAT

REM Exclude some files and directories that include transient data
REM that doesn’t need to be copied.
SET exclude_dirs=/XD “Temporary Internet Files” “Cache” “Recent” “Cookies” “iPod Photo Cache” “MachineKeys” “All Users” “Default User” “LocalService” “NetworkService” “Application Data” “Local Settings” “My Recent Documents” “NetHood” “PrintHood” “SendTo” “Templates”
SET exclude_files=/XF *.bak *.tmp index.dat usrclass.dat* ntuser.dat* *.lock *.swp

REM Refer to the robocopy documentation for more details.
REM /R:n :: number of Retries
REM /W:n :: Wait time between retries
REM /LOG :: Output log file
REM /NFL :: No file logging
REM /NDL :: No dir logging
REM /E   :: Include Empty Subdirectories
REM /XA:H :: Excludes files with hidden attribute
REM /XJ :: Exclude Junction Points (prevents recursive Application Data loop in Vista)
SET options=/R:1 /W:1 /LOG+:%log_fname% /NFL /NDL /E /XJ

REM Execute the command based on all of our parameters
%robo_path% %source_dir% %dest_dir% %what_to_copy% %options% %exclude_dirs% %exclude_files%

:END

Script to remove all network printers

Reading Time: < 1 minute

Copy the below to a notepad file and rename something like RemoveNetworkPrinters.vbs (You may need to re-enter speech marks after copying.

The below script will prompt you to click OK before ap printer is removed.

To disable the promtt so all network printers are removed automatically, remove the line ‘WScript.Echo Printers.Item(i+1) from the script below.

‘—————————————————-

‘Remove all Network printers but not local printers

Set WshNetwork = WScript.CreateObject(“WScript.Network”)

Set Printers = WshNetwork.EnumPrinterConnections

For i = 0 to Printers.Count – 1 Step 2

    If Left(ucase(Printers.Item(i+1)),2) = “\\” Then

        ‘WScript.Echo Printers.Item(i+1)

        WSHNetwork.RemovePrinterConnection Printers.Item(i+1)

    End IF

Next

You don’t have permission to access /wp-admin/post.php on this server

Reading Time: < 1 minute

When you try adding a new post within your WordPress blog, you receive the below error:

“Forbidden”
“You don’t have permission to access /wp-admin/post.php on this server.”
“Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.”

 To resolve, add the below text to your .htaccess file:

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>