Title: autotutorial's Replies - page 35 | 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 - 511 through 525 (of 706 total)

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Upgrade Issues](https://wordpress.org/support/topic/upgrade-issues-29/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/upgrade-issues-29/#post-11590573)
 * are you able to use php lower than php 5.4? you will need php 5.6.20 or highter
   from wordpress 5.2 for wordpress 5.1.1 php 5.2.4 or highter
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Upgrade Issues](https://wordpress.org/support/topic/upgrade-issues-29/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/upgrade-issues-29/#post-11590216)
 * when it comes to 3.0.4 and 3.0.6 it forces the database to be updated [https://wordpress.org/support/article/updating-wordpress/#step-2-update-your-installation](https://wordpress.org/support/article/updating-wordpress/#step-2-update-your-installation)
   and repair database [https://codex.wordpress.org/Editing_wp-config.php#Automatic_Database_Optimizing](https://codex.wordpress.org/Editing_wp-config.php#Automatic_Database_Optimizing)
   if this doesn’t work, make tables optimized by phpmyadmin
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Upgrade Issues](https://wordpress.org/support/topic/upgrade-issues-29/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/upgrade-issues-29/#post-11589834)
 * did you do all these steps? 2.9.2 3.0 3.0.2 3.0.4 3.0.6
    How many times did you
   appear on video to upgrade the database?
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [set cookie won’t work](https://wordpress.org/support/topic/n-set-cookie-wont-work/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/n-set-cookie-wont-work/#post-11589729)
 *     ```
       <?php
       error_reporting(-1);
       ini_set('display_errors',1);
       ini_set('display_startup_errors',1);
       //add_shortcode('bbr_account', 'bbr_account_func');
       $user_info['id'] = 2;
       bbr_account_func();
       function bbr_account_func() {
       //if(isset($_COOKIE['account_id'])){
       global $user_info;
       return ((int) $_COOKIE['account_id']);
       /*}
       return false;*/
       }
       /*if(!is_admin()) {
       Global $wp;
       $dslug = $_SERVER['REQUEST_URI'];
       if($dslug=='/dpi-sign-in/') {
       add_action('init', 'bbr_login');
       }
       }*/
       bbr_login();
       function bbr_login() {
       /*Global $wpdb;
       $uip = $_SERVER['REMOTE_ADDR'];
       $login_info = $wpdb->get_row('SELECT * FROM '.$wpdb->prefix.'bbr_login WHERE ip LIKE "'.$uip.'"', ARRAY_A);
       if(!is_null($login_info)) {
       $user_info = $wpdb->get_row('SELECT * FROM '.$wpdb->prefix.'bbr_usrs WHERE id = '.$login_info['id'], ARRAY_A);
       $wpdb->delete($wpdb->prefix.'bbr_login',array('id'=>$login_info['id']));*/
       global $user_info;
       setcookie('account_id',$user_info['id'],time()+3600,'/','www.register.dynamicpathwaysinc.com');
       //header('refresh: 4; url=/account');
       }
       ```
   
 * I made a conversion from wordpress php to pure php … setcookie creates the right
   header to send and then the browser will be free to accept or not this command,
   the next time the browser sends the cookie does not generate warring while if
   it does it is because it does not exist with the isset check function when it
   exists so you don’t get an error.
    Only if the url starts and ends exactly like
   this [http://www.register.dynamicpathwaysinc.com/](http://www.register.dynamicpathwaysinc.com/)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Upgrade Issues](https://wordpress.org/support/topic/upgrade-issues-29/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/upgrade-issues-29/#post-11589197)
 * 😉
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [set cookie won’t work](https://wordpress.org/support/topic/n-set-cookie-wont-work/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/n-set-cookie-wont-work/#post-11589141)
 *     ```
       add_shortcode('bbr_account', 'bbr_account_func');
       function bbr_account_func() {
       if(isset($_COOKIE['account_id'])){
       return ((int) $_COOKIE['account_id'])
       }
       return false;
       }
       ```
   
 * Cast int for account_id or false on fail
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [set cookie won’t work](https://wordpress.org/support/topic/n-set-cookie-wont-work/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/n-set-cookie-wont-work/#post-11588744)
 * `setcookie('account_id',$user_info['id'],time()+3600,'/','www.domain.com');`
   
   $_COOKIE will be created after the next interaction.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [set cookie won’t work](https://wordpress.org/support/topic/n-set-cookie-wont-work/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/n-set-cookie-wont-work/#post-11587898)
 * you cannot set cookies outside the domain where the php code is running.
    If 
   I’m right, it creates a setcookie code outside the wordpres context, that is,
   it creates a php code where you set a cookie for the external domain and from
   the external domain checks if that cookie exists.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [wp-admin doesn’t load: page redirected you too many times](https://wordpress.org/support/topic/wp-admin-doesnt-load-page-redirected-you-too-many-times/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wp-admin-doesnt-load-page-redirected-you-too-many-times/#post-11587789)
 * you read the is_ssl function where it indicates to use a reverse proxy code or
   load balancing that you need to insert into your wp-config.php before require_once?
   
   Re-enable the cloudflare, deactivate the pause.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [wp-admin doesn’t load: page redirected you too many times](https://wordpress.org/support/topic/wp-admin-doesnt-load-page-redirected-you-too-many-times/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wp-admin-doesnt-load-page-redirected-you-too-many-times/#post-11582890)
 * [https://codex.wordpress.org/Function_Reference/is_ssl](https://codex.wordpress.org/Function_Reference/is_ssl)
   
   Since you use CloudFlare to manage your site for the CloudFlare plugin and not
   other types of https plugins. If you install this plugin it automatically clears
   the cache in case of theme change, plugin download etc and obviously restores
   to your real ip address. [https://wordpress.org/plugins/cloudflare/](https://wordpress.org/plugins/cloudflare/)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Upgrade Issues](https://wordpress.org/support/topic/upgrade-issues-29/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/upgrade-issues-29/#post-11582007)
 * 2.9.2 3.0 3.0.2 3.0.4 3.0.6 3.1 3.1.2 3.1.4 3.2 3.2.1 3.3 3.3.2 3.4 3.4.1 3.4.2
   3.5 3.5.1 3.5.2 3.6 3.6.1 3.7 to CURRENT version of WordPress [https://wordpress.org/support/article/upgrading-wordpress-extended-instructions/](https://wordpress.org/support/article/upgrading-wordpress-extended-instructions/)
 * > WordPress MU releases made prior to MU being merged into WordPress 3.0
 * mu-2.9.2 mu-3.0
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [cURL error 28 and REST-API call failure in Site Health Check](https://wordpress.org/support/topic/curl-error-28-and-rest-api-call-failure-in-site-health-check/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/curl-error-28-and-rest-api-call-failure-in-site-health-check/#post-11579309)
 * sorry but the test.php you did had? 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [cURL error 28 and REST-API call failure in Site Health Check](https://wordpress.org/support/topic/curl-error-28-and-rest-api-call-failure-in-site-health-check/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/curl-error-28-and-rest-api-call-failure-in-site-health-check/#post-11577697)
 * I have no experience in this.
    First contact your host.
 * [https://www.php.net/manual/en/openssl.requirements.php](https://www.php.net/manual/en/openssl.requirements.php)
 * > In order to use the OpenSSL functions you need to install the » OpenSSL library.
   > PHP 5 requires at least OpenSSL >= 0.9.6. However later PHP 5 versions have
   > some compilation issues and should be used at least with OpenSSL >= 0.9.8 which
   > is also a minimal version for PHP 7.0. Other versions (PHP >= 7.1.0) require
   > OpenSSL >= 1.0.1.
 * Verification of certificates from php 5.6.0
    Note* otherwise you can set the 
   certificate as master or php.ini
 *     ```
       <?php
       var_dump(openssl_get_cert_locations());
       ```
   
 * If default_cert_file and default_cert_dir exist will be used as default.
    Create
   a file called test.php
 *     ```
       <?php
       error_reporting(-1);
       $ch = curl_init('https://tlstest.paypal.com/');
       curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
       curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
       curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
       curl_setopt($ch, CURLOPT_FORBID_REUSE, 1);
       curl_setopt($ch, CURLOPT_HTTPHEADER, array('Connection: Close'));
       // In wamp-like environments that do not come bundled with root authority certificates,
       // please download 'cacert.pem' from "https://curl.haxx.se/docs/caextract.html" and set
       // the directory path of the certificate as shown below:
       //curl_setopt($ch, CURLOPT_CAINFO, dirname(__FILE__) . '/wp-includes/certificates/ca-bundle.crt');
       if ( !($res = curl_exec($ch)) ) {
          error_log("Got " . curl_error($ch) . " when processing TLS 1.2 data",3,dirname (__FILE__).'/test.log');
         curl_close($ch);
         exit;
       }
       curl_close($ch);
       echo $res;
       ```
   
 * call it from browser if all ok paypal replies with ok otherwise test.log will
   be created with the error curl.
    Delete the file test.php and test.log
 * here is an example on how to update openssl 1.0.0 and curl for php legacy [https://tomthorp.me/blog/installing-custom-openssl-and-curl-legacy-php](https://tomthorp.me/blog/installing-custom-openssl-and-curl-legacy-php)
 * > If you are running multiple PHP versions of PHP-FPM, do take special care that
   > you don’t add your custom build directory as part of ldconfig . The effect 
   > of adding your build directory in as part of ldconfig, will tell linux to look
   > at your build directory first, before looking at the default installed drivers.
   > As a result, the next time any other PHP-FPM services are restarted, it will
   > pick up the drivers in your build directory that are incompatible, and will
   > make that PHP-FPM service unstable.
   > To make sure your custom version of PHP doesn’t interfere with your other PHP-
   > FPM services, you have to add an over-ride into your PHP-FPM service. This 
   > will contain an environment variable that tells the service to use the drivers
   > in this path.
 * Again, ask your host for advice if you are not familiar with the commands, please
   do not change anything, but try to explore this topic elsewhere 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Multisite Redirect Errors in WP 5.2 Update](https://wordpress.org/support/topic/multisite-redirect-errors-in-wp-5-2-update/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/multisite-redirect-errors-in-wp-5-2-update/#post-11575385)
 * Hi I’m sorry for your problem, sometimes you can’t predict what will happen in
   the future, from php 7.2 the count function generates an warning if it is not
   an array or object. [https://php.net/manual/en/function.count.php](https://php.net/manual/en/function.count.php)
   
   In summary you can be sure that a plugin or theme fully supports php 7.3 only
   when it is explicitly written. So you will have to do without these themes or
   plugins the problem is whether these themes or plugins modify wordpress behavior
   and that is to say that if you do not use this plugin or theme you will no longer
   have the same function structure as you had before.
 * From wordpress 5.2 to 5.2.1 you need php 5.6.20 or later.
    I believe the error
   of the redirects is due to themes or plugins that do not support php 7.3
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Can’t access to dashboard ( says error too many redirects)](https://wordpress.org/support/topic/cant-access-to-dashboard-says-error-too-many-redirects/)
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/cant-access-to-dashboard-says-error-too-many-redirects/#post-11573054)
 * Can you show the htaccess content?
    What wordpress version did you start with?
   [https://wordpress.org/support/article/multisite-network-administration/#htaccess-and-mod-rewrite](https://wordpress.org/support/article/multisite-network-administration/#htaccess-and-mod-rewrite)
 * This is a personalized htaccess but one that reflects a single site
 *     ```
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
   
       php_value upload_max_filesize 64M
       php_value post_max_size 128M
       php_value memory_limit 256M
       php_value max_execution_time 300
       php_value max_input_time 300
   
       # END WordPress
       ```
   
 * When you use plugins that modify wordpress behavior you need to rename only the
   folder of the individual plugins that do not modify the structure.
    I see a fr
   in your configuration this is not standard I think it uses a multilingual plug-
   in, for any problem you have to refer to the support of this plugin otherwise
   you never solve.
 * I hope I helped you showed you what the htaccess file should be for a multisite.

Viewing 15 replies - 511 through 525 (of 706 total)

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