Title: autotutorial's Replies | 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 - 1 through 15 (of 706 total)

1 [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)…
[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/2/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Warning: preg_match_all(): Compilation failed:](https://wordpress.org/support/topic/warning-preg_match_all-compilation-failed-2/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/warning-preg_match_all-compilation-failed-2/#post-13547649)
 * php 7.3 escape the hyphen in a character class 😉
    [https://3v4l.org/fRGb0](https://3v4l.org/fRGb0)
   WPBakery Page Builder ask for support [https://wpbakery.com/features/support/](https://wpbakery.com/features/support/)
   if this adds the js_composer plugin with this error Warning: preg_match_all():
   Compilation failed: invalid range in character class at offset 11 in /home/ilandedh/
   public_html/wp-content/plugins/js_composer/include/autoload/hook-vc-grid.php 
   on line 163 or temporarily use php lower than 7.3
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [.htaccess rewrite not working for WordPress in root and OJS on sub-directory?](https://wordpress.org/support/topic/htaccess-rewrite-not-working-for-wordpress-in-root-and-ojs-on-sub-directory/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/htaccess-rewrite-not-working-for-wordpress-in-root-and-ojs-on-sub-directory/#post-13446971)
 * htaccess file in child folder overrides parent directory directives, is journal
   a real directory? -d means if not directory -f means if not a regular file for
   apache if it is true I rewrite the url. however you don’t need the QSA flag.
   `
   RewriteRule ^(.*)$ /journal/index.php [L]`
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [.htaccess rewrite not working for WordPress in root and OJS on sub-directory?](https://wordpress.org/support/topic/htaccess-rewrite-not-working-for-wordpress-in-root-and-ojs-on-sub-directory/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/htaccess-rewrite-not-working-for-wordpress-in-root-and-ojs-on-sub-directory/#post-13443078)
 * Prove this
 *     ```
       <IfModule mod_rewrite.c>
       Options +FollowSymLinks
       RewriteEngine on
       RewriteBase /journal/
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteRule ^(.*)$ /journal/index.php/$1 [QSA,L]
       </IfModule>
       ```
   
    -  This reply was modified 5 years, 8 months ago by [autotutorial](https://wordpress.org/support/users/autotutorial/).
    -  This reply was modified 5 years, 8 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: [UTC time incorrect](https://wordpress.org/support/topic/utc-time-incorrect/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/utc-time-incorrect/#post-13438441)
 * You can create your own php file with the php code present at this link. Please
   Universal Time is 00:38:15 now? [https://3v4l.org/CEFHn](https://3v4l.org/CEFHn)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Standardize the timezone list](https://wordpress.org/support/topic/standardize-the-timezone-list/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/standardize-the-timezone-list/#post-13193115)
 * it is impossible to predict the future the only certainty is UTC since the time
   zone has positive or negative offsets compared to UTC. Creating a list means 
   creating a database when the project grows and there are changes to remember.
   WordPress also offers UTC or the offset directly, this is the right compromise,
   otherwise the story of IANA is recreated. Unfortunately, the database will not
   always be updated and therefore a time zone date is not portable if there has
   been a change backwards or forwards with respect to a date, e.g. Europe/Moscow
   has made several changes over the years. Asia/Tokyo is using the inverted sign
   from the IANA database but php does not guarantee its operation.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Cron scheduled to run in 79 years](https://wordpress.org/support/topic/cron-scheduled-to-run-in-79-years/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/cron-scheduled-to-run-in-79-years/#post-13187825)
 * This WooCommerce
    Check this table [https://github.com/woocommerce/action-scheduler/blob/master/classes/schema/ActionScheduler_LoggerSchema.php](https://github.com/woocommerce/action-scheduler/blob/master/classes/schema/ActionScheduler_LoggerSchema.php)
 *   Forum: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
   
   In reply to: [WP-API get posts with status=draft returns 401](https://wordpress.org/support/topic/wp-api-get-posts-with-statusdraft-returns-401/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/wp-api-get-posts-with-statusdraft-returns-401/#post-13177580)
 * > For developers making manual Ajax requests, the nonce will need to be passed
   > with each request. The API uses nonces with the action set to wp_rest. These
   > can then be passed to the API via the _wpnonce data parameter (either POST 
   > data or in the query for GET requests), or via the X-WP-Nonce header. If no
   > nonce is provided the API will set the current user to 0, turning the request
   > into an unauthenticated request, even if you’re logged into WordPress.
 * [https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/](https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [PHP Notice: Undefined index HTTP_HOST](https://wordpress.org/support/topic/php-notice-undefined-index-http_host-5/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/php-notice-undefined-index-http_host-5/#post-13146902)
 * For wp-includes/canonical.php 536
    Change
 *     ```
       if ( strtolower( $original['host'] ) == strtolower( $redirect['host'] ) ||
       		( strtolower( $original['host'] ) != 'www.' . strtolower( $redirect['host'] ) && 'www.' . strtolower( $original['host'] ) != strtolower( $redirect['host'] ) ) ) {
       		$redirect['host'] = $original['host'];
       	}
       ```
   
 * to
 *     ```
       if ( ! isset( $original['host'] ) ) {
       // fixing notice host
       $original['host'] = '';
       }
       if ( strtolower( $original['host'] ) == strtolower( $redirect['host'] ) ||
       		( strtolower( $original['host'] ) != 'www.' . strtolower( $redirect['host'] ) && 'www.' . strtolower( $original['host'] ) != strtolower( $redirect['host'] ) ) ) {
       		$redirect['host'] = $original['host'];
       	}
       ```
   
 * For ms-settings.php i’m at the work
    -  This reply was modified 5 years, 10 months ago by [autotutorial](https://wordpress.org/support/users/autotutorial/).
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Custom REST endpoint doesn’t receive POST data](https://wordpress.org/support/topic/custom-rest-endpoint-doesnt-receive-post-data/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/custom-rest-endpoint-doesnt-receive-post-data/#post-13141507)
 * You must send string name=value+hi (+ is percent encoding send of one space blank)
   to be visible at $_POST php code or it is empty array 🙂
    [https://developer.mozilla.org/it/docs/Web/API/XMLHttpRequest/Usare_XMLHttpRequest#Inviare_form_e_caricare_file](https://developer.mozilla.org/it/docs/Web/API/XMLHttpRequest/Usare_XMLHttpRequest#Inviare_form_e_caricare_file)
   Method: POST; Encoding type: application/x-www-form-urlencoded (default):
    -  This reply was modified 5 years, 10 months ago by [autotutorial](https://wordpress.org/support/users/autotutorial/).
    -  This reply was modified 5 years, 10 months ago by [autotutorial](https://wordpress.org/support/users/autotutorial/).
    -  This reply was modified 5 years, 10 months ago by [Yui](https://wordpress.org/support/users/fierevere/).
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [Subdomain Multisite Unavailable](https://wordpress.org/support/topic/subdomain-multisite-unavailable/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/subdomain-multisite-unavailable/#post-12389336)
 * WordPress does not configure your DNS, this job belongs to your hosting.
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [Defining UPLOADS location on multisite results in “too many redirects”](https://wordpress.org/support/topic/defining-uploads-location-on-multisite-results-in-too-many-redirects/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/defining-uploads-location-on-multisite-results-in-too-many-redirects/#post-12389256)
 * `RewriteBase /subfolder/` this / for root directory.
    Read you set-up, [http://domain.com/subfolder/wp-admin/network/setup.php](http://domain.com/subfolder/wp-admin/network/setup.php)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [?cat=-1 Indexed Versions Of Homepage](https://wordpress.org/support/topic/cat-1-indexed-versions-of-homepage/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/cat-1-indexed-versions-of-homepage/#post-12387968)
 * the query string should be used when you have not clicked save for the Pretty
   Permalink (htaccess) setting.
 * > [Using Permalinks](https://wordpress.org/support/article/using-permalinks/)
 *   Forum: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
   
   In reply to: [Manually copied site times out](https://wordpress.org/support/topic/manually-copied-site-times-out/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/manually-copied-site-times-out/#post-12387961)
 * WordPress stores information in the database you must also use a Better Search
   Replace, if you can access wp-admin or otherwise the interconnectit script search
   and replace.
    [https://wordpress.org/support/article/moving-wordpress/#changing-your-domain-name-and-urls](https://wordpress.org/support/article/moving-wordpress/#changing-your-domain-name-and-urls)
   If it is not a multisite you must check wp_options Home and Siteurl (without 
   final slash)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [domain name](https://wordpress.org/support/topic/domain-name-22/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/domain-name-22/#post-12387007)
 * 1) You need to ask for more information at your hosting.
    2) Ask if you can add
   Domains addon (if the answer is no, you cannot move wordpress) 3) Almost permalink
   indicates you are using PATHINFO `/index.php/`, ask your hosting if htaccess 
   is supported instead. Pretty Permalink (mod_rewrite , htaccess) and other [https://wordpress.org/support/article/using-permalinks/](https://wordpress.org/support/article/using-permalinks/)
   Update your settings, change plain click save, change Pretty Permalink click 
   save.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Event scheduled with wp_schedule_single_event is executing more than once](https://wordpress.org/support/topic/event-scheduled-with-wp_schedule_single_event-is-executing-more-than-once/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/event-scheduled-with-wp_schedule_single_event-is-executing-more-than-once/#post-12386577)
 *     ```
       add_filter( 'cron_schedules', 'cron_add_tenminutes' );
   
        function cron_add_tenminutes( $schedules ) {
        	// Adds once 10 minutes to the existing schedules.
        	$schedules['10min'] = array(
        		'interval' => 10 * MINUTE_IN_SECONDS,
        		'display' => __( 'Every 10 minutes' )
        	);
        	return $schedules;
        }
   
       function test() {
       $args_1 = array( '123' );
       //$var return timestamp , timestamp update or false
         if ( ( ! ( $var = wp_next_scheduled( 'myevent', $args_1 ) ) ) || ( ( ( $var + ( 10 * MINUTE_IN_SECONDS ) ) < time() ) && wp_clear_scheduled_hook( 'myevent', $args_1 ) >= 0 ) ) {
           wp_schedule_event( time(), '10min', 'myevent', $args_1 );
         }
       return $var;
       }
   
       $args_1 = array( '123' );
       function do_this_tenminutes( $args_1 ) {
           // do something every hour
       }
       add_action( 'myevent', 'do_this_tenminutes', 10, 1 );
       test();
       ```
   
 * if $args is different WordPress creates a scheduled event for each iteration 
   my code shows a single manual event with $args (‘123’) for 10 minutes.
    This 
   code delete all hook myevent for this $args. `wp_clear_scheduled_hook( 'myevent',
   array ( '123' ) );`

Viewing 15 replies - 1 through 15 (of 706 total)

1 [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)…
[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/2/?output_format=md)