Title: autotutorial's Replies - page 29 | 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 - 421 through 435 (of 706 total)

[←](https://wordpress.org/support/users/autotutorial/replies/page/28/?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)…
[28](https://wordpress.org/support/users/autotutorial/replies/page/28/?output_format=md)
29 [30](https://wordpress.org/support/users/autotutorial/replies/page/30/?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/30/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Website Category Leading To White Page Of Death / Error 524](https://wordpress.org/support/topic/website-category-leading-to-white-page-of-death-error-524/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/website-category-leading-to-white-page-of-death-error-524/#post-12017624)
 * means that the source server cannot handle a category of 1000 in a folder.
    [https://wordpress.org/support/topic/media-folders-on-the-server/](https://wordpress.org/support/topic/media-folders-on-the-server/)
   it is necessary to divide 1000 media files into multiple folders. If I’m right
   the problem is also present with cloudflare disabled or maybe you have more than
   100 seconds set as time limit for php.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [301 redirect after cloudflare ssl](https://wordpress.org/support/topic/301-redirect-after-cloudflare-ssl/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/301-redirect-after-cloudflare-ssl/#post-12015233)
 * here we can only talk about wordpress, port 443 is enabled on your origin server?
   
   cloudflare offers three ssl variants the flexible free-ssl mode and communicates
   with port 80 of the origin server. [https://www.cloudflare.com/ssl/](https://www.cloudflare.com/ssl/)
 * if you want to return the original visitor’s ip install mod_cloudflare to apache
   or execute ngix rewrite rules.
    [https://github.com/cloudflare/cf-ip-rewrite/blob/master/readme.md](https://github.com/cloudflare/cf-ip-rewrite/blob/master/readme.md)
 * if you want automatic cache purge, (ip rewrite only if this plugin is run) and
   other features you can download the wordpress plugin.
    [https://wordpress.org/plugins/cloudflare/](https://wordpress.org/plugins/cloudflare/)
   be careful even if you use the plugin the current port for wordpress is 80, you
   have to manually insert the change inside the cloudflare plugin. $_SERVER[‘SERVER_PORT’]
   = 443;
 * X-Forwarded-Proto http o https from Cloudflare for ssl-flessible [https://support.cloudflare.com/hc/en-us/articles/200170986-How-does-Cloudflare-handle-HTTP-Request-headers-](https://support.cloudflare.com/hc/en-us/articles/200170986-How-does-Cloudflare-handle-HTTP-Request-headers-)
 *     ```
       RewriteEngine On
       RewriteBase /
       RewriteCond %{HTTP:X-Forwarded-Proto} !https
       RewriteCond %{HTTPS} off
       RewriteRule .* https://domain.com%{REQUEST_URI} [L,R=301]
       ```
   
 *   Forum: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
   
   In reply to: [ip redirect to localhost internal ip](https://wordpress.org/support/topic/ip-redirect-to-localhost-internal-ip/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/ip-redirect-to-localhost-internal-ip/#post-12002221)
 * [https://wordpress.org/support/article/before-you-create-a-network/#restrictions](https://wordpress.org/support/article/before-you-create-a-network/#restrictions)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Fatal Error / Internal Server Error](https://wordpress.org/support/topic/fatal-error-internal-server-error/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-internal-server-error/#post-11955121)
 * Maybe your htaccess code is not correct … try changing your htaccess name and
   post your content here
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [PHP 5.4 upgrade to 5.6 unable to connect mysql](https://wordpress.org/support/topic/php-5-4-upgrade-to-5-6-unable-to-connect-mysql/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-5-4-upgrade-to-5-6-unable-to-connect-mysql/#post-11952753)
 * [https://mysqlserverteam.com/upgrading-to-mysql-8-0-default-authentication-plugin-considerations/](https://mysqlserverteam.com/upgrading-to-mysql-8-0-default-authentication-plugin-considerations/)
   
   [https://www.php.net/manual/en/mysqli.requirements.php](https://www.php.net/manual/en/mysqli.requirements.php)
   If you use libmysqlclient 5.7 onwards this takes precedence over mysql server.
   I don’t know why it works with php 5.4 I believe that php 5.4 is compatible with
   mysql 5.0.8 and later. [https://www.php.net/manual/en/mysqlnd.plugin.obtaining.php](https://www.php.net/manual/en/mysqlnd.plugin.obtaining.php)
   mysqlnd.sha256_server_public_key start from PHP 5.5.0
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Fatal Error / Internal Server Error](https://wordpress.org/support/topic/fatal-error-internal-server-error/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-internal-server-error/#post-11952125)
 * [http://folio.daratoe.com/wp-login.php](http://folio.daratoe.com/wp-login.php)
   this work?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Fatal Error / Internal Server Error](https://wordpress.org/support/topic/fatal-error-internal-server-error/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-internal-server-error/#post-11948398)
 * it seems that your worpress has lost some files, read extended update I know 
   it is frustrating but you have to work in a serene mind … obviously back up files
   and database as the guide says ..
    after uploading the files, check if they actually
   have today’s date. [https://wordpress.org/support/article/upgrading-wordpress-extended-instructions/](https://wordpress.org/support/article/upgrading-wordpress-extended-instructions/)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Memory exhausted : tenacious bug](https://wordpress.org/support/topic/memory-exhausted-tenacious-bug/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/memory-exhausted-tenacious-bug/#post-11946638)
 * 31457280/1024/1024=30MB
 *     ```
       if(!defined('WP_MEMORY_LIMIT')){
       define('WP_MEMORY_LIMIT','96M');
       }
       ```
   
 * [https://wordpress.org/support/article/editing-wp-config-php/#increasing-memory-allocated-to-php](https://wordpress.org/support/article/editing-wp-config-php/#increasing-memory-allocated-to-php)
 * > This setting increases PHP Memory only for WordPress, not other applications.
   > By default, WordPress will attempt to increase memory allocated to PHP to 40MB(
   > code is at the beginning of /wp-includes/default-constants.php) for single 
   > site and 64MB for multisite, so the setting in wp-config.php should reflect
   > something higher than 40MB or 64MB depending on your setup.
 * You have 30MB and not 40MB ,maybe you can’t use ini_set function.
 * [https://www.php.net/manual/en/ini.core.php#ini.memory-limit](https://www.php.net/manual/en/ini.core.php#ini.memory-limit)
   PHP_INI_ALL [https://www.php.net/manual/en/configuration.changes.modes.php](https://www.php.net/manual/en/configuration.changes.modes.php)
 * I left you the links, good reading .. there is also the constant wordpress maximum
   limit.
 * You need to talk to your hosting service and ask how to increase the php memory.
 * I think you use an obsolete theme or plugin if it only happens to you in the 
   administration.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [PHP 5.4 upgrade to 5.6 unable to connect mysql](https://wordpress.org/support/topic/php-5-4-upgrade-to-5-6-unable-to-connect-mysql/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-5-4-upgrade-to-5-6-unable-to-connect-mysql/#post-11946397)
 * [https://bugs.php.net/bug.php?id=74461](https://bugs.php.net/bug.php?id=74461)
   read github fix… after that you should encounter the authentication error since
   mysql 8 uses sha2 as default while before nothing
 * > Note:
   > MySQLnd always assumes the server default charset. This charset is sent during
   > connection hand-shake/authentication, which mysqlnd will use.
   > Libmysqlclient uses the default charset set in the my.cnf or by an explicit
   > call to mysqli_options() prior to calling mysqli_real_connect(), but after 
   > mysqli_init().
 * [https://www.php.net/manual/en/mysqli.real-connect.php](https://www.php.net/manual/en/mysqli.real-connect.php)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [PHP 5.4 upgrade to 5.6 unable to connect mysql](https://wordpress.org/support/topic/php-5-4-upgrade-to-5-6-unable-to-connect-mysql/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-5-4-upgrade-to-5-6-unable-to-connect-mysql/#post-11942521)
 * this is a client error that does not know the charset of the server, restarts
   mysql .. from your scrip php (no phpmyadmin) if you check the default charset
   tells you latin1? in mysql 8 the charset utf8mb4, utf8mb4_0900_ai_ci has changed.
   
   However wordpress first checks if the mysqli function exists, otherwise it uses
   mysql … [https://github.com/WordPress/WordPress/blob/master/wp-includes/wp-db.php#L623](https://github.com/WordPress/WordPress/blob/master/wp-includes/wp-db.php#L623)
   Your error [https://github.com/WordPress/WordPress/blob/5.0-branch/wp-includes/wp-db.php#L1531](https://github.com/WordPress/WordPress/blob/5.0-branch/wp-includes/wp-db.php#L1531)
    -  This reply was modified 6 years, 8 months ago by [autotutorial](https://wordpress.org/support/users/autotutorial/).
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [Domain Mapping](https://wordpress.org/support/topic/domain-mapping-55/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/domain-mapping-55/#post-11684266)
 * Prove this
 *     ```
       define('DOMAIN_CURRENT_SITE', 'dev.nrocnetwork.org');
       define('PATH_CURRENT_SITE', '/nroc/');
       ```
   
 * Or maybe
 *     ```
       define('DOMAIN_CURRENT_SITE', 'dev.nroc.org');
       define('PATH_CURRENT_SITE', '/');
       ```
   
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [Domain Mapping](https://wordpress.org/support/topic/domain-mapping-55/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/domain-mapping-55/#post-11683796)
 * I read your problem more carefully if [https://dev.nrocnetwork.org/nroc/](https://dev.nrocnetwork.org/nroc/)
   has been mapped to [https://dev.nroc.org/](https://dev.nroc.org/) you will have
   problems with cookies.
    The domain mapping does not indicate how to proceed [https://wordpress.org/support/article/wordpress-multisite-domain-mapping/](https://wordpress.org/support/article/wordpress-multisite-domain-mapping/)
   First check what you saved in the database, this link suggests multisite url 
   modification but it is also fine to check the right paths. Do not change anything.
   [https://wpengine.com/support/how-to-change-a-multi-site-primary-domain/](https://wpengine.com/support/how-to-change-a-multi-site-primary-domain/)
   Comment on your define in wp-config.php.
 * Now all cookies refer to this domain. [https://dev.nroc.org/](https://dev.nroc.org/)
 *     ```
       /* these were recommended for fixing a redirect loop, but they are not helping now */
       define('COOKIE_DOMAIN', '');
       define('ADMIN_COOKIE_PATH', '');
       define('COOKIE_DOMAIN', '');
       define('COOKIEPATH', '');
       define('SITECOOKIEPATH', '');
       ```
   
 * your primary site is in the nroc folder when it is mapped in the root folder,
   unfortunately in the case of a different domain through code it is difficult 
   to replicate the exact location of the cookie.
    I’m not sure if a primary site
   can be mapped to anything else if it’s possible to change “only” your wp-config.
   php from old to new domain. (PATH_CURRENT_SITE and DOMAIN_CURRENT_SITE etc ..)
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [Domain Mapping](https://wordpress.org/support/topic/domain-mapping-55/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/domain-mapping-55/#post-11683264)
 * Yes my answer was designed for this post the dev domain does not exist in the
   ssl certificate and other useful information.
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [Domain Mapping](https://wordpress.org/support/topic/domain-mapping-55/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/domain-mapping-55/#post-11683161)
 * [https://letsencrypt.org/docs/faq/](https://letsencrypt.org/docs/faq/)
 * > Can I get a certificate for multiple domain names (SAN certificates or UCC 
   > certificates)?
   >  Yes, the same certificate can contain several different names
   > using the Subject Alternative Name (SAN) mechanism.
   > Does Let’s Encrypt issue wildcard certificates?
   >  Yes. Wildcard issuance must
   > be done via ACMEv2 using the DNS-01 challenge. See this post for more technical
   > information.
 * Wildcard for subdomain.domain1.com not for domain1.com
    UCC with SAN only allowed
   fully qualified domain names (FQDN)
 * please can you show your htaccess?
    If you install a multisite based on subdirectories(
   percoso) as the host is the same for the primary site and secondary site you 
   should not have cookie problems. Use only the unknown mode of chrome.
 * I access very well without having to log in as superuser again from the root 
   or any other folder (main site and secondary site with the same domain name)
   
   Edit: I tried to see the headers (Set-Cookie create cookie) of /nroc/wp-login.
   php many are enabled for the root directory and this behavior is not the wordpress
   default. The plugin may have created the mapping badly. [https://websniffer.cc/?url=https://dev.nrocnetwork.org/nroc/wp-login.php?redirect_to=https%3A%2F%2Fdev.nrocnetwork.org%2Fnroc%2Fwp-admin%2F&reauth=1](https://websniffer.cc/?url=https://dev.nrocnetwork.org/nroc/wp-login.php?redirect_to=https%3A%2F%2Fdev.nrocnetwork.org%2Fnroc%2Fwp-admin%2F&reauth=1)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Illeagal string offset](https://wordpress.org/support/topic/illeagal-string-offset-2/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/illeagal-string-offset-2/#post-11682901)
 * it depends on how the code checks $atts if it’s empty I do what I have to do 
   after that code initializes the array.
    example
 *     ```
       if(empty($atts)){
       //this code
       }
       ```
   
 * if in any case the indexfor_not_logged_in is defined with yes or no
    This inizialized
   array `$atts = array();`
 *     ```
       $atts['indexfor_not_logged_in'] = 'yes';
       // For user without login
       ```
   
 *     ```
       $atts['indexfor_not_logged_in'] = 'no';
       // For user with login
       ```
   
 * if it is not present in all cases, I initialize the array as in the previous 
   code and add a verification of the existence of the index.
 *     ```
       if(!empty($atts['indexfor_not_logged_in']) && $atts['indexfor_not_logged_in'] == 'yes'){
       // Your code here
       }
       ```
   
 * [https://www.php.net/manual/en/language.types.array.php](https://www.php.net/manual/en/language.types.array.php)
 * For multidimensional array $arr[‘a’][‘b’] or $arr[‘a’][‘c’]
    `$arr = array('a'
   => array());`
 * the best way is to contact the developer that with php 7.1 => this problem exists
   🙂

Viewing 15 replies - 421 through 435 (of 706 total)

[←](https://wordpress.org/support/users/autotutorial/replies/page/28/?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)…
[28](https://wordpress.org/support/users/autotutorial/replies/page/28/?output_format=md)
29 [30](https://wordpress.org/support/users/autotutorial/replies/page/30/?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/30/?output_format=md)