Website page is suddenly broken after trying to use an inbuilt tool - php

I am working on a project for my client. I was editing the page with WordPress Gutenberg editor and when I clicked Edit in WordPress the website home page was broken and I could no longer fix it.
I tried these approaches:
Tried reinstalling the theme
Checked the code for error but could not find anything.
Looked into the browser console for errors and found these files are missing bootstrap.min.js.map popper.min.js.map style.css.map bootstrap.min.css.map
I checked other pages on the website but they are working fine even if some of these files are missing.
Installed this theme on my localhost and then tried to copy all the theme data into this one but it messed up the code even more.
Now I am not sure why do I have this issue suddenly on my website but I can't seem to find a solution for this.
Please check out the links below:
(the broken page) https://cmedia.host
(Page that is working just fine on the website) https://cmedia.host/nom-de-domaine/
Can you please check and help me fix the issue here?

What worked for me was to redo the same steps. It looks like Gutenberg was missing and when I tried editing the page using Gutenberg, it broke the code.
Then followed the same steps and tried to redo the steps using another editor and it was fixed in a second.

Editing wordpress page or posts with a different editor (i.e. using theme editor and then Gutenberg or vice-versa) is known to generate this type of issues. Try to edit it again with the original editor (Gutenberg) that should fix it.

Related

Wordrpress - Except homepage (index.html) all the pages are blank white screen

So I have a WordPress website except for the homepage which is an index.html file everything is coming blank white screen whereas when I just save a post in the draft everything is working in the draft preview. the whole website is made with custom HTML-CSS-Js by some other dev using the basic theme, I migrated the site to a testing server with all-in-one migration. I have used Wp_debug and did not get any error. added the basic htaccess file for troubleshooting. I have also tried disabling all the plugins nothing is getting displayed as when I try to inspect it is showing a blank HTML page.
Did you create pages hierarchy like page.php index.php single.php etc if not in the wordpress you must need to create it in order to display pages, posts also you must need to break header.php and footer.php and include it in the templates.
I think it might be a PHP issue where when you are installing the site locally xampp PHP will not match with the production, which causes many issues. For that only solution is use the older PHP there are many ways you can set up a 2 PHPs version with a single xampp installation.

What happened to custom CSS in WordPress?

So I'm a developer trying to help out a non-profit that has a site in wordpress. The Wordpress version is a little out of date (they don't have 4.7.1).
I updated some css in one of the theme files (a small change, just wanted to see if I could make a change happen before I went in and did larger changes). I pressed update file and everything seemed to be ok.
I then checked the website, and the change had not propagated. I then went back to check the css if I'd made a mistake..but then I saw this-
There's no CSS!??
But when I go to the site, the css is still there and the theme is still applied.
What is going on?
EDIT
These are the other themes?
I have also pasted a backed up version of the CSS - got a message saying the file was updated...but nothing happened. Why?
Also why am I getting downvoted? I followed exactly what wordpress expects me to do and the behaviour is totally unexpected.

Why is my WordPress visual editor not working?

