autotutorial
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Website Category Leading To White Page Of Death / Error 524means that the source server cannot handle a category of 1000 in a folder.
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
In reply to: 301 redirect after cloudflare sslhere 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/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.mdif 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/
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-
RewriteEngine On RewriteBase / RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteCond %{HTTPS} off RewriteRule .* https://domain.com%{REQUEST_URI} [L,R=301]Forum: Localhost Installs
In reply to: ip redirect to localhost internal ipForum: Fixing WordPress
In reply to: Fatal Error / Internal Server ErrorMaybe your htaccess code is not correct … try changing your htaccess name and post your content here
Forum: Fixing WordPress
In reply to: PHP 5.4 upgrade to 5.6 unable to connect mysqlhttps://mysqlserverteam.com/upgrading-to-mysql-8-0-default-authentication-plugin-considerations/
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
mysqlnd.sha256_server_public_key start from PHP 5.5.0Forum: Fixing WordPress
In reply to: Fatal Error / Internal Server Errorhttp://folio.daratoe.com/wp-login.php this work?
Forum: Fixing WordPress
In reply to: Fatal Error / Internal Server Errorit 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/Forum: Fixing WordPress
In reply to: Memory exhausted : tenacious bug31457280/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
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 PHP_INI_ALL 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
In reply to: PHP 5.4 upgrade to 5.6 unable to connect mysqlhttps://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().
Forum: Fixing WordPress
In reply to: PHP 5.4 upgrade to 5.6 unable to connect mysqlthis 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
Your error 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.
Forum: Networking WordPress
In reply to: Domain MappingProve 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
In reply to: Domain MappingI read your problem more carefully if https://dev.nrocnetwork.org/nroc/ has been mapped to 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/
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/ Comment on your define in wp-config.php.Now all cookies refer to this domain. 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
In reply to: Domain MappingYes my answer was designed for this post the dev domain does not exist in the ssl certificate and other useful information.
Forum: Networking WordPress
In reply to: Domain Mappinghttps://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=1Forum: Fixing WordPress
In reply to: Illeagal string offsetit depends on how the code checks $atts if it’s empty I do what I have to do after that code initializes the array.
exampleif(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 loginif 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
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 π