autotutorial
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Should setting WP_DEBUG_DISPLAY to false ALWAYS hide PHP messages?it’s just a test code that you have to try otherwise you can’t understand .. The WordPress constants and in the case of WP_DEBUG_DISPLAY/WP_DEBUG_LOG will be assigned only if the WP_DEBUG is true, if not explicitly specified WP_DEBUG_LOG on false it will be created a debug.log file
Forum: Fixing WordPress
In reply to: Should setting WP_DEBUG_DISPLAY to false ALWAYS hide PHP messages?create test.php
<?php error_reporting(-1); ini_set('display_errors','Off');create myload.php
<?php include dirname(__FILE__).'/test.php'; //Constant undefined Myconst;Run http://mydomain.com/myload.php
when you enable debugging you can turn off the error display, otherwise errors are always visible.
<?php //good define('WP_DEBUG', true); define('WP_DEBUG_DISPLAY', false);<?php //Bad define('WP_DEBUG', false); define('WP_DEBUG_DISPLAY', false);- This reply was modified 6 years, 6 months ago by autotutorial. Reason: Fix
Forum: Fixing WordPress
In reply to: WordPress Website Opens a File instead of the pageI’m sorry not have any idea.
You have wp-blog-header.php on root?- This reply was modified 6 years, 6 months ago by autotutorial.
- This reply was modified 6 years, 6 months ago by autotutorial.
Forum: Fixing WordPress
In reply to: WordPress Website Opens a File instead of the pageCheck your rule on root .htaccess and check on root if index.php have redirect.
https://github.com/WordPress/WordPress/blob/master/index.php
I see redirect.Forum: Fixing WordPress
In reply to: REST API ProblemRead please, send this fix on page plugin Yoast.
Forum: Fixing WordPress
In reply to: REST API ProblemThis is a problem of cache (your server, load balancing, reverse proxy and/or your plugin have copy of page with pretty Permalink, but your htaccess is missing now).
If you are using non-pretty permalinks, you should pass the REST API route as a query string parameter. The route http://oursite.com/wp-json/ in the example above would hence be http://oursite.com/?rest_route=/
Set your missing .htaccess and it work 😉
Pretty PermalinkThe configuration wizard relies on a built-in WordPress tool called the REST API. Per the screenshot, this tool is returning to 404 Not Found which means that either the core files are missing or your site / server has disabled the REST API.
There are several reasons when a status code other than http 200 comes out, the 404 code often indicates incorrect request in this case forward this technical advice, yoast if it meets a 404 with all methods and indicates if it is a
problem of http://oursite.com/index.php/wp-json/ PATHINFO (Almost Pretty), http://oursite.com/index.php/wp-json/ .htaccess (Pretty Permalink) or http://oursite.com/?rest_ruote=/ query string (Ugly).- This reply was modified 6 years, 6 months ago by autotutorial. Reason: Edit for missing content
Forum: Fixing WordPress
In reply to: Should setting WP_DEBUG_DISPLAY to false ALWAYS hide PHP messages?From wordpress 5.2 the WSOD has been added which if enabled should receive php errors or warnings as well as fatal errors. with the function error_get_last() fatal errors can also be recovered. https://developer.wordpress.org/reference/functions/wp_is_fatal_error_handler_enabled/
in php 7 the errors turn into exceptions (in php legacy it can be anything, for example I am on php 7.1 and I have the php 5 behavior, I had to create a set_error_handle to suppress the errors because I can’t use the ini_set function).
WordPress can only suppress errors withdefine( 'WP_DEBUG_DISPLAY', false );
, if ini_set not disabled and the error does not reside in load.php. https://github.com/WordPress/WordPress/blob/master/wp-includes/load.php#L277fatal errors will be intercerted by error_get_last () (if your provider makes it work or you have not activated an error or exception management in the same call, this for php 5)
Forum: Fixing WordPress
In reply to: Not Found The requested URL /xxxxx was not found on this server.I’m sorry for your problem.
You have WordPress on ROOT folder??
You have WordPress multisite or WordPress Normal?Forum: Fixing WordPress
In reply to: Update php and wordpressBefore your backup file and mysql
Then with PHP 5.2.4 3.1 => 3.1.2, 3.1.4, 3.2.1, 3.3.1, 3.3.3, 3.4.2, 3.5.2, 3.6.1 stop 3.7.
The final steep PHP 5.6.20 WordPress 5.2.
Info for backup , exendends upgrade and info from 3.7 to 5.2
Upgrading Across Multiple Versions
Ps. with all plugins disabled and default theme.
Minimum PHP Version Required to run WordPress from 3.2 to 5.1 is PHP 5.2.4- This reply was modified 6 years, 6 months ago by autotutorial.
Forum: Fixing WordPress
In reply to: WP-Config ErrorDon’t read the link but only my code … it’s a pleasure to be useful.
Forum: Fixing WordPress
In reply to: WP-Config Errordefine('WP_DEBUG',false); // Without and slash define('WP_HOME','http://www.mysite.com'); define('WP_SITEURL','http://www.mysite.com')Removing your /my-subdir intorno hataccess.
Example moving WordPress from root to my-subdir Moving WordPress
That is written here (my code), like I wrote you. Remove the three define probably you have inserted some superfluous character and it gives you error … If with my advice everything works do not install, delete or create anything because I write to you what to do in the next step.
Forum: Fixing WordPress
In reply to: Chaning from IP to domain causing cookie error//Trust HOST if(!($_SERVER['HTTP_HOST'] == 'myhost.com')) { //Trust IP for Trust HOST //Read if you have $_SERVER['SERVER_ADDRESS'] if($_SERVER['REMOTE_ADRESS'] === '21.20.20.20') { define( 'WP_HOME', 'http://21.20.20.20' ); define( 'WP_SITEURL', 'http://21.20.20.20' ); } }if you use an ip other than localhost, then the inverse resolution of your hostname in this example myhost.com is ip 21.20.20.20. Replace myhost.com with your host and your ip referring to hostname
the data in the database are stored with myhost.com and before executing a search and replace exclusively by plugins, make backups of your files and the database and test if with this code you can enter .. I’m not sure but since ip and hostname share the same storage memory and use the conditional (if of the first line of code) maybe you can view your photos myhost.com/uploads/ even when you use your ip ..
Recommendation when using your ip do not change or add anything … do not touch pages or articles … otherwise in the database you will have the old data on myhost.com while the new ones on 21.20.20.20
- This reply was modified 6 years, 6 months ago by autotutorial.
Forum: Fixing WordPress
In reply to: HTTP Error When Uploading ImagesI notice that you use the CloudFlare reverse proxy, if you have installed WordPress from a zip file you can activate this pligin press clear the cache.
https://wordpress.org/support/topic/301-redirect-after-cloudflare-ssl/#post-12015233
Maybe you have jascript errorhttps://docs.wp-rocket.me/article/18-using-wp-rocket-with-cloudflare off Rocket Loader
- This reply was modified 6 years, 6 months ago by autotutorial.
Forum: Fixing WordPress
In reply to: Update issueYour WordPress version from version.php?
Example of 5.2.5 alpha https://github.com/WordPress/WordPress/blob/5.2-branch/wp-includes/version.php#L16Forum: Fixing WordPress
In reply to: https changing to httpconstants can also be used by some plugins .. disable all plugins and if you go back to https tell this to the plugin developer.
here are listed all the methods to modify the url. https://wordpress.org/support/article/changing-the-site-url/