Wordpress uses the retro scheme to appear 413 Request Entity Too Large (Activate still has problems)

I uploaded a relatively large theme, about 9MB as big

413 Request Entity Too Large

This is nginx's pot:

location ~ \.php $

{

...

}

Add in:

client_max_body_size 20m; can be solved

--------------------------------------------------------------------------------------------------

Upload the subject again, the error message becomes:

The uploaded file exceeds the upload_max_filesize directive in php.ini.

At present, I only know that this error is reported: wp-admin/includes/file.php

( 'The uploaded file exceeds the %1$s directive in %2$s.' ),

After thinking for a long time, the final guess may be under /etc/.

Edit the /etc/php/7.4/fpm/php.ini file

Modify upload_max_filesize = 20M

service php7.4-fpm restart

--------------------------------------------------------------------------------------------------

I uploaded the Retro theme for the third time and the upload was successful.

--------------------------------------------------------------------------------------------------

We click Activate to activate the theme and appear

There has been a critical error on your website. Please check your site admin email inbox for instructions.

Find the wp-config.php settings as follows:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true ); 
define( 'WP_DEBUG_DISPLAY', true );

Note that the debug mode will cause the performance of the website to decrease. After the investigation is completed, all should be changed back to false

After refreshing the page, I get the following error:

Fatal error: Uncaught Error: Call to undefined function mysql_error() in /homepages/25/d70642623/htdocs/_hafleg_de-wordpress/wp-content/themes/retro/lib/revslider/inc_php/framework/db.class.php:29 Stack trace: #0 /homepages/25/d70642623/htdocs/_hafleg_de-wordpress/wp-content/themes/retro/lib/revslider/inc_php/framework/db.class.php(127): UniteDBRev->checkForErrors('fetch') #1 /homepages/25/d70642623/htdocs/_hafleg_de-wordpress/wp-content/themes/retro/lib/revslider/inc_php/revslider_slider.class.php(1639): UniteDBRev->fetch('hg_revslider_sl...', '', 'id', '', 'ASC') #2 /homepages/25/d70642623/htdocs/_hafleg_de-wordpress/wp-content/themes/retro/classes/Admin/Theme/Element/Select/Slider.php(47): RevSlider->getArrSliders() #3 /homepages/25/d70642623/htdocs/_hafleg_de-wordpress/wp-content/themes/retro/classes/Custom/MetaBox/Item/Portfolio.php(51): Admin_Theme_Element_Select_Slider::getSliders() #4 /homepages/25/d70642623/htdocs/_hafleg_de-wordpress/wp-content/themes/retro/classes/Custom/MetaBox/Item/Portfolio.php(11): Custom_M in /homepages/25/d70642623/htdocs/_hafleg_de-wordpress/wp-content/themes/retro/lib/revslider/inc_php/framework/db.class.php on line 29

The website is experiencing technical difficulties.

Use the solution in [1]

 

----------------------------------------------------------------------------------------------------------------------------------------------------

Refresh the page to get:

Warning: mysqli_error() expects parameter 1 to be mysqli, null given in /home/appleyuchi/wordpress/wp-content/themes/retro/lib/revslider/inc_php/framework/php7.php on line 17

Warning: mysqli_error() expects parameter 1 to be mysqli, null given in /home/appleyuchi/wordpress/wp-content/themes/retro/lib/revslider/inc_php/framework/php7.php on line 17

Fatal error: Uncaught Error: [] operator not supported for strings in /home/appleyuchi/wordpress/wp-content/themes/retro/lib/revslider/inc_php/framework/base_admin.class.php:70 Stack trace: #0 /home/appleyuchi/wordpress/wp-content/themes/retro/lib/revslider/revslider_admin.php(153): UniteBaseAdminClassRev::addMetaBox() #1 /home/appleyuchi/wordpress/wp-content/themes/retro/lib/revslider/revslider_admin.php(68): RevSliderAdmin->addSliderMetaBox() #2 /home/appleyuchi/wordpress/wp-content/themes/retro/lib/revslider/revslider_admin.php(40): RevSliderAdmin->init() #3 /home/appleyuchi/wordpress/wp-content/themes/retro/lib/revslider/revslider.php(132): RevSliderAdmin->__construct() #4 /home/appleyuchi/wordpress/wp-includes/template.php(730): require_once('/home/appleyuch...') #5 /home/appleyuchi/wordpress/wp-includes/template.php(676): load_template() #6 /home/appleyuchi/wordpress/wp-content/themes/retro/functions.php(59): locate_template() #7 /home/appleyuchi/wordpress/wp-settings.php(514): include('/home/appleyuch...') #8 /home in /home/appleyuchi/wordpress/wp-content/themes/retro/lib/revslider/inc_php/framework/base_admin.class.php on line 70

There has been a critical error on your website. Please check your site admin email inbox for instructions.

 

solution:

line 70 of base_admin.class.php

self::$arrMetaBoxes[] = $box;

Change to:

self::$arrMetaBoxes = $box;

----------------------------------------------------------------------------------------------------------------------------------------------------

Continue to refresh to get:

Warning: mysqli_error() expects exactly 1 parameter, 0 given in /home/appleyuchi/wordpress/wp-content/themes/retro/lib/revslider/inc_php/framework/db.class.php on line 31

Change line 31 to:

if(mysqli_error(mysqli_connect("localhost","appleyuchi","appleyuchi","wordpress"))){

 

----------------------------------------------------------------------------------------------------------------------------------------------------

Continue to refresh to get:


Fatal error: Uncaught Error: Cannot use object of type UniteSettingsAdvancedRev as array in /home/appleyuchi/wordpress/wp-content/themes/retro/lib/revslider/inc_php/framework/base_admin.class.php:82 Stack trace: #0 /home/appleyuchi/wordpress/wp-includes/class-wp-hook.php(289): UniteBaseAdminClassRev::onAddMetaboxes() #1 /home/appleyuchi/wordpress/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters() #2 /home/appleyuchi/wordpress/wp-includes/plugin.php(478): WP_Hook->do_action() #3 /home/appleyuchi/wordpress/wp-admin/includes/meta-boxes.php(1578): do_action() #4 /home/appleyuchi/wordpress/wp-admin/edit-form-blocks.php(390): register_and_do_post_meta_boxes() #5 /home/appleyuchi/wordpress/wp-admin/post.php(187): require('/home/appleyuch...') #6 {main} thrown in /home/appleyuchi/wordpress/wp-content/themes/retro/lib/revslider/inc_php/framework/base_admin.class.php on line 82

 

I can't figure it out, let's give up first or...the PHP foundation is not enough...

 

Reference:

[1] Solution of mysql_xxx not supported after php5.4.45 code is upgraded to php7.3.4

Guess you like

Origin blog.csdn.net/appleyuchi/article/details/108914480