autotutorial
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: https changing to httpWhen you use WordPress for the first time, everything related to the path will be saved in your database so if you used http it is right that your images are on http. The url change refers only to the url of the site and the core files.
Change site url and change url from databaseIf you don’t use WordPress installed from the package or with a click from your hosting run this guide for cloudflare.
https://wordpress.org/support/topic/301-redirect-after-cloudflare-ssl/#post-12015233Forum: Fixing WordPress
In reply to: HTTP Error When Uploading Images1)Write this down to wp-config.php before calling wp-settings.php
define('WP_DEBUG',true); define('WP_DEBUG_LOG', true); $show_errors = true;2)Backup your files and database.
3)Ask your hosting if you can overwrite the WordPress core files if your hosting gives you the green light overwrite the core files for the use of wordpress 3.7 you can go to the last current version (minimum php 5.6.20 for WordPress 5.2 otherwise minimum php 5.2.4 for the antecedent versions).
https://wordpress.org/support/article/updating-wordpress/#manual-updateotherwise if you use WordPress less than 3.7 you have to perform the extended update every two minor … for WordPress 3.5 means update to 3.5.2 when available otherwise it advances.
4)When you don’t use the site or you have no errors you have to disable debugging in this way
/*define('WP_DEBUG',true); define('WP_DEBUG_LOG', true); $show_errors = true;*/5)If you still can’t, set the default theme, disable plugins by renaming the plugins folder.
Many times the error is because you do not correctly update manually, follow the instructions I gave you in step 3.Forum: Developing with WordPress
In reply to: Hows to create a redirection “wildcard” functionIf $currenturl_relative returns the path with two slugs you can also temporarily insert a variable containing only the two slugs.
<?php $currenturl_relative = '/devel/lms/ja/lessons/planning-a-meeting-int/'; $start_url = dirname(dirname($currenturl_relative)).'/'; $slug_all = substr($currenturl_relative,strlen($start_url)); switch ($start_url) { case '/devel/lms/ja/'; preg_match( '|^([^/]+)+/([^/]+)+/$|', $slug_all, $out ); if(!empty($out)) { $out[0] = $out[1]; $out[1] = $out[2]; unset($out[2]); // Without start and end slash var_dump( $out ); } break; default: return; }Fix with preg_match…
<?php //$string = '/devel/lms/ja/lessons/'; $string = '/devel/lms/ja/lessons/planning-a-meeting-int/'; preg_match( '|^/devel/lms/ja/([^/]+)+/([^/]+)+/$|', $string, $out ); if(!empty($out)) { $out[0] = $out[1]; $out[1] = $out[2]; unset($out[2]); // Without start and end slash var_dump( $out ); }- This reply was modified 6 years, 6 months ago by autotutorial.
Forum: Developing with WordPress
In reply to: Hows to create a redirection “wildcard” function<?php //$string = '/devel/lms/ja/lessons/'; $string = '/devel/lms/ja/lessons/planning-a-meeting-int/'; preg_match_all( '|^/devel/lms/ja/([^/]+)/([^/]*)/$|', $string, $out ); if(!empty($out[1])) { $out[0] = $out[1][0]; $out[1] = $out[2][0]; unset($out[2]); // Without start and end slash var_dump( $out ); }leassons or quizzle is first slug
Forum: Fixing WordPress
In reply to: Can’t Log In to WordPress and Can’t change passwordhttps://wordpress.org/support/article/resetting-your-password/#through-phpmyadmin
try entering a new password in md5. If this doesn’t work, create test.php with<?php echo md5('hello');and then enter phpmyadmin without md5. When you log in from the admin panel, change your password in some way
Forum: Fixing WordPress
In reply to: Media Library Page is 404I’m responding courteously, I’m trying to help you. If you have a multisite it checks the configuration of your htacces from the network. If you have or do not have a multisite check also your .htaccess file. It would help to know if you started with multi-site wordpress less than 3.5
Change Grid View with Lista View… do you see something?
https://en.support.wordpress.com/media/2/- This reply was modified 6 years, 6 months ago by autotutorial.
Forum: Fixing WordPress
In reply to: Media Library Page is 404If you add the $show_errors = true; variable you will also see errors in your database ..
Thank You.Forum: Fixing WordPress
In reply to: Media Library Page is 404Forum: Developing with WordPress
In reply to: Disable the fatal error handlerhttps://github.com/WordPress/WordPress/blob/master/wp-includes/load.php#L810
The use of the arrow (->) is an OOP construct to access the properties and methods contained in a given object:
call object with properties is_initialized or is_active.
Forum: Developing with WordPress
In reply to: Disable the fatal error handlerHave you tried WP_DEBUG on false?
For example https://core.trac.wordpress.org/attachment/ticket/46825/46825.2.patch
https://core.trac.wordpress.org/ticket/46825- This reply was modified 6 years, 6 months ago by autotutorial.
Forum: Fixing WordPress
In reply to: No results in media searchFrom wordpress 2.2 UTF-8 is the default, in php 5.6 it changed the value of default_charset in UTF-8 (should be) and the functions htmlspecialchars from php 5.6 using the default_charset while from php 5.4 to php 5.5 to UTF-8 the versions necessary precedents ISO-8859-1 … If you see well your specials characters in your messages it means that you have no coding problems.
The problem comes from an error in your database and I’m glad you solved hide your debug now (disable debugging)
/*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;*/Certainly with a large table and the one you have enabled, your database is busy, but I am not an expert in this … However, I think we can get a more ordered join if we change the syntax to interact with the database. I hope someone can answer your question.
- This reply was modified 6 years, 7 months ago by autotutorial.
If you still have the problem, headers already sent you have to try the following. Disable all zlib* zlib.output_compression zlib.output_compression_level zlib.output_handler and enable output_buffering with value 4096 in your php.ini https://github.com/WordPress/WordPress/blob/5.2-branch/wp-includes/cron.php#L680
of course you also need to edit this file https://github.com/WordPress/WordPress/blob/master/wp-cron.php#L23
https://github.com/WordPress/WordPress/commit/742537ac3d54d695a09e0ba0bb853e068677d2e5
This author states when using constant wp-config.php ATERNATE_WP_CRON there may already be headers sent.or install the live and if with zlib enabled you find the same problem the culprit is zlib.
- This reply was modified 6 years, 7 months ago by autotutorial.
@normancates hello 🙂
Update your old version https://github.com/WordPress/WordPress/blob/master/wp-cron.php#L23Forum: Fixing WordPress
In reply to: I MIGHT have fixed the infamous ob_end_flush error?@normancates I’m glad you solved .. can you please share the bug track link?
Forum: Fixing WordPress
In reply to: I MIGHT have fixed the infamous ob_end_flush error?@normancates the error is still present but you have disabled the display on the screen. (the display on the screen produces output)
follow these instructions up to the steep third without the variable
$show_errors = true;
https://wordpress.org/support/topic/no-results-in-media-search/#post-12043004
your help is appreciated open a ticket as they suggested before because only there is the right place for this thing.if you want you can capture that variable insert this into your functions.php file
function abc(){ global $levels; error_log((int) $levels,3,dirname(__FILE__).'/error2.log'); } abc();create an error2.log file in the functions.php directory.