Latest WP breaks CSS in PHP7 - php

I am experiencing a weird issue in WP dashboard with the latest version of Wordpress. I think I have figured out what is happening, but I don't know how to figure out why and how to fix it.
Whenever I am in the WP dashboard everything seems to be working fine, until I'm going into Post edit or media upload, then the whole CSS and JS breaks and I see all of the content in Times New Roman.
This issue does not happen on the test server which is running PHP 5.6.10 while the new server the site is supposed to be at, is running PHP 7.
This issue does not happen if I downgrade the Wordpress version to 4.7.3.
The site is running latest Wordpress (4.7.5) and the theme is OnePress 1.3.6
View source - WP dashboard: http://pasted.co/ba9b8ca5
View source - WP post edit: http://pasted.co/8c273ddd

Check your Apache error logs for errors. Your stylesheet is returning a blank white screen: http://trilobite-microsystems.com/wp-admin/load-styles.php?c=0&dir=ltr&load[]=dashicons,admin-bar,common,forms,admin-menu,dashboard,list-tables,edit,revisions,media,themes,about,nav-menus,widgets,site-icon,&load[]=l10n,buttons,wp-auth-check&ver=4.7.5

Related

How can i make js_composer plugin works with PHP 8 or higher?

i am new here and i hope you can help me,
my hosting provider forcing me to upgrade to PHP 8 from 7.4 and i have a WP site with Anahata v 1.4 Theme installed. I upgraded the PHP version but WP giving me an error and i couldn't react the site with that error. i deactivated everything and i narrowed down to this file /wp-content/plugins/js_composer.
when i deactivate this file the site is readable, but the whole site is just code like
[vc_row content_width="grid" content_aligment="center" css=".vc_custom_1483025434590{padding-top: 92px !important;background-color: #fafafa !important;}"][vc_column][mkd_separator_with_icon icon_pack="font_awesome" fa_icon="" sep_color="#f7972f" custom_icon="11652"][vc_column_text]
instead of real content like actual rows and column for example (as if i am seeing the page with the simple editor instead of WPBakery Page Builder)
can anyone have an idea how to change something in the js_composer plugin to make it work with PHP 8? or any alternative to that plugin.
i dont see js_composer when i navigate to plugins in my admin daschbord and there are no new version of this Theme avalible.
thanks alot for hearing me.

MISSING UPDATES FOR: MEDIA Drupal 9

I have started facing an issue with locally hosted Drupal 9 (Xampp, Windows 10). The issue started when I was trying to create events in drupal 9 and I was redirected to Install.PHP page. However, upon checking I was redirected to Update.php and the error seems to be as mentioned below.
Install.PHP page message:
Drupal 9.2.2 Drupal already installed To start over, you must empty
your existing database and copy default.settings.php over
settings.php. To upgrade an existing installation, proceed to the
update script. View your existing site.
Update.php Page Message:
MISSING UPDATES FOR: MEDIA The installed version of the Media module
is too old to update. Update to a version prior to 9.0.0 first
(missing updates: media_post_update_collection_route,
media_post_update_storage_handler,
media_post_update_enable_standalone_url,
media_post_update_add_status_extra_filter).
I'm well aware of the fact that Media is a core module and I havent tried upgrading it or my site. My site has always been a D9 installation and there were no migrations etc. I would really appreciate expert help on this issue.
Running this in a function in my .theme file did the trick for me:
\Drupal::service('update.post_update_registry')
->registerInvokedUpdates(['media_post_update_collection_route', 'media_post_update_storage_handler', 'media_post_update_enable_standalone_url', 'media_post_update_add_status_extra_filter', 'setting functions as applied according_to_the_error_message']);
I personally used hook_theme() (Make sure to clear your cache for it to run and also remove this code once the issue is fixed.)

Wordpress 5.4 Theme Editor works on LOCAHOST but not on the LIVE theme editor site

I am having a weird situation where I can edit my theme on localhost wordpress admin using the theme editor but when I try editing on my live wordpress admin using theme editor it gives me an error "Unable to communicate back with site to check for fatal errors, so the PHP change was reverted...". I am currently using Wordpress 5.4 version and my site is already https and the owner of the theme. Anyone having the same problem? what could be the best fix for this issue? thanks
additional: I currently have no plugins installed yet. This is just a simple template for testing which works on localhost theme editor with the same version of wordpress 5.4.
I have already search and read post here on stackoverflow but unfortunately nothing works.
it's working now on version 5.4.1, though there are times that it doesn't work. Might be a bug. I'll just have to wait for a new update.

WordPress Manual Install Theme/Display Issue

My Problem
I manually installed WordPress on a Debian 9 VM in Virtual Box on a Windows 10 machine. When I pull up the website, this is what I get:
A WordPress site with just HTML, no formatting
The point of this install was to learn how to make a custom WordPress theme. I have built child themes before, but never a theme from scratch, so it may be I don't have everything set up yet. But there is a second issue is WordPress does not give me an option to select my second theme either.
What I did
To set up the site, I followed this tutorial on setting up WP on a Debian system. I sort of touched up on this, but I am new to WP development. I thought this was a quick and dirty route to set up a WP install. I don't have the knowledge of WordPress to know if there is an error in this setup guide.
Again, I checked the themes folder. I could not find the custom theme I started to build as an option. I can't currently download themes straight from WP because I don't have an FTP server/client currently installed on my machine. If it were just the inability to choose a WordPress theme from the WordPress theme repository, I'd suspect it's the FTP setup. But, I also can't choose my custom theme. So is there something wrong with the install?
Summary
I can't get any formatting to work on my WP development site. I suspect it's some problem with themes, but I don't know enough about the internals WordPress to know how to diagnose the problem.
Thank you for your time
It's tough to say without seeing your setup exactly, but this is often caused by URL problems.
Are you able to access wp-admin? If so, try logging in and visiting the settings > permalinks page, then just hitting the save button.
Try reloading your site. It might be fixed.. If not, a little more to try. First, I'd open your browser's Console / Inspect mode, and see if there are any console errors (showing CSS files not loading, etc). If so, post them here.
Additionally, I found a helpful article that details some other things to try when this problem pops up:
http://wphelp24.com/how-to-fix-wordpress/how-to-fix-wordpress-css-not-loading/

Cannot create article categories in joomla 3

I use joomla 3.1.5, php 5.4.20
When my php was 5.3.x everything was fine but after upgrading php to 5.4.20 i cannot create new article categories!
I get Internal Server Error:
The server encountered an internal error or misconfiguration and was unable to complete your request.
This is not an issue with .htaccess (don't have any) or permissions(checked it a lot of times).
Strange thing is that when i enable debug system in global configuration the problem is solved!!! When disabling debug system problem comes back.
This only happens in joomla 3.x installations. I use the same server with joomla 2.5.x and it works fine.
Any suggestions? thanks in advance
Have you checked the Joomla forum ? PHP 5.4 is not used much and the Joomla 3.1.5 might have some modules that are not compatible with the PHP 5.4.
Just wanted to share the fix to this problem. EAccelerator was causing the issue after disabling it everything works fine
I don't think the main problem is with the PHP version.
To be able to Create New Categories do this :
In your joomla "Control Panel" page, this is usually the first page when you log in, scroll down and under CONFIGURATION click "Global."
In the new page for "Global" that open opens, look for "Default Editor", if you have not changed it before it's value should be "Editor - TinyMCE". Change that to "Editor-None." --Note that for now you will not be able to use the default WYSIWYG.
Click "Save & Close".
Now go back to the page for creating new categories, refresh it and create your categories.
To have access again to the default WYSIWYG, after you have finished creating your categories, go back to "Global " and change the editor back to TinyMCE.
Good Coding.

Categories