autotutorial
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WSOD when upgrading to php 7,x using mysqliif it is set to true it forces the use of the myslq extension, if from your wp-config.php you delete
define('WP_USE_EXT_MYSQL',true);ordefine('WP_USE_EXT_MYSQL',false);the WordPress choose mysqli for you.Forum: Fixing WordPress
In reply to: WSOD when upgrading to php 7,x using mysqliI’m glad you solved it, but why was that constant set to true? did you add it or if it’s a plugin can you name it please? do a grep (cli command line) by looking for the constant in the plugins directory.
https://stackoverflow.com/questions/30097978/to-grep-version-number-from-wordpress-plugin-folderForum: Fixing WordPress
In reply to: WSOD when upgrading to php 7,x using mysqlihttps://github.com/WordPress/WordPress/blob/5.3-branch/wp-includes/wp-db.php#L614
any plugins or in the wp-config.php file are you using this constant? WP_USE_EXT_MYSQL
see references to mysql or mysqli? drop-in file db.php
Forum: Fixing WordPress
In reply to: WSOD when upgrading to php 7,x using mysqliYou can this?
Edit:<?php $var_mysqli = function_exists('mysqli_connect'); var_dump($var_mysqli);Constant null is deprecated from PHP 7.2.0
Forum: Fixing WordPress
In reply to: WSOD when upgrading to php 7,x using mysqliFrom 7.0 is removed https://www.php.net/manual/en/function.mysql-connect.php.
your error_reporting is set to read deprecation warnings is a non-wordpress server talk.E_DEPRECATED https://www.php.net/manual/en/function.error-reporting.php
Edit:
if php 7.0 does not find the mysqli extension wordpress try using the mysql extension … the problem is on the server because the mysqli extension is not used.https://www.php.net/manual/en/mysqli.construct.php
read every topic of the mysqli construct and use it according to your needs, create a script.php without sending private information to this forum … do you have anything other than false?The MySQL Native Driver is implemented using the PHP extension framework. The source code is located in ext/mysqlnd. It does not expose an API to the PHP programmer.
Mysqlnd from PHP 5.3 and mysqli extension PHP 5.0.
https://www.php.net/manual/en/mysqli.installation.phpForum: Fixing WordPress
In reply to: Can’t Get External Site HTTP_REFERER (Divi Theme)https://developer.wordpress.org/reference/functions/wp_get_raw_referer/
Edit:if(($my_refer = wp_get_raw_referer())) { //Not subdomain if(($var = strstr($my_refer,'somedomain')) && strlen($var) == strlen($my_refer)) { //Code here } }When you say external I understand a domain outside of wordpress, it is not important if the theme div uses the css file cache since it is on the wordpress domain (with www subdomain or without).
Forum: Networking WordPress
In reply to: WordPress Multisite uploads directoryWordPress media library folders
Folders and images added to the site by FTP are not showing up in Media Library Folders
Media Library Folders does not work like the file manager on you computer. It only display images and folders that have been added to the Media Library database. To display new folders that have not been added through the Media Library Folders you can click the Check for new folders option in the Media Library Folders submenu in the WordPress Dashboard. If you allow WordPress to store images by year and month folders, then you should click the option once each month to add these auto-generated folders.To add images that were upload to the site via the cPanel or by FTP, navigate to the folder containing the images in Media Library Folders and click the Sync button. This will scan the folder looking images not currently found in the Media Library for that folder. The Sync function only scans the current folder. If there are subfolders, you will need to individually sync them.
Forum: Networking WordPress
In reply to: WordPress Multisite uploads directorythe simple movement of files does not work because the paths are stored in the database, normally from WordPress 3.5 you will have /wp-content/uploads/sites/2/data/ (for site with id 2) for all secondary sites while for the main site it is /wp-content/uploads/data/. If you export from a single site (not multisite) , the importer only copies the
textualpath (/wp-content/uploads/date/) it is up to you to modify the paths to the secondary site with plugins or manually.
from the network in secondary site settings you can set the path (local and/or remote) for uploads or use some plugins.Forum: Fixing WordPress
In reply to: functions.php file disappearingWhen the url changes it is not enough to copy the old content to a new path but you have to use a plugin to rewrite the old path in the new one or if the url is different because you use https you can use a https plugin (technically the source server must accept the ip of who can change things …. cloudflare, proxy or himself).
List for method search and replaceForum: Fixing WordPress
In reply to: is moving wp-config outside the web root really good for security?Perhaps you meant a directory above the ABSPATH constant (it could be above the root or just a directory above). the ABSPATH constant was created to avoid ambiguity in the path where WordPress files reside but strangely until today the variable
$_SERVER['DOCUMENT_ROOT']or$_ENV['DOCUMENT_ROOT']has never been corrected. Is used to create the network and since the constant __FILE__ translate in an existing physical path the root must not be a symbolic path or in virtual host indicates the initial path but must be a path referred to the constant ABSPATH.
https://github.com/WordPress/WordPress/blob/5.3-branch/wp-config-sample.php#L86You could also insert an include function in the file where WordPress expects the wp-config.php file and obviously change the path of the ABSPATH constant.
define( 'ABSPATH', dirname( __FILE__ ) . '/' );$_SERVER['DOCUMENT_ROOT'] = '/www/home/user'; //Without end slash for Unix or Windows
WordPress directory/www/home/user/wp/
if move wp-config.php without include/www/home/user/define( 'ABSPATH', dirname( __FILE__ ) . '/wp/' );if the attacker can execute arbitration php code and look for the wp-config.php file (without being interpreted by php, it only reads the include function and knows the exact location of the true wp-config.php file after reading the path inside include.) To forgive my bad English. I hope he gave you an extra gear.
Forum: Fixing WordPress
In reply to: WordPress not updating after code changeyou have to ask the same question every time you change hosting, what prevents me from seeing the changes you just made? the answer is just a cache. use chrome private mode, clear your cache of your plugins, clear your cdn’s cache, (the htaccess code could affect but if you use chrome private mode you always see everything the right way).
https://developers.google.com/search/docs/ajax-crawling/docs/getting-started#top_of_page
Pretty url (for ajax crawling is #!)
Ugly url (for ajax crawling is query string)
Fromwww.example.com/ajax.html#!key=value
Towww.example.com/ajax.html?_escaped_fragment_=key=value
in the end you will have the snapshotwww.example.com/ajax.html#!key=value
you can expect to have penalties SEO from the query string that refers to your articles or pages, otherwise everything is correct.check
abouthtml’s source, should be present (old) special meta tag.Forum: Fixing WordPress
In reply to: l10n.php troubleAsk here https://wordpress.org/support/plugin/mailpoet/ (current version mailpoet 3.41.0).
WordPress 5.3 has changed something at the core, to solve you just have to use theme and plugins compatible with WordPress version 5.3can you this code? (create a php script to check if the mysqli_query function exists) https://www.php.net/manual/en/mysqli.query.php
do not disclose personal information on the forum.
Ask your hosting enable PHP’s MySQLi Extension.- This reply was modified 6 years, 5 months ago by autotutorial.
the code does not exist by magic, something intervenes … it can be an old plugin, you have your articles with a (old) special meta tag.
using Pretty permalink means using url rewriting, using ajax and using javascript are two different things … the meta tag or ajax creates query strings (correct code)- This reply was modified 6 years, 5 months ago by autotutorial.