Skip to content Skip to sidebar

This topic contains 0 reply, has 1 voice.

Last updated by 鎌田 龍一 4 months, 2 weeks ago.

Assisted by: Noman.

Author Posts
October 29, 2025 at 1:51 pm #17529690

鎌田 龍一

Background of the issue:
I experienced a critical Array to string conversion error related to a Custom HTML Widget containing the PHP execution shortcode: [myphp file='layout-parts']. I have increased the WP Memory Limit to 128M.

Symptoms:
The error persists whenever I attempt to edit, save, or DELETE the specific Custom HTML Widget from Appearance >> Widgets. The site immediately crashes.

Questions:
I need a permanent solution to safely create and manage a dedicated Custom HTML Widget for the English site.

Please provide the necessary steps or code to implement a custom wpml-config.xml file to permanently exclude the [myphp file='layout-parts'] shortcode and its widget metadata from the String Translation system.

The topic ‘[Closed] I need a permanent, technical solution to safely use PHP Shortcodes in Custom HTML Widgets and preve…’ is closed to new replies.