I have website running WordPress 4.6.2 and I can't use the visual editor right now, only the text editor. When I open the browser console it show various errors.
I've been working on this problem for a good few hours and tried:
restoring WordPress
deactivating plugins
deactivate the custom CSS used in the site
Looking for can_compress_scripts in the DB and all various stuff that I stumble upon internet but with no success whatsoever
Used theme is Spacious
Include define('CONCATENATE_SCRIPTS', false); into wp-config.php
Replaced TinyMCE folder content with TinyMCE content from clear installation
A screenshot of the error from my web browser's console (below):
Apparently deleting few plugins solved the problem. The weird thing is that the problematic plugins were YoastSEO and Akismet and even after their reinstall i got tons of errors too.
I was able to fix this by installing the TinyMCE Advanced Plugin, then hitting save so the settings took effect and it worked.
I have found a workaround or possibly the solution if you dont want to go deep into codes.
This is the fix: (It worked in my case and I am sure it can work for others with similar issue.)
Install Visual Composer(Wpbackery or others)
Go to => Role manager => Post type => custom => Select both for post and page.
That's all.
I found this workaround that is very good and can work in other case after running into this case where I could not switch from visual editor to text editor on wordpress.
I simply adjusted my WPbackery setting and everything works fine now on my site.
Before then I had tried so many solutions and even included define('CONCATENATE_SCRIPTS', to my config but to no avail.
I don't know if there is the need to explain all the things I have done on the cause of troubleshooting for this for a whole day. But with the solution I posted above it would solve your issue.

Wordpress update cause visual editor blank

I updated my wordpress website version with 3.9.2. After updating when i try to add or update any page or post, visual editor tab shows blank. It does not display toolbar buttons or page or post content. Text tab works fine
I tried following solutions provided on different sites with no luck
1) clear browser cache
2) deactivating all plugins
3) change to default theme and again change to desired one
The people who had the same issue had cured the problem by doing one of these suggestions:
1) Install “Use Google Libraries” plugin
2) Add to your wp-config.php file:
define( ‘CONCATENATE_SCRIPTS’, false );
3) Download a refresh version of WordPress from WordPress.org and via ftp replace /wp-includes/js/tinymce folder
4) Download a refresh version of WordPress from WordPress.org and via ftp replace /wp-includes folder
I tried all above solutions but no success :(
I also refer following links but could not find solution
Wordpress Visual Editor broken
Visual editor not working in wordpress 3.8.1?
I have attached screen-shoot for visual editor tab and text editor tab for one page
Please help
I had this issue on APlus.net Hosting and had one heck of a time fixing it. All the text in the Visual Editor was white, and I couldn't get to the HTML tab. The Visual Editor was missing all the formatting buttons -- it was just a white empty space.
After trying everything listed across the web without success, I was finally able to track down the culprit on APlus hosting. It turns out APlus hosting injects their own analytics tracking code into even the WordPress Admin pages. The code for their analytics wasn't written properly -- the code was missing a final ending apostrophe, which resulted in breaking all the code that came after it. In my scenario, the injected code broke the Page Editor TinyMCE JS code.
I checked the Google Chrome inspector to find the error in the code, and after talking with a Tech Support rep at APlus I was able to fix it by deleting the analytics file on the server via FTP:
/private/.wmcnum
I hope this helps. If anything check out the Google Chrome inspector and look for errors. If it's something you can't change, definitely get in touch with your hosting provider.
I've seen an issue like this before. For me, the site we were updating had many out of date plugins. The one that caused our issue was WP Polls. Something went wrong during the update process, and certain files were missing from the plugin directory. I kept a backup of all of the files from before the update, but even re-uploading them didn't fix it. We ended up removing the plugin that was causing the issues and re-installing it. If you can narrow down which plugin might have some discrepancies, then I'd recommend backing everything up (including your database), deleting the plugin, and re-installing it.
If it was simply a WordPress update, it may be that not all of the WordPress files copied over. If you can get a fresh install of WordPress 3.9.2, you can compare the differences between those files and the files on your site. If you're getting an error from somewhere in wp-admin, I'd start my check there.
This is the solution that worked for me:
“Use PHPMyAdmin (or another database editor) to search inside your WordPress database in your “wp_options” table for the record called “can_compress_scripts”. and if it has a value of “1” for the “option_value”, change this to “0” and save the change. You will find your editor working again! (Note: Sometimes this record won’t even exist, so in that case you need to add it. Look for a WordPress database that does have it in order to see what you need to add.)"
original answer by digbymaass:
https://wordpress.org/support/topic/visual-editor-missing-buttons-not-working-white-text-help-1/
In my experience I've had some problems with the tinymce editor. Some of my clients reported they've 'lost' some of the buttons in the editor (or all of them).
I found that disabling emojis with the tiny_mce_plugins filter not also disables emojis but half the buttons in the editor.
Maybe you have somewhere in functions.php this line, just comment it and refresh cache. Let's see if that helps.
add_filter( 'tiny_mce_plugins', 'disable_emojicons_tinymce' );
I checked all over about this. I could not edit or see text in wordpress posts or pages. It seemed to narrow down to the tinymce plugin where I found errors through the Chrome console. I tried a number of things without luck. So I disabled tinymce and all is running smoothly. How simple for a problem with so many variables and options for a fix.

Wordpress blank page after activating theme, but works in other server

I'm trying to activate a Wordpress theme but all I got is a blank page, also the admin page goes blank.
Version of WP is 3.9.1, Mysql 5.1 compatible and PHP 5.2.4 compatible too with WP. The theme in question is MH Magazine and I have it in another server with the same configuration and is working ok.
Even I tried to do a backup of the working site and place it in the production server and still goes blank.
I tried uploading the max_memory_limit in php and no luck. Error log and show php errors doesnt show anything, when I check only says the site name HTTP 1.1 500 - If I set wp_debug to true says HTTP 1.1 200.
File permissions are ok too.
A SIMPLE FIX FOR NON TECHIES (Like me really)
Loads of forums recommend various code changes and things to try, non of which worked, so I logically worked through the process more simply and solved it myself (in my case). White screen for everything, including front end and Admin. I tried everything going!
Essentially I'd asked Wordpress to link to a theme, which it did, but now I can't change it back. As it wouldn't automatically switch back to default themes, as suggested by others as a result of simply deleting the theme folder via ftp, I would have to force that myself. Without access to the admin panel, how would I change the link (easily)?. Well I can't, so instead I need to force the change of what it links to instead!
In the end I basically logged in via FTP, went to the wp-content folder, then to themes, located my list of theme folders and changed the theme folder name of the one recently selected and causing the issue, by just adding an x at the end (random letter). Then I changed the theme folder 'default' to the name of the theme which was causing the issue, then refreshed my site in the other window, at which point it displayed again. So the hard coded link never changed, but the basic files it links to now have.
The site was now back up, thank god! I then logged into the Wordpress admin panel and updated my version of Wordpress, as to be honest it had been a while and it was a little out of date, so a likely culprit for the cause of the error. Once updated, I then went back into the FTP window, renamed the folder back to 'default', and then removed the 'x' character from the end of the actual theme folder that I wanted to use. And ta dah, it now works beautifully with the theme I wanted! Without any fancy code changes or messing around with reinstalling or removing etc. BOSH!!
Hope this helps a few people out. (obviously it's different strokes for different folks)
To get this out of comments --- this is a community wiki answer.
Are your two servers running on the same platform (Linux? Win?) or different ones?
Do you have the same collection of plugins on both platforms?
Here are some things to try.
do View Source on your white screen of death and see if there's anything in the source view that can help you diagnose your problem.
deactivate all your plugins, then try the theme.
if it doesn't work, then this theme is broken on this server setup.
reactivate the plugins one by one. One of them will probably give you the white screen of death. Then you know that plugin is incompatible with that theme.

Categories