autotutorial
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Plugin Development PHP Error$arr['notexist']; // inizialize empty array $arr = array(); // array with any value $arr['notexist'] = 1;Forum: Networking WordPress
In reply to: Redirect old URL with .htaccess?But it causes a new issue:
All old URLs used to redirect to / or http://www.domain.com/
Now, all not in .htaccess included old URLs are a 404-Error.I’m sorry for your problem.
If you use this .haccess code https://wordpress.org/support/topic/redirect-old-url-with-htaccess/#post-12046441RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]it means if I am in index.php I do not show this file otherwise if it is not a file nor a valid directory I go to (internally) index.php to manage this behavior, simplifying this file executes the Pretty Permalink. more info here. https://codex.wordpress.org/Rewrite_API/add_rewrite_rule.
What code did you add to your .htaccess file? Are you using Ugly Permalink?
Forum: Fixing WordPress
In reply to: I MIGHT have fixed the infamous ob_end_flush error?From php 7 the errors are transformed into exceptions, the use of the @ error control operator hides the error by temporarily lowering error_reporting to 0.
Forum: Networking WordPress
In reply to: Redirect old URL with .htaccess?# enforce https <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} =off RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] RewriteCond %{REQUEST_URI} ^/index.php RewriteCond %{QUERY_STRING} task=listcats&cat_id=99&Itemid=52&option=com_mtree RewriteRule ^ "/information/about-us/?" [R=301,L] </IfModule> # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress # deny acces to /xmlrpc.php <Files xmlrpc.php> Order allow,deny Deny from all </Files>I removed the QSA flag because the REQUEST_URI variable should contain the query string. If it is http I take it in https, if it is on the index.php file and with the right query string then I transform it into another url with loss of query string. If you use APACHE => 2.4 instead of the question mark enter the flag QSD.
- This reply was modified 6 years, 7 months ago by autotutorial.
Forum: Fixing WordPress
In reply to: Rest API diagnostic errorperform until the third steep https://wordpress.org/support/topic/no-results-in-media-search/#post-12043004 without
$show_errors = true;
Curls on other domains? Does it also work for https? (the last message indicates the expiration of the certificate …. https in use)
Create test.php<?php Undefined_constant; $var_error[] = (int) error_get_last(); function ABC() { set_error_handler('var_dump',0); return; } ABC(); $var_error[] = (int) error_get_last(); print_r($var_error); //Your code curl with HTTPS and curl erno hereWordPress 5.2 have WSOD protection only if error_get_last() work.
Forum: Fixing WordPress
In reply to: Problem setting up proxy serverYou need to bypass host wordpress.org are you the owner of wordpress.org? If you are not, your proxy cannot connect to it (the destination server must be prepared for the proxy otherwise it will not work)
Wildcards https://techjourney.net/how-to-enable-use-proxy-server-for-wordpress-to-connect-internet/Forum: Fixing WordPress
In reply to: No results in media searchI asked for more information to understand how you were working ..
no you don’t have to change the values but I have to understand how you work.
Make sure you backup your files and database 1) https://wordpress.org/support/article/wordpress-backups/2) Enable log_errors = on in your php.ini
3) in the wp-config.php file if this is not enable
define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); // From WordPress => 5.1 you set the directory log, change with new locations // Ex. define( 'WP_DEBUG_LOG', '/tmp/wp-errors.log' ); // Enable show error database $show_errors = true;More information here https://wordpress.org/support/article/debugging-in-wordpress/
4) Confirm that you are not editing the uploads folder with this constant via wp-config.php / plugin or your theme? https://wordpress.org/support/article/editing-wp-config-php/#moving-uploads-folder
5) What encoding are you using in the database and in your php?
6) Returning to your problem again, WordPress only treats strings without special characters because it is difficult to manage them
On some hosts special characters give problems * 1 (folder or filename) * 2 search by filename is of natural conventions naming file * 3 Json (api rest only requires valid UTF-8 data).Ex. for file name Auswahl einschränken.jpg
Search Media library in gred view
(without errors … Notice, Warnings PHP etc.)
Auswahl einschränken
https://domain.com/wp-admin/upload.php?search=Auswahl+einschr%C3%A4nken
Percent Enconding , query string https://en.m.wikipedia.org/wiki/Percent-encodingTheoretically this is the right way to search for the file even if I have to understand the functions and objects involved in WordPress.
Where can I find the documentation for the filter_action filter?Forum: Localhost Installs
In reply to: database connection details
Use localhost
Note* Phpmyadmin use Local value for field host.Forum: Fixing WordPress
In reply to: No results in media searchCan you check version.php and specify the wordpress release version and the minimum php version?
I suppose you are not currently using the latest version of wordpress so you have to set php to a minimum …
By Default wordpress from 3.0 creates an uploads folder, why do you use img?Forum: Fixing WordPress
In reply to: Error failed to send buffer of zlib output compression (1)Forum: Fixing WordPress
In reply to: Notice 24 & Fatal Error | Site is Completely DownYou have this code on your wp-includes/default-constants.php ? https://github.com/WordPress/WordPress/blob/master/wp-includes/default-constants.php#L311
Forum: Fixing WordPress
In reply to: WordPress site with some strange behaviorshttps://www.php.net/manual/en/ini.core.php#ini.default-charset and https://www.php.net/manual/en/function.htmlspecialchars.php from PHP 5.6 default_charset is changed on UTF-8 if your database is LATIN-1 use < PHP 5.4.
before this operation it backs up the database and files. https://wordpress.org/support/article/wordpress-backups/
WordPress (3.2 – 5.1) required minum PHP 5.2.4 exetend update for two minor update https://wordpress.org/support/article/upgrading-wordpress-extended-instructions/ stop for WordPress 5.1.
Now set PHP => 5.6.2 and click automatic update.- This reply was modified 6 years, 7 months ago by autotutorial.
- This reply was modified 6 years, 7 months ago by autotutorial.
Forum: Fixing WordPress
In reply to: Plugin Conflictprobably ini_set is disabled for security you can modify wp-includes / load.php at your own risk as follows … you only get the error page.
Before https://github.com/WordPress/WordPress/blob/master/wp-includes/load.php#L309
if(!isset($PHP_SELF)) { $PHP_SELF = ''; }After
global $PHP_SELF;After https://github.com/WordPress/WordPress/blob/master/wp-includes/load.php#L345
if(!(strtolower((string) @ini_get('log_errors')) == 'on' || (string) @ini_get('log_errors') == '1' )) { if (!function_exists('wp_fix_server_vars')) { require_once ABSPATH . WPINC .'/load.php'; } wp_fix_server_vars(); error_log("you have a error here $PHP_SELF\n",3,$log_path); }Forum: Fixing WordPress
In reply to: Website Category Leading To White Page Of Death / Error 524My pleasure https://wordpress.org/support/article/wordpress-backups/ for info backup
Forum: Fixing WordPress
In reply to: Website Category Leading To White Page Of Death / Error 524the link that I left you clocks there are two plugins for the multimedia library and since I don’t see you convinced before any modification you make backups of the ftp files and the mysql database in case of error you can return to the starting point.