hutman
Forum Replies Created
-
Code changes seem to have fixed it for us.
The lines are in wp-content/plugins/mainwp/class/class-mainwp-utility.php
Changing lines 2126 and 2163 from:
– in protected static function StrToNum( $Str, $Check, $Magic ) {$Check += ord( $Str{$i} );
to
$Check += ord( $Str[$i] );and
– in protected static function CheckHash( $Hashnum ) {$Re = $HashStr{$i};
to
$Re = $HashStr[$i];Makes it work under php 7.4 (at least not emit errors and the return code is 0). Not sure about the validity of the fix for sure though, other than the suggestion based on the error output.
Thank you linux4me2. Will take another look to see if we can get 7.4 working on our site and post back there.
Running with php 7.3 works for us, so, take it for whatever works for you.
php7.3 (…)/wp-content/plugins/mainwp/cron/updatescheck.php
(no errors emitted).
Update from developer (post here for convenience of others): (we are running php 7.4.5 as well – when we had the error);
————–
As per our testing, everything works fine on our test servers where we run PHP 7.4.5Forum: Themes and Templates
In reply to: [Responsive] Theme update broke my websiteLooks like the include paths are broken in wp-content/themes/responsive/core/rollback/start.php.
Here’s a fix:
<?php /** * File responsible for sdk files loading. * * @package Responsive * @since 3.24 */ namespace ResponsiveSDK; if ( ! defined( 'ABSPATH' ) ) { exit; } $products = apply_filters( 'responsive_sdk_products', array() ); $path = dirname( __FILE__ ); $files_to_load = [ $path . '/Loader.php', $path . '/Product.php', $path . '/Common/abstract-module.php', $path . '/Common/module-factory.php', $path . '/Rollback.php', ]; $files_to_load = array_merge( $files_to_load, apply_filters( 'responsive_sdk_required_files', [] ) ); foreach ( $files_to_load as $file ) { if ( is_file( $file ) ) { require_once $file; } } Loader::init(); foreach ( $products as $product ) { Loader::add_product( $product ); }