I use child theme of PRO and now i receive error in PRO -> Settings
Unable to save and Unable to Clear cache
If I swith to parent teme it’s work but in child theme i receive same error.
functions.php is empty …
Hi Dmitry,
Thanks for reaching out.
The error is PHP Failed input, it seems the post data is failing to reach PHP input. Could you try enabling your site’s allow_url_fopen? It could be done through your PHP.ini and please contacting your hosting provider. The code file_get_contents( 'php://input' ) is failing and looks like it’s dependent to allow_url_fopen.
Related article https://stackoverflow.com/questions/8945879/how-to-get-body-of-a-post-in-php
Thanks!
allow_url_fopen is enabled you can see it here
http://new.narhozstroy.ru/pi.php
it’s work correctly, but after i include code in functions.php it crash…
class WC_Widget_Size_Filter extends WC_Widget {
/**
* Constructor.
*/
public function __construct() {
$this->widget_cssclass = ‘woocommerce widget_Size_filter’;
$this->widget_description = __( ‘Display a slider to filter products in your store by Size.’, ‘woocommerce’ );
$this->widget_id = ‘woocommerce_Size_filter’;
$this->widget_name = __( ‘Filter Products by Size’, ‘woocommerce’ );
$this->settings = array(
‘title’ => array(
‘type’ => ‘text’,
‘std’ => __( ‘Filter by Size’, ‘woocommerce’ ),
‘label’ => __( ‘Title’, ‘woocommerce’ ),
),
);
}
and i try code file_get_contents( ‘php://input’ )
it’s not return any error…
Hi @Boulatov,
Regretfully, this particular customization request is outside the scope of our support as this is not related to an issue with the theme and instead has to do with your customization of it. As such, you will need to investigate this particular issue on your own or seek help from a developer should you not feel comfortable making these changes yourself.
Thank you for your understanding.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.