autotutorial
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Website only loading properly with /?nocache=1 suffixYou can use backend https://yoursite.com/wp-admin/?nocache=1 Without web cache.
Forum: Fixing WordPress
In reply to: I see site title class in header.php repeated twice first as then asIf you set a static page for the front page of your site, this function will return true when viewing that page.
If a static page is set for the front page of the site, this function will return true only on the page you set as the “Posts page” (settings->reading or appearance->customize)
.
Forum: Fixing WordPress
In reply to: I see site title class in header.php repeated twice first as then aselse is an alternative if the first statement is true/false, you will only have that content once.
First statement
if ( is_front_page() && is_home() )
It return boolean (true/false) if is true
<h1 class="site-title"> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
else
<p class="site-title"> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
https://www.php.net/manual/en/control-structures.alternative-syntax.phpForum: Fixing WordPress
In reply to: php file becomes corrupt. Code missing from file. Weird!It would be nice to compare the code with 500 less lines with the exact correspondence of the same or less files to 3.9 (github 3.9.29 and archives all). If you get the exact match you are sure the file was not updated. it is a pleasure to be useful.
Forum: Fixing WordPress
In reply to: faulty redirect for /wp-admin/had that domain been added by you?
Multisite have wp_x_options (x is int value) for not primary site , wp_options is for primary site.
backup your file via ftp and mysql https://wordpress.org/support/article/wordpress-backups/
Use Super Admin user (not Normal Admin) for primary site.
http://yourprimarysite.com/wp-admin/network/ (total access for all).
in no case you have to manually change the values ββpresent in the database because in the database they are stored as objects and string length, if some plugin uses them things did not appreciate.Forum: Fixing WordPress
In reply to: php file becomes corrupt. Code missing from file. Weird!Old version of WordPress https://github.com/WordPress/WordPress/blob/3.9-branch/wp-admin/includes/meta-boxes.php with 1086 lines
Always last WordPress 5.2 https://github.com/WordPress/WordPress/blob/5.2-branch/wp-admin/includes/meta-boxes.php with 1556 lines (the minor versions are automatically added to the branch, currently for the branch 5.2 is 5.2.4 while for the branch 3.9 is 3.9.29 at five November 2019).
Surely there is a problem with overwriting the wordpress core files, permission issues or use of a loader that occasionally does not overwrite the files.
In my research I based myself looking for less than 500 lines of code compared to WordPress 5.2 (5.2.4 in this moment)
if your file is exactly that 3.9.29 (you only had this old file) if you want to deepen it look in the archives https://wordpress.org/download/releases/ for the version before 3.9.29. Install Wordfence which protects you and scans files with the latest current wordpress version and reports what went wrongForum: Fixing WordPress
In reply to: Website only loading properly with /?nocache=1 suffixIf you use WordPress managed with web cache option on the pro plan (only for United States and Canada), you can’t use cache plugins (not W3 Total Cache abd other plugin) the server already uses the cache
Web Cache, delete cache https://it.godaddy.com/help/svuotare-la-cache-12444If you are a customer with a pro plan, you have the right to this assistance, in the simplest of cases you must explain how to set up web cache with or without ssl in wordpress managed https://it.godaddy.com/help/servizi-di-assistenza-wordpress-gestito-pro-27245
*Note the server cache is managed by godaddy, maybe you can modify this behavior with their plugin, the fact remains that web cache points to the correct local files (WordPress) but ssl on web cache does not work.
Web cache (is ssl web cache your problem) not work https://secureservercdn.net/160.153.137.15/067.92a.myftpupload.com/wp-content/uploads/2017/06/logo.gif?time=1572951714
Without cache work https://www.hythegardenlandscapes.co.uk/wp-content/uploads/2017/06/logo.gif
both are on the same path.Forum: Fixing WordPress
In reply to: White screen of death while updating PHPCreate test.php
<?php error_reporting(E_ALL); ini_set('display_startup_errors',1); ini_set('display_errors',1);create run.php
<?php include __DIR__.'/test.php'; //Undefinited Constant Myconstant;http://domain.com/run.php see error?
https://developer.wordpress.org/reference/functions/wp_is_fatal_error_handler_enabled/
Recovery Mode etc.
If ini_set work use WP_DEBUG
Read more for recovery mode.- This reply was modified 6 years, 6 months ago by autotutorial.
Forum: Fixing WordPress
In reply to: White screen of death while updating PHPNow from WordPress 5.2 there is the fatal error class that goes into recovery mody … WSOD 5.2 an improvement to the classic page … does it work ini_set?
Forum: Fixing WordPress
In reply to: White screen of death while updating PHPThere is no guarantee in plugins, since WordPress 5.2 supports 7.3 … the only certain thing is the core …. if the plugin specifically says support 7.3 then you are sure to use it .
Jetcpack support PHP 7.3
https://wordpress.org/support/topic/compatibility-with-php-7-3-8/#post-11922107
Since jetpack 7.1 compatoble with PHP 7.3 https://github.com/Automattic/jetpack/blob/master/changelog.txt …. Use always the last version.Forum: Fixing WordPress
In reply to: WP-Config ErrorCheck your file .htaccess root and change into root folder.
Bad example for moving from directory to root (htaccess wordpress BASIC, not multisite):
# BEGIN WordPress RewriteEngine On RewriteBase /wordpress/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wordpress/index.php [L] # END WordPressGood: remove folder wordpress/ π
# BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPressAdd this constant into wp-config.php Before ABSPATH
define('WP_DEBUG',false); // Without and slash define('WP_HOME','http://www.mysite.com'); define('WP_SITEURL','http://www.mysite.com');after making backups, use a plugin or php script to change the old path in the new way.
Back-up
Search and replaceForum: Fixing WordPress
In reply to: Website only loading properly with /?nocache=1 suffixhttps://www.godaddy.com/help/managed-wordpress-1000021
SSL included on all your sites for added security (Ultimate and Pro plans)
You’re Ultimate and Pro plans?
the ssl cache is not working, only your hosting can help you.
Forum: Fixing WordPress
In reply to: Secong site of multisite is not workingIs path-based?
Path-basedRestriction
With super administrator user, what you see from, http://multisite1.localhost/wp-admin/network.php ?Forum: Fixing WordPress
In reply to: Website only loading properly with /?nocache=1 suffixIt looks like a cache for the server that does not support the ssl protocol for the upload folder (where the images reside), contact your hosting provider
Forum: Fixing WordPress
In reply to: Should setting WP_DEBUG_DISPLAY to false ALWAYS hide PHP messages?ini_set
When WP_DEBUG is with the value boolean true it checks if WP_DEBUG_DISPLAY has the value boolean false, in the first (WP_DEBUG_DISPLAY with value false), WordPress set display error with ini_set to off.ini_set( 'display_errors', 0 );If so, what if I want to keep WP_DEBUG disabled, but also suppress PHP messages? What would be the correct approach? Is it OK to add this to wp-config:
ini_set( 'display_errors', 0 );advanced topic, if your server sets the error display (php.ini or user.ini or htaccess flag). When there is a fatal error and WordPress 5.2 WSOD works go to recovery mode otherwise your screen will show you the error.