autotutorial
Forum Replies Created
-
Forum: Localhost Installs
In reply to: connect to remote mysqlAfter enabling mysql on external connection you have to create the database and the user.
https://dev.mysql.com/doc/refman/5.7/en/account-names.html
From phpmyadmin the HOST field set to ANY_HOST enables remote IP, obviously before you have to unlock the mysql file.
https://dev.mysql.com/doc/refman/5.7/en/problems-connecting.htmlIf the server was started with the skip_networking system variable enabled, it will not accept TCP/IP connections at all. If the server was started with the bind_address system variable set to 127.0.0.1, it will listen for TCP/IP connections only locally on the loopback interface and will not accept remote connections.
Forum: Networking WordPress
In reply to: Server hostname instead of site url in multisitemake sure to enclose the strings with single quotes or double quote, also please when writing code press the code code thank you.
$var = 'single quote'; $var2 = "double quote";Forum: Fixing WordPress
In reply to: Redirecting from “d & m” to “post name” permalink format issue^(/)?[0-9]{4}/[0-9]{2}/[0-9]{2}/(.*)$ $2
Prove this without start /.Forum: Fixing WordPress
In reply to: Slow RedirectWas the site created (by WordPress) without the www domain?
Forum: Networking WordPress
In reply to: Server hostname instead of site url in multisitehttps://wordpress.org/support/topic/mapping-domain-on-the-same-ip-address-same-hosting/#post-12310641
Copy and paste this url in your browser, essentially before creating a network you are using a single installation of WordPress and therefore after the transformation into a Multisite the primary site (the single WordPress site) will have the blog suffix example http://example.com/blog/sample-page.
If you use the same domain you don’t have to have big differences.
To offer help I need to know the initial and final domain, thank you.Forum: Localhost Installs
In reply to: localhost xampp error 310 .htaccessBefore performing a redirect you must understand the origin of the data and then you can create one more rules for the redirect.
If you blindly modify even the plugin it can not help since mod_rewrite uses a regex but the regex created by an inexperienced user may not be the expected result.
please can you share all url structures and how to transform them?Forum: Fixing WordPress
In reply to: How to update PHP & only show errors to adminIt is a discourse related to your hosting company, if htaccess, ini_set, php.ini, user.ini is not blocked you can hide the errors from all otherwise you must ask your hosting how to enable php errors and disable the errors on the screen.
WordPress code.// wp-config.php Before require_once define('WP_DEBUG_DISPLAY', false); //or ini_set or php.ini or user.iniForum: Fixing WordPress
In reply to: Yet another too many redirects: WP 5.3.2 on AWS VMWordPress redirects if it is not your WP_HOME if you define this constant WordPress does not redirect. (if you have configured the virtual host with the value of a
HOST: gopotatomusic.comheader).
I hope, this helpdefine( 'WP_HOME', 'http://gopotatomusic.com'); define( 'WP_SITEURL', 'http://gopotatomusic.com');Example Virtual host https://www.ostechnix.com/configure-apache-virtual-hosts-ubuntu-part-1/
Forum: Networking WordPress
In reply to: Multisite issue on domain not pointing to Public_htmlWordPress recommends creating a multisite subdomain when you are in the root directory.
your root visible to the public is / home/user/public_html while your add on domain is in a folder after zenuacademie, wordpress must know where the files reside therefore initially configure with the full path and from sites (secondary site for not primary) settings change the path (HOME) the address of the site without that folder.
try addingdefine ('MULTISITE', true); define ('SUBDOMAIN_INSTALL', true); define ('DOMAIN_CURRENT_SITE', 'zenuacademie.com'); //for root / or for folder /folder // maybe set this $base = '/zenuacademie'; define ('PATH_CURRENT_SITE', '/zenuacademie'); define ('SITE_ID_CURRENT_SITE', 1); define ('BLOG_ID_CURRENT_SITE', 1);or more simply add a slash to your path, maybe your dns is configured /public_html/add-on/ to show http:// add-on/
All settings secondary site with id 2 ( set 0 for upload Year Month) https://yourdomain.con/wp-admin/network/site-settings.php?id=2
Forum: Fixing WordPress
In reply to: Yet another too many redirects: WP 5.3.2 on AWS VMyou don’t have to insert a final slash in the define value for WP_HOME and WP_SITEURL.
Name-based (virtual) hosts configure via server_name and the host header is likely that your server has no support for the HOST header.
for the moment you have to understand why the redirect, the secondary problems can be resolved later, the constants temporarily overwrite the values of your database.You have to recover the data and filter what you need, in this scenario you have a json answer, so retrieve the date and convert it manually with the DateTime class if the format is supported or otherwise date_create_from_format
Forum: Fixing WordPress
In reply to: mapping domain on the same IP address (same hosting)For IP you need to ask your hosting.
With a Multisite you can create your network, create secondary sites, from WordPress 4.5 without plug-in, click on edit and activate the mapping domain.
An example follows:
Installation before enabling the multisite http://www.network.com
secondary site with subdirectory http://www.network.com/user
secondary site with subdomain except www http://user.network.com
edit for secondary sites (mapping domain) http://www.newdomain.com i hope this helps you.
Do not install plugins to create secondary sites with your ip address, wordpress works with the name.
I read problems out there consider this a tip and not the truth, if you use https for your network be sure to use https for secondary sites too.
0) From your browser read the domains (perhaps you will also have wildcard extensions for the subdomain) valid for your private and cloudflare certificate.
1) Cloudflare by default connects to the origin server in http but the client shows https.
Ask your hosting how to enable https from the origin of your server to the customer.
2) also from cloudflare it is possible to create a page rule that excludes any wp-admin path for cache.Forum: Developing with WordPress
In reply to: Posting variable from one page to anotherYou must use isset to check the isset example isset($_POST[‘key’]); obviously $_POST is always empty if you don’t use a key and not have value for example:
$_POST['product'] = ''; if( $_POST['product'] ) { //this false never true } if( isset($_POST['product'] ) ) { //true }, also in foreach you can create a container variable and then use echo when you have all the data.
POST data are visible only on the landing page, you cannot redirect.
Use SESSION or maybe global $selectedProduct; for function.Forum: Fixing WordPress
In reply to: white screen after WP updateMake a backup of your wp-config.php and make sure that the wp-config.php is not corrupt, because the ABSPATH constant is defined in that context.
/** Absolute path to the WordPress directory. */ if ( ! defined( 'ABSPATH' ) ) { define( 'ABSPATH', dirname( __FILE__ ) . '/' ); } /** Sets up WordPress vars and included files. */ require_once( ABSPATH . 'wp-settings.php' );It would be nice if your hosting does it for you.