Title: autotutorial's Replies - page 27 | WordPress.org

---

# autotutorial

  [  ](https://wordpress.org/support/users/autotutorial/)

 *   [Profile](https://wordpress.org/support/users/autotutorial/)
 *   [Topics Started](https://wordpress.org/support/users/autotutorial/topics/)
 *   [Replies Created](https://wordpress.org/support/users/autotutorial/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/autotutorial/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/autotutorial/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/autotutorial/engagements/)
 *   [Favorites](https://wordpress.org/support/users/autotutorial/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 391 through 405 (of 706 total)

[←](https://wordpress.org/support/users/autotutorial/replies/page/26/?output_format=md)
[1](https://wordpress.org/support/users/autotutorial/replies/?output_format=md) 
[2](https://wordpress.org/support/users/autotutorial/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/autotutorial/replies/page/3/?output_format=md)…
[26](https://wordpress.org/support/users/autotutorial/replies/page/26/?output_format=md)
27 [28](https://wordpress.org/support/users/autotutorial/replies/page/28/?output_format=md)…
[46](https://wordpress.org/support/users/autotutorial/replies/page/46/?output_format=md)
[47](https://wordpress.org/support/users/autotutorial/replies/page/47/?output_format=md)
[48](https://wordpress.org/support/users/autotutorial/replies/page/48/?output_format=md)
[→](https://wordpress.org/support/users/autotutorial/replies/page/28/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [https changing to http](https://wordpress.org/support/topic/https-changing-to-http-2/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/https-changing-to-http-2/#post-12066552)
 * When you use WordPress for the first time, everything related to the path will
   be saved in your database so if you used http it is right that your images are
   on http. The url change refers only to the url of the site and the core files.
   
   [Change site url and change url from database](https://wordpress.org/support/article/moving-wordpress/#changing-your-domain-name-and-urls)
 * If you don’t use WordPress installed from the package or with a click from your
   hosting run this guide for cloudflare.
    [https://wordpress.org/support/topic/301-redirect-after-cloudflare-ssl/#post-12015233](https://wordpress.org/support/topic/301-redirect-after-cloudflare-ssl/#post-12015233)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [HTTP Error When Uploading Images](https://wordpress.org/support/topic/http-error-when-uploading-images-36/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/http-error-when-uploading-images-36/#post-12066506)
 * 1)Write this down to wp-config.php before calling wp-settings.php
 *     ```
       define('WP_DEBUG',true);
       define('WP_DEBUG_LOG', true);
       $show_errors = true;
       ```
   
 * 2)Backup your files and database.
 * > [WordPress Backups](https://wordpress.org/support/article/wordpress-backups/)
 * 3)Ask your hosting if you can overwrite the WordPress core files if your hosting
   gives you the green light overwrite the core files for the use of wordpress 3.7
   you can go to the last current version (minimum php 5.6.20 for WordPress 5.2 
   otherwise minimum php 5.2.4 for the antecedent versions).
    [https://wordpress.org/support/article/updating-wordpress/#manual-update](https://wordpress.org/support/article/updating-wordpress/#manual-update)
 * otherwise if you use WordPress less than 3.7 you have to perform the extended
   update every two minor … for WordPress 3.5 means update to 3.5.2 when available
   otherwise it advances.
 * > [Upgrading WordPress – Extended Instructions](https://wordpress.org/support/article/upgrading-wordpress-extended-instructions/)
 * 4)When you don’t use the site or you have no errors you have to disable debugging
   in this way
 *     ```
       /*define('WP_DEBUG',true);
       define('WP_DEBUG_LOG', true);
       $show_errors = true;*/
       ```
   
 * 5)If you still can’t, set the default theme, disable plugins by renaming the 
   plugins folder.
    Many times the error is because you do not correctly update 
   manually, follow the instructions I gave you in step 3.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Hows to create a redirection “wildcard” function](https://wordpress.org/support/topic/hows-to-create-a-redirection-wildcard-function/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/hows-to-create-a-redirection-wildcard-function/#post-12065953)
 * If $currenturl_relative returns the path with two slugs you can also temporarily
   insert a variable containing only the two slugs.
 *     ```
       <?php
       $currenturl_relative = '/devel/lms/ja/lessons/planning-a-meeting-int/';
       $start_url = dirname(dirname($currenturl_relative)).'/';
       $slug_all = substr($currenturl_relative,strlen($start_url));
       switch ($start_url) {
       case '/devel/lms/ja/';
       preg_match( '|^([^/]+)+/([^/]+)+/$|', $slug_all, $out );
   
       if(!empty($out))
       {
       $out[0] = $out[1];
       $out[1] = $out[2];
       unset($out[2]);
       // Without start and end slash
       var_dump( $out );
       }
       break;
   
       default:
       return;
       }
       ```
   
 * Fix with preg_match…
 *     ```
       <?php
       //$string = '/devel/lms/ja/lessons/';
       $string = '/devel/lms/ja/lessons/planning-a-meeting-int/';
   
       preg_match( '|^/devel/lms/ja/([^/]+)+/([^/]+)+/$|', $string, $out );
   
       if(!empty($out))
       {
       $out[0] = $out[1];
       $out[1] = $out[2];
       unset($out[2]);
       // Without start and end slash
       var_dump( $out );
       }
       ```
   
    -  This reply was modified 6 years, 7 months ago by [autotutorial](https://wordpress.org/support/users/autotutorial/).
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Hows to create a redirection “wildcard” function](https://wordpress.org/support/topic/hows-to-create-a-redirection-wildcard-function/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/hows-to-create-a-redirection-wildcard-function/#post-12065675)
 *     ```
       <?php
   
       //$string = '/devel/lms/ja/lessons/';
       $string = '/devel/lms/ja/lessons/planning-a-meeting-int/';
   
       preg_match_all( '|^/devel/lms/ja/([^/]+)/([^/]*)/$|', $string, $out );
   
       if(!empty($out[1]))
       {
       $out[0] = $out[1][0];
       $out[1] = $out[2][0];
       unset($out[2]);
       // Without start and end slash
       var_dump( $out );
       }
       ```
   
 * leassons or quizzle is first slug
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Can’t Log In to WordPress and Can’t change password](https://wordpress.org/support/topic/cant-log-in-to-wordpress-and-cant-change-password/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/cant-log-in-to-wordpress-and-cant-change-password/#post-12059686)
 * [https://wordpress.org/support/article/resetting-your-password/#through-phpmyadmin](https://wordpress.org/support/article/resetting-your-password/#through-phpmyadmin)
   
   try entering a new password in md5. If this doesn’t work, create test.php with
 *     ```
       <?php
       echo md5('hello');
       ```
   
 * and then enter phpmyadmin without md5. When you log in from the admin panel, 
   change your password in some way
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Media Library Page is 404](https://wordpress.org/support/topic/media-library-page-is-404/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/media-library-page-is-404/#post-12059636)
 * I’m responding courteously, I’m trying to help you. If you have a multisite it
   checks the configuration of your htacces from the network. If you have or do 
   not have a multisite check also your .htaccess file. It would help to know if
   you started with multi-site wordpress less than 3.5
 * Change Grid View with Lista View… do you see something?
    [https://en.support.wordpress.com/media/2/](https://en.support.wordpress.com/media/2/)
    -  This reply was modified 6 years, 7 months ago by [autotutorial](https://wordpress.org/support/users/autotutorial/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Media Library Page is 404](https://wordpress.org/support/topic/media-library-page-is-404/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/media-library-page-is-404/#post-12059594)
 * If you add the $show_errors = true; variable you will also see errors in your
   database ..
    Thank You.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Media Library Page is 404](https://wordpress.org/support/topic/media-library-page-is-404/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/media-library-page-is-404/#post-12059529)
 * [https://wordpress.org/support/topic/no-results-in-media-search/#post-12043004](https://wordpress.org/support/topic/no-results-in-media-search/#post-12043004)
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Disable the fatal error handler](https://wordpress.org/support/topic/disable-the-fatal-error-handler/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/disable-the-fatal-error-handler/#post-12059481)
 * [https://github.com/WordPress/WordPress/blob/master/wp-includes/load.php#L810](https://github.com/WordPress/WordPress/blob/master/wp-includes/load.php#L810)
 * The use of the arrow (->) is an OOP construct to access the properties and methods
   contained in a given object:
 * call object with properties is_initialized or is_active.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Disable the fatal error handler](https://wordpress.org/support/topic/disable-the-fatal-error-handler/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/disable-the-fatal-error-handler/#post-12059203)
 * Have you tried WP_DEBUG on false?
    For example [https://core.trac.wordpress.org/attachment/ticket/46825/46825.2.patch](https://core.trac.wordpress.org/attachment/ticket/46825/46825.2.patch)
   [https://core.trac.wordpress.org/ticket/46825](https://core.trac.wordpress.org/ticket/46825)
    -  This reply was modified 6 years, 7 months ago by [autotutorial](https://wordpress.org/support/users/autotutorial/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [No results in media search](https://wordpress.org/support/topic/no-results-in-media-search/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/no-results-in-media-search/#post-12057742)
 * From wordpress 2.2 UTF-8 is the default, in php 5.6 it changed the value of default_charset
   in UTF-8 (should be) and the functions htmlspecialchars from php 5.6 using the
   default_charset while from php 5.4 to php 5.5 to UTF-8 the versions necessary
   precedents ISO-8859-1 … If you see well your specials characters in your messages
   it means that you have no coding problems.
 * The problem comes from an error in your database and I’m glad you solved hide
   your debug now (disable debugging)
 *     ```
       /*define( 'WP_DEBUG', true );
       define( 'WP_DEBUG_LOG', true );
       // From WordPress => 5.1 you set the directory log, change with new locations
       // Ex. define( 'WP_DEBUG_LOG', '/tmp/wp-errors.log' );
       // Enable show error database
       $show_errors = true;*/
       ```
   
 * Certainly with a large table and the one you have enabled, your database is busy,
   but I am not an expert in this … However, I think we can get a more ordered join
   if we change the syntax to interact with the database. I hope someone can answer
   your question.
    -  This reply was modified 6 years, 7 months ago by [autotutorial](https://wordpress.org/support/users/autotutorial/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [wp_cron.php SEEMS to be the source of headers being sent prematurely?](https://wordpress.org/support/topic/wp_cron-php-seems-to-be-the-source-of-headers-being-sent-prematurely/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/wp_cron-php-seems-to-be-the-source-of-headers-being-sent-prematurely/#post-12053767)
 * If you still have the problem, headers already sent you have to try the following.
   Disable all zlib* zlib.output_compression zlib.output_compression_level zlib.
   output_handler and enable output_buffering with value 4096 in your php.ini [https://github.com/WordPress/WordPress/blob/5.2-branch/wp-includes/cron.php#L680](https://github.com/WordPress/WordPress/blob/5.2-branch/wp-includes/cron.php#L680)
 * of course you also need to edit this file [https://github.com/WordPress/WordPress/blob/master/wp-cron.php#L23](https://github.com/WordPress/WordPress/blob/master/wp-cron.php#L23)
 * [https://github.com/WordPress/WordPress/commit/742537ac3d54d695a09e0ba0bb853e068677d2e5](https://github.com/WordPress/WordPress/commit/742537ac3d54d695a09e0ba0bb853e068677d2e5)
   
   This author states when using constant wp-config.php ATERNATE_WP_CRON there may
   already be headers sent.
 * or install the live and if with zlib enabled you find the same problem the culprit
   is zlib.
    -  This reply was modified 6 years, 7 months ago by [autotutorial](https://wordpress.org/support/users/autotutorial/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [wp_cron.php SEEMS to be the source of headers being sent prematurely?](https://wordpress.org/support/topic/wp_cron-php-seems-to-be-the-source-of-headers-being-sent-prematurely/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/wp_cron-php-seems-to-be-the-source-of-headers-being-sent-prematurely/#post-12052087)
 * [@normancates](https://wordpress.org/support/users/normancates/) hello 🙂
    Update
   your old version [https://github.com/WordPress/WordPress/blob/master/wp-cron.php#L23](https://github.com/WordPress/WordPress/blob/master/wp-cron.php#L23)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [I MIGHT have fixed the infamous ob_end_flush error?](https://wordpress.org/support/topic/i-might-have-fixed-the-infamous-ob_end_flush-error/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/i-might-have-fixed-the-infamous-ob_end_flush-error/#post-12048166)
 * [@normancates](https://wordpress.org/support/users/normancates/) I’m glad you
   solved .. can you please share the bug track link?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [I MIGHT have fixed the infamous ob_end_flush error?](https://wordpress.org/support/topic/i-might-have-fixed-the-infamous-ob_end_flush-error/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/i-might-have-fixed-the-infamous-ob_end_flush-error/#post-12048023)
 * [@normancates](https://wordpress.org/support/users/normancates/) the error is
   still present but you have disabled the display on the screen. (the display on
   the screen produces output)
 * follow these instructions up to the steep third without the variable
    `$show_errors
   = true;` [https://wordpress.org/support/topic/no-results-in-media-search/#post-12043004](https://wordpress.org/support/topic/no-results-in-media-search/#post-12043004)
   your help is appreciated open a ticket as they suggested before because only 
   there is the right place for this thing.
 * if you want you can capture that variable insert this into your functions.php
   file
 *     ```
       function abc(){
       global $levels;
       error_log((int) $levels,3,dirname(__FILE__).'/error2.log');
       }
       abc();
       ```
   
 * create an error2.log file in the functions.php directory.

Viewing 15 replies - 391 through 405 (of 706 total)

[←](https://wordpress.org/support/users/autotutorial/replies/page/26/?output_format=md)
[1](https://wordpress.org/support/users/autotutorial/replies/?output_format=md) 
[2](https://wordpress.org/support/users/autotutorial/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/autotutorial/replies/page/3/?output_format=md)…
[26](https://wordpress.org/support/users/autotutorial/replies/page/26/?output_format=md)
27 [28](https://wordpress.org/support/users/autotutorial/replies/page/28/?output_format=md)…
[46](https://wordpress.org/support/users/autotutorial/replies/page/46/?output_format=md)
[47](https://wordpress.org/support/users/autotutorial/replies/page/47/?output_format=md)
[48](https://wordpress.org/support/users/autotutorial/replies/page/48/?output_format=md)
[→](https://wordpress.org/support/users/autotutorial/replies/page/28/?output_format=md)