Too view arguments are displayed in WordPress theme Avada

Asked 2 years ago, Updated 2 years ago, 97 views

An error will appear at the top of the header and at the content editing section of each fixed page surrounded by the attached red frame.Here's what line 130 of php says in this error.

'description' => sprintf( esc_html__( 'Controls the left and right padding for page content when using 100% site width, 100% width page template or 100% width post option. This does not affect Fusion Builder containers.  Enter value including any valid CSS unit, ex: 30px. %s', 'Avada' ), Avada()->settings->get_default_description( 'hundredp_padding' ) ),

This php is part of Avada's parent theme and has not been rewritten while downloading it.
By the way, I only use the plug-in recommended by Avada.

Please let me know how to solve this problem.

Avada theme error

php wordpress

2022-09-30 20:12

1 Answers

(I understand that it has been resolved)

It's in the management screen, and it's a warning, so there won't be any practical problems.

The warning displayed is

Warning sprintf(): Too new arguments in

Yes, this indicates that the format argument specified in the subsequent argument is missing, for example, if the placeholder (for example, %s) has been used more than once in the sprintf() argument (format string).

This also includes %, so % is available when using % in the format string, but the original text of the code seems to use the entity reference format % instead.
In addition, esc_html__ performs translation and HTML escape.
I don't own the subject, so I guess this warning appears because the Japanese translation file translates the percent sign of the string as % instead of %% or %.


2022-09-30 20:12

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.