autotutorial
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Relative pathYes. You can use the MULTIPLE_DOMAIN_DOMAIN_LANG constant to get the language associated with the current domain. Keep
in mind the value in this constant doesn’t necessarily reflect the actual user language or locale. This is just the
language set in the plugin config. Also notice the language may be null.Notice: in prior versions these constants were wrongly prefixed with MULTPLE_, missing the “I”. The old constants
are now deprecated. They still available for backcompat but will be removed in future releases.Yes. There is a shortcode available for that. Just add [multiple_domain] to the post/page and it’ll be replaced by
the current domain when viewing the content. You can write things like “Welcome to [multiple_domain]!”, which would be
rendered as “Welcome to mydomain.com!”.Forum: Fixing WordPress
In reply to: External form submission data lostyou have no limit to the body of a request except php.ini configurations, did your code work on wordpress first? otherwise read how to add query strings to a url and register them by default if they are always there.
https://developer.wordpress.org/reference/functions/add_query_arg/
https://developer.wordpress.org/reference/functions/get_query_var/
also are you opening a url in redirect or making a POST request? In the first case, try to see if you get 100 (or different from 200) in response for the status code.Forum: Developing with WordPress
In reply to: get_avatar_url() with httpsthe set_url_scheme is used https://developer.wordpress.org/reference/functions/get_avatar_data/ ( reference for get_avatar_url )
For default url read line 4226 for link https://developer.wordpress.org/reference/functions/set_url_scheme/ ( force it’s with $args[‘url’] or use wp_redirect)if ( is_ssl() ) { $url = 'https://secure.gravatar.com/avatar/' . $email_hash; } else { $url = sprintf( 'http://%d.gravatar.com/avatar/%s', $gravatar_server, $email_hash ); }https://developer.wordpress.org/reference/functions/wp_redirect/
that page is in sites, after clicking edit and site settings, obviously you have to replace your id with the one you use for the site with the problem, please go to that link and report the home and siteurl.
this is the function used for the preview https://developer.wordpress.org/reference/classes/wp_customize_manager/get_return_url/ ( it’s use home ) and this for settings new url https://developer.wordpress.org/reference/classes/wp_customize_manager/set_preview_url/ ( it’s use home ).
If your siteurl is different from home your error appears.that link is about wordpress 5.0 ( current version WordPress 5.3 ) after clicking preview can you manually replace the domain to the SITEURL domain? maybe it’s a javascript error.
Example secondary site ( for id 2 ) all settings, not modify please.
http://yourdomain.org/my_directory/wp-admin/network/site-settings.php?id=2 ( network )Forum: Fixing WordPress
In reply to: WP-admin page not loadingGood url:
http://craftesque.com/wp-admin/ (without subdomain www).
WordPress force redirect for not www subdomain.Forum: Fixing WordPress
In reply to: It is not possible to register field for settings route in REST API$args = [ 'get_callback' => function() { return get_option('show_on_front'); } ];// conversion ObjectClousure to native value $args['get_callback']();I think args is an array.
Forum: Fixing WordPress
In reply to: Too many redirects – slightly odd@dippyhull currently your server responds with a 302 redirect without a Location header (tells the browser which url to go to), if you use WordPress 5.3 there are the files wp-admin/index.php and wp-admin/admin.php (this file is takes care of whether you are already connected or redirects).
Don’t edit the files, tell me if they are different, okay?
https://github.com/WordPress/WordPress/blob/5.3-branch/wp-admin/index.php
https://github.com/WordPress/WordPress/blob/5.3-branch/wp-admin/admin.php
Copy this filename .htaccess ( into root folder, / )# BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPressAfter 30 minutes, use the private mode of chrome.
is your server enabled to add an index.php in case you use a directory path?
For example, https://lrshull.com/index.php
if I view your home with the index.php file I get a 301 redirect from the server, without Location header.
The priority is to ask your hosting only after two days of no response, add this apache directive
DirectoryIndexForum: Developing with WordPress
In reply to: $wp_rewrite->rules is always NULLIf $wp_rewrite->rules is null, it not defined use $wp_rewrite->wp_rewrite_rules() https://github.com/WordPress/WordPress/blob/master/wp-settings.php#L433
any path that is not a regular file and any path that is not a folder is redirected in index.php by mod_rewrite- This reply was modified 6 years, 4 months ago by autotutorial.
Forum: Fixing WordPress
In reply to: Header not displaying on all pages & remove index.php from URLshttps://wordpress.org/support/article/using-permalinks/#pathinfo-almost-pretty
you are currently using PATHINFO Almost pretty, if you use APACHE you can use it on pretty permalink.Forum: Fixing WordPress
In reply to: redirection problemInto wordpress folder, fix RewriteBase and %{REQUEST_URI}.
# BEGIN WordPress # Die Anweisungen (Zeilen) zwischen <code>BEGIN WordPress</code> und <code>END WordPress</code> sind # dynamisch generiert und sollten nur über WordPress-Filter geändert werden. # Alle Änderungen an den Anweisungen zwischen diesen Markierungen werden überschrieben. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /wordpress/ RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # force folder, use RewriteRule . /wordpress/index.php RewriteRule . /wordpress/index.php [L] </IfModule> # END WordPressGood url:
https://www.cameratavocale.de/wordpress/?action=kirki-styles&ver=3.0.45
Bad url (i’m folder , please the end slash for wordpress directory):
https://www.cameratavocale.de/wordpress?action=kirki-styles&ver=3.0.45
SSH with certificate (wget): https://www.gnu.org/software/wget/manual/html_node/HTTPS-_0028SSL_002fTLS_0029-Options.htmlForum: Fixing WordPress
In reply to: Can’t update securityUnfortunately, if you don’t own anything, only your hosting can help you.
the login does not work, can you write the error? You are currently using an invalid ssl certificate for your domain but the login should work.Forum: Fixing WordPress
In reply to: Can’t update securityIf you can have access to FileTransferProtocol (FTP) you can add two constants to your wp-config.php file or else you can change the value directly from your database, use the first option is recommended. https://wordpress.org/support/topic/cant-update-security/#post-12326213
Forum: Fixing WordPress
In reply to: Can’t update securityInstallat certificate (DV for Domain Validation) https://help.dreamhost.com/hc/en-us/articles/216041537-SSL-certificates-overview
// Temporary Overwrite the Database // Before require_once for file wp-config.php define( 'WP_HOME', 'http://www.team5924.org' ); define( 'WP_SITEURL', 'http://www.team5924.org' ); // Please without the end slash /Forum: Fixing WordPress
In reply to: Site down because of General Settings errorIf you can access FTP you can add the constants for the wp_config.php file, then you can overwrite the database with a wordpress function, but first log in then I give you directions.