• Trying to edit a post or page shows the visual and text editor as blank. There is no content there (the word count shows 0 at the bottom of the field). However going to the published page/post shows the original content that was published.

    Have done the following:
    1. Disabled all plugins
    2. Changed theme to default theme
    3. Changed Permalinks to plain and back to my custom settings
    4. Renamed .htaccess file
    5. Recopied the tinymce directory
    6. Reinstalled WP files on my server
    7. Checked to see that the setting “Disable the visual editor when writing’ is not checked for the user.
    8. Created a new admininstrative user and logged in to see if that user had a different experience
    9. Changed my nickname for my existing user
    10. Added the line: define(‘CONCATENATE_SCRIPTS’, false); to my wp-config.php file
    11. Cleared my cache on my browser MANY times.
    12. Cleared the server cache on Cloudflare and on bluehost

    The weird thing is that I created a new post. The new post does show the test text that I added to the visual editor. I have not published it, but it shows in draft mode.

    I have seen several topics on this, but didn’t want to hijack an existing thread…

    Help would be appreciated!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try checking your browser’s console log for any more information: https://codex.www.ads-software.com/Using_Your_Browser_to_Diagnose_JavaScript_Errors

    Thread Starter dcrowthe

    (@dcrowthe)

    I enabled the debugger within the wpconfig.php file and enabled the error console via chrome.

    There were no errors on the console…only the following statement:
    JQMIGRATE: Migrate is installed with logging active, version 1.4.1.

    I cleared the cache and reloaded the page…no change.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you show us an example page that contains the issue? I don’t mean in the dashboard. Thanks.

    Thread Starter dcrowthe

    (@dcrowthe)

    Absolutely. The problem is occurring on every single post and page at https://barbequelovers.com

    Example posts:
    https://barbequelovers.com/grills/accessories/mr-grill-18-inch-grill-cleaning-brush-review
    https://barbequelovers.com/recipes/beef-recipes/pancetta-gruyere-burger-with-grilled-vidalia-onions

    Example pages:
    https://barbequelovers.com/about
    https://barbequelovers.com/restaurant-reviews

    All of these posts/pages in the wp-admin area have the main content area blank in both the visual editor as well as the text editor and the word count on the bottom says 0.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Hmm unfortunately (for debugging purposes) your webpages look fine on the front-end.

    When you said you disabled all plugins and switched to the default theme, did you switch to the default theme with all plugins deactivated still? Or did you deactivate all plugins, re-enable them and then switch?

    Thread Starter dcrowthe

    (@dcrowthe)

    I have deactivated all plugins and have switched to the default theme at the same time.

    Hey — I just wanted to chime in because I had the exact same problem. I tried everything that you tried, but I still had a blank visual editor with a word count of 0. Also, all commas and quotation marks in all posts were replaced with a question mark in a black diamond.

    I just found a way to fix the problem, with a small change to the ‘db.php’ file that is located in the ‘wp-content’ folder. I opened that file up in a text editor, and noticed that the first function starts like this:

    function set_charset( $dbh, $charset = null, $collate = null )

    I changed the charset from ‘null’ to ‘utf8’, like this:

    function set_charset( $dbh, $charset = ‘utf8’, $collate = null )

    That change fixed both of my problems. Not sure if it would work for you, but thought I’d share just in case. This issue seems to have all sorts of remedies…not all of which work for everyone.

    Thread Starter dcrowthe

    (@dcrowthe)

    Shanse2, thank you so much. I think that you identified the root cause of the issue.

    I didn’t have a db.php file in the wp-content directory. Instead, I added:
    define(‘DB_CHARSET’, ‘utf8’);
    define(‘DB_COLLATE’, ”);
    to the wp-config.php file and the blank text edit box with the 0 word count AND the question mark in the black diamond problems went away from all of my posts.

    My database/website was created many years ago, so my questions are:
    1. How do I tell what charset the database is?
    2. If it is the old Latin1 charset, do I need to change the database to UTF8?
    3. Are there any problems with specifying the charset in the wp-config file without changing the underlying database charset?

    Thoughts from the experts out there?

    Nice, I’m glad that worked for you. Interestingly enough, I tried changing those lines in my files, and it didn’t work.

    I wish I could answer your questions, but I don’t know enough about php or databases. I’ve asked one of the tech guys here in my office to come look at the fix I made and tell me if it’s the right thing to do. I’ll see if he knows about identifying/changing the database charset.

    Thread Starter dcrowthe

    (@dcrowthe)

    Thanks – let me know what he says

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Visual/Text Editor is blank’ is closed to new replies.