autotutorial
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: SSL WP, Or Theme? _autoload() spl deprecation on 4.8.9 and PHP 7.24.9 for php 7.2 PHP 7.2 (WordPress core)
Forum: Requests and Feedback
In reply to: Make Option for WP CRON to be called at specified intervalhello welcome, the update of the core does not alter your wp-config.php file in any way, at the moment you can disable all the hits and enable cron from the outside.
Forum: Fixing WordPress
In reply to: www.www after detaching redirect chainSorry, first domain.
# Canonical WWW/HTTPS <IfModule mod_rewrite.c> RewriteCond %{HTTP_HOST} ^example\.com [NC,OR] RewriteCond %{HTTPS} off RewriteRule (.*) https://www.example.com/$1 [L,R=301] </IfModule>If start different example.com or not use https, redirect default domain, to https://www.example.com/ ( otherwise https is in use in another domain https://subdomain.example.com/ )
You can change? wp-db.php
if ( $this->use_mysqli && $this->result instanceof mysqli_result ) {
with$mysqli_results = 'mysqli_result'; if ( $this->use_mysqli && $this->result instanceof $mysqli_results ) {Maybe Compatible If you check from inside another namespace.
https://stackoverflow.com/questions/12197552/mysqli-equivalent-of-is-resource#comment87786091_12197693Forum: Fixing WordPress
In reply to: www.www after detaching redirect chainThis for http or
www.example.comand target https://example.com# Canonical HTTPS/non-WWW <IfModule mod_rewrite.c> RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www\.example\.com [NC] RewriteRule (.*) https://example.com/$1 [L,R=301] </IfModule>This for http or
example.comand target https://www.example.com# Canonical HTTPS/WWW <IfModule mod_rewrite.c> RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^example\.com [NC] RewriteRule (.*) https://www.example.com/$1 [L,R=301] </IfModule>General settings – https://www.example.com
Forum: Networking WordPress
In reply to: WP Multisite not accessible over internettry creating the network with your ip for internet.
secondary sites will take the same path as the network.
Network – http://82.64.xx.xx/WordPress/wp-admin/network/
Secondary site – http://82.64.xx.xx/WordPress/ns1/ (adding ns1 to the creation of secondary sites).
RestrictionsForum: Networking WordPress
In reply to: Getting a multi-site to workthis is great news.
out of curiosity, did importing the file (on the secondary site) create the wp / content / uploads / site / directory and other numbers or does it reside in uploads?Forum: Networking WordPress
In reply to: Getting a multi-site to workhttps://network.com/wp/wp-admin/network/site-info.php?id=2 (https://network.com/wp/ns1/ for example) – secondary site.
secondary installaction WordPress – https://network.com/wp2/
It deletes the superfluous contents in the secondary site inside the multisite.
Search and replace to old site into new site, old https://network.com/wp2/ new https://network.com/wp/ns1/ (secondary site)
For Database normally a search is not recommended and replace raw, use a plugin or a php script to do this job.
It is also true that you cannot search and replace that is already used. It means if you have multisite wp/ and single site wp2/ you don’t have to replace with these paths .. Even if in htaccess there is the rule if it is not file go to index.php, at most it replicates the single on a single instance.
Maybe you don’t really need to change the path in the xlm file generated by the import (I hope wordpress translates the old path into the new one automatically into secondary site WordPress multisite)Plugin or script
https://wordpress.org/support/article/moving-wordpress/#changing-your-domain-name-and-urls
obviously you need to create backups of your files and database before deleting (files and databases) the secondary installation.
Import xml into https://network.com/wp/ns1/ (secondary site)Forum: Networking WordPress
In reply to: Getting a multi-site to worktwo wordoress installations actually have separate directories while creating a secondary site means giving a virtual path (multisite with subdirectories) or with subdomain .. then clicking on edit you can map on a new domain (in wordoress is called domain mapping) an external site a multisite WordPress is not a secondary site (the secondary site refers to the network).
follows the textual explanation:
Create network (it’s the domain for multisite installatcion).network – https://network.com/wp/
secondary site – https://network.com/wp/ns1/ (virtual path) or https://ns1.network.com/
Domain mapping (of one network,
network https://network.com/wp/ subdirectoey or network https://network.com/ into root folder if you want subdomain
) – any.domain.com
Not multisite (secondary installation) – https://network.com/wp2/
Import manually into Multisite https://premium.wpmudev.org/blog/move-wordpress-site-multisite-network/
Forum: Developing with WordPress
In reply to: Date format issue<?php function yournamefunction() { $create = get_post_modified_time('d/m/Y \a\l\l\e g:i A',true ); return $create; } add_action('get_the_time','yournamefunction');does it work for you? With $gmt to true
Forum: Developing with WordPress
In reply to: Date format issueinstead of modifying you can change the display with filters and php code. (if you really don’t want to use the general setting of date_format).
https://developer.wordpress.org/reference/hooks/get_the_date/
https://developer.wordpress.org/reference/hooks/get_post_modified_time/
in mysql the dates must be archivedYYYY-MM-DD hh:mm:ssfor column DATETIME
Recover the date from the database and calculate the difference of your offeset if you don’t have UTC as default.https://wordpress.org/support/topic/problems-with-timezone-when-using-new-function-wp_date/#post-12155158
Classe DateTime PHP example.
I hope it helps youForum: Fixing WordPress
In reply to: Invalid argument supplied for foreach() in class-wp-post-type.phpWordPress 5.3 add supports array for register_post_type() https://make.wordpress.org/core/2019/10/15/miscellaneous-developer-focused-changes-in-5-3/
Add args before wordpress 5.3 supports had no arguments, mistakenly you could usesupportswith a string value, from WordPress 5.3 must be Array.
Compatibility php 7.4, it is required that the variable is initialized in the type of final data.
This generates a warning$val = false; $val[0];So for theme and plugin make sure they are tested with the current version Tested up to: WordPress version https://make.wordpress.org/plugins/2017/08/29/minimum-php-version-requirement/
WordPress 5.3 core supports php 7.4- This reply was modified 6 years, 5 months ago by autotutorial.
- This reply was modified 6 years, 5 months ago by autotutorial.
Forum: Fixing WordPress
In reply to: Fatal error on upgrade to PHP 7.3Do you have user.ini or php.ini (created by plugins) inside the wordpress root?
with the theme twentynineteen the php 7.3 disabled plugins arrive here? https://github.com/WordPress/WordPress/blob/5.3-branch/wp-settings.php#L151
create a backup of your files and your database. now this code appears below the line I showed you.
error_log('1',3,ABSPATH.WPINC.'/access.log';
check wp-includes/access.log (then delete my code for create access.log and delete access.log file).I am convinced that the problem is in the Meta Slider plugin.
Forum: Networking WordPress
In reply to: Getting a multi-site to workThere are many factors for the management of a multiple site, the secondary sites are functional only with the rewriting of the url (htaccess for APACHE rewriting for ningix) the wp-config.php contains the reference for your network.
If you don’t have support from your hosting, you need to consider moving to another hosting.
Are you with ningix under APACHE or do you only use APACHE?
Does your hosting allow you to disable your cache / CDN if you need it?