Skip to content
Home » wordpress

wordpress

Visit Tacticalware.com for information related to this tag and others. We look forward to assisting in your tech projects with our in-depth knowledgebase…

(FIXED) – WORDPRESS ERROR FTP USER

  • Ubuntu

If your wordpress is asking for an FTP user to install plugins or themes, you have a permissions error
The specific error is as follows:
“To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.”

SSH into the server

View the .conf file located in the sites-available folder

find the SUSEXEC id numbers

then cat /etc/passwd

This will show you all the usernames

Find the SUSEXEC id number (This will be your apache user)

Then Type:
sudo chown -R apacheuserhere:apacheuserhere /home/name/public_html/

WORDPRESS ERROR USING W3 TOTAL CACHE

  • General

If you are running a wordpress site with the W3 Total Cache plugin, and you come across this error:

There has been a critical error on your website. Please check your site admin email inbox for instructions.

The way to fix it is to:
FTP to your server
Navigate to the wp-content folder
Rename the following (I put a -tacticalware at the end of each to know i removed it from being processed, and if all works well, I circle back to delete it afterwards):
cache folder
w3tc-config folder
object-cache.php
advanced-cache.php
dbcache.php

After they are deleted, you can go back and add the W3 Total Cache plugin back to your site. Be careful making the changes because one of those changes, may result in the error again. So I would suggest making one change at a time, saving, and letting it run for a while before attempting another change.

Thanks for Reading!

WORDPRESS DOUBLE DASH ISSUE 2021 [SOLVED]

  • General

The dreaded double dash issue is back in wordpress. This issue is where wordpress automatically reformats two dashes, into a single long dash. It needs to be removed in blogs like this ome, where many of the commands you see are infact double dashes. This is the quick fix for it.

Login into your site

Go to: Dashboard

Click Appearance

Select Theme Editor

Choose functions.php

Scroll to the bottom of the page and paste

add_filter( ‘run_wptexturize’, ‘__return_false’ );

Click Update

The issue is fixed

Make sure the ‘ symbol above is correct, if it is the apostrophe that slants forward it will not work. it has to the be the apostrophe character that is straight up/down

You will probably need to do this everytime you update your wordpress theme. So bookmark this page and come back when you need to fix it next time.

WordPress Double Dash Issue

  • General

Removing Code to Enable Double Dashes in WordPress

WordPress, by default, changes the code you place into posts and merges items like “–” into “-” so articles don’t show properly. To fix this error do the following:

Modify your site’s wp-includes/formatting.php file

***Make a Backup Copy of this file before you modify it, so you can roll back if it doesnt work***

Remove the following lines:

// Dashes and spaces
$dynamic[‘/—/’] = $em_dash;
$dynamic[ ‘/(?<=^|’ . $spaces . ‘)–(?=$|’ . $spaces . ‘)/’ ] = $em_dash;
$dynamic[‘/(?<!xn)–/’] = $en_dash;
$dynamic[ ‘/(?<=^|’ . $spaces . ‘)-(?=$|’ . $spaces . ‘)/’ ] = $en_dash;
$dynamic_characters[‘dash’] = array_keys( $dynamic );
$dynamic_replacements[‘dash’] = array_values( $dynamic );

Save the file

Now browse to the pages on your website and refresh the page/pages that had the issue. You should now see the Double Dash “–“