autotutorial
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: mysql PHP7.X UpdateForum: Fixing WordPress
In reply to: Fatal error: Uncaught Error: Undefined class constant ‘BUFFER_SIZE’read all about this guide.
https://wordpress.org/support/topic/read-this-first-wordpress-5-2-master-list/Forum: Fixing WordPress
In reply to: Wp_recovery_mode() – PHP Fatal Errorread all about this guide.
https://wordpress.org/support/topic/read-this-first-wordpress-5-2-master-list/Forum: Fixing WordPress
In reply to: Media Folders on the ServerForum: Fixing WordPress
In reply to: Fatal error: Uncaught Error: Undefined class constant ‘BUFFER_SIZE’https://wordpress.org/about/requirements/
Use php 5.6.20+?Forum: Fixing WordPress
In reply to: The requested URL /wp-admin/null was not found on this server erroralways make backups of files and databases before any changes are made
https://codex.wordpress.org/WordPress_Backupsalso changing the scheme the url is modified and consequently it changes in general settings and with the help of a plugin you change the url of the posts, articles in https
https://codex.wordpress.org/Moving_WordPress#Changing_Your_Domain_Name_and_URLs
Example old url http://old_domain.com/ with plugin search and replace it without end slash https://old_domain.com
the prefix www. it also makes a difference in a url context.Here we are now finished. π
Forum: Fixing WordPress
In reply to: Wp_recovery_mode() – PHP Fatal Error@cary42 Sorry can you provide more information? Are you still on some cache? cache plugin, cache your hosting, CDN cache? Sometimes disabling or deleting a plugin is not enough, it may be that it is executed by the database and it is a good idea to check the source of the page to be sure that there is no reference to the plugin name, in this case contact the author of the plugin using the special support channel.
Forum: Fixing WordPress
In reply to: The requested URL /wp-admin/null was not found on this server errorThis procedure is good for installations from wordpress.org otherwise asking your hosting if the use of the CloudFlare plugin can break the site.
1a)If you have already requested the certificate with Flexible SSL, it will be created within 48 hours, making sure you have selected Flexible SSL.
1b)Download and activate the Cloudflare plugin
2)Set off the automatic rewrites, always use https, Create PageRule to exclude WordPress’ dashboard from Cloudflare.
3)Follow the steps in “Use Cloudflare’s SSL certificate on your site.” Except for setting the port to 443, Flexible SSL plugin and create a Page Rule to redirect all traffic from HTTP to HTTPS
4)RewriteEngine On RewriteBase / RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule [^/]? https://yourdomain.com%{REQUEST_URI} [R=301,L]Obviously first you have to change the url in https from general settings.
Your site now use always https.If something goes wrong to go back to http you need to remove the
define('FORCE_SSL_ADMIN', true);
Add the define of home and site in wp-confing.php and delete the htaccess rule for rewriting in https without disable or delete the plugin*Note The universal certificate only works on browsers with SNI support.
- This reply was modified 7 years ago by autotutorial.
Forum: Fixing WordPress
In reply to: Wp_recovery_mode() – PHP Fatal Errorthe http 500 error is due to the mentioned function but you have to understand why .. Rather than imagine a wrong wordpress code I imagine that there is some conflict with theme or plugin.
You have not disabled all plugins, the site is currently served with wp-fastest-cache.https://wordpress.org/support/plugin/wp-fastest-cache/ Ask how to clear the cache.
now I see wp-admin correctly
Forum: Fixing WordPress
In reply to: Wp_recovery_mode() – PHP Fatal ErrorBackup your files and database https://codex.wordpress.org/WordPress_Backups
If the url has changed you have to change the url in the new installation https://codex.wordpress.org/Moving_WordPress#Changing_Your_Domain_Name_and_URLs (Not touch other except Dashboard, wp-config.php or database https://codex.wordpress.org/Changing_The_Site_URL). Please only Dashboard, wp-config.php or database.
Then, with a plugin, it changes the URL of the post,article etc.. follow the link indicated don’t go ahead if you can’t do backups.If you use a cache plugin try disabling it from ftp wp-contens/plugin/yuorplugin/, or database
Forum: Fixing WordPress
In reply to: The requested URL /wp-admin/null was not found on this server errorAsk your hosting for more information on CloudFlare, some even change wordpress to match cloudflare. This applies only if you do not download wordpress from wordpress.org. To avoid the loop problem, download the CloudFlare plugin https://wordpress.org/plugins/cloudflare/ so you will also have http2/server push if enabled through constant routes in the wp-config.php file.
Cloudflare (if Universal SSL is enable) sends a header indicating to use http or https so you can simply set the redirect to .htaccess because the cloudflare server can be bypassedRewriteEngine On RewriteBase / RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule [^/]? https://yourdomain.com%{REQUEST_URI} [R=301,L]Now set Off Automatic Rules.
(If you use Flexible SSL your visitors can access your site in https but CoudFlare communicates in http with the origin server).I would create a rule of never storing the cache of /wp-admin/
https://jetpack.com/support/getting-started-with-jetpack/configure-jetpack-cloudflare/
*Do not install Cloudflare Flexible SSL because you already use the Cloudflare plugin (which creates the variable $_SERVER[‘HTTPS’] = ‘on’; ) , do not add $_SERVER[‘SERVER_PORT’] = 443 because the port should be changed only when the Cloudflare header is on https.Forum: Fixing WordPress
In reply to: Getting Turkish alphabet characters in the URL field in webbrowserinternationalized Domain Name https://www.php.net/manual/tr/function.idn-to-ascii.php
internationalized Path https://en.wikipedia.org/wiki/URL
Any utf-8 character that does not cover the characters available in the path will be converted to %HH percent-enconding.Forum: Fixing WordPress
In reply to: Updated PHP from 5.6.3 to 7.2.18 into WP 5.1.1can you create a file called test.php?
<?php if(!function_exists('mysql_connect')){ echo 'absent or non-enabled mysql library'; } if(!function_exists('mysqli_connect'))( echo 'absent or non-enabled mysqli library'; } ?>now you just need to call it from a browser http://www.yuordomain.com/test.php
Check if the mysqli library exists in the path ext/mysqlihttps://domain3.com/wp-login.php?redirect_to=https%3A%2F%2Fdomain3.com%2Fwordpress%2Fwp-admin%2F&reauth=1
Yes this is right.
With the variable $_SERVER[‘HTTP_HOST’] it is not safe but with the empty value in the define it is safe.I looked at the source code for subdirectory installations the DOMAIN_COOKIE does not seem important for the multisite subdirectory and normal installation constants but in the network.php if the www prefix is ββpresent. it will be expanded to the root of the domain example http://www.domain.com will be set for .domain.com (it will be visible on any subdomain) therefore it is better to set the define also with empty value.
define( 'WP_ALLOW_MULTISITE', true ); define('MULTISITE', true); define('SUBDOMAIN_INSTALL', false); define('DOMAIN_CURRENT_SITE', 'www.domain1.com'); define('PATH_CURRENT_SITE', '/wordpress/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1);define('COOKIEPATH',''); define('SITECOOKIEPATH',''); define('ADMIN_COOKIE_PATH',''); define('COOKIE_DOMAIN','');The multisite creates other tables in the dababase like wp_x_options where x does not necessarily have to be an incremental number COOKIEPATH should be the home, SITECOOKIEPATH site also for non multisite installations obviously the table for the latter is wp_options. I put the empty value on ADMIN_COOKIE_PATH should be the value of SITECOOKIEPATH for multisite installations subdirectory otherwise it is SITECOOKIEPATHwp-admin.
You have the network on the wordpress folder and this cookie should be in the wordpress folder while for mapped sites it depends on whether it is in root or other folders.I offer no guarantee on direct or indirect malfunctions, these are only reflections of these codes.
https://github.com/WordPress/WordPress/blob/master/wp-includes/ms-default-constants.php#L50
https://github.com/WordPress/WordPress/blob/master/wp-includes/class-wp-network.php#L299
https://github.com/WordPress/WordPress/blob/master/wp-includes/default-constants.php#L219in the network folder, only the super administrator can access, while all other roles are considered unreliable and therefore access as if they were not on multisite.
This for Super Admin https://domain1.com/wordpress/wp-admin/network/site-info.php?id=7
This for Admin for domain3 https://domain3.com/wp-admin/ (without wordpress directory).