Home Forums Weaver Xtreme Theme Weaver Xtreme V5.0.2 works fine with the following changes on my site

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #69986
    HFigarella
    Participant

    Initially I got this error:
    <h1>TypeError thrown Unsupported operand types: int Рstring</h1>
    The cause is found in file …\weaverx-child\includes\generatecss.php

    Line 1292

    function weaverx_cat_css( $css ) {

    if ( isset ( $GLOBALS[‘weaverx_css_saved’] ) ) $GLOBALS[‘weaverx_css_saved’] .= $css; // Modified by Horacio. PHP Warning: Undefined array key “weaverx_css_saved”
    }

    Line 1345

    if ( ! is_int( $smart ) ) $smart = 1; // Added by Horacio. TypeError thrown. Unsupported operand types: int – string. *** $smart is not an integer
    if ( ! is_int( $r_sb_w ) ) $r_sb_w = 0; // Added by Horacio. TypeError thrown. Unsupported operand types: int – string. *** $r_sb_w is not an integer
    if ( ! is_int( $l_sb_w ) ) $l_sb_w = 0; // Added by Horacio. TypeError thrown. Unsupported operand types: int – string. *** $l_sb_w is not an integer
    if ( ! is_int( $ls_sb_w ) ) $ls_sb_w = 0; // Added by Horacio. TypeError thrown. Unsupported operand types: int – string. *** $ls_sb_w is not an integer
    if ( ! is_int( $rs_sb_w ) ) $rs_sb_w = 0; // Added by Horacio. TypeError thrown. Unsupported operand types: int – string. *** $rs_sb_w is not an integer

    by adding these lines, “TypeError thrown Unsupported operand types: int – string” does not show any more.

    Server Settings

    • Operating System : Windows Server 2019 (64 Bit) 17763.2366
    • Server :¬†Microsoft-IIS/10.0
    • MYSQL : 8.0.27
    • PHP : 8.0.14
    • WordPress : 5.9-beta4-52424

    Plugins

    • Weaver Show Posts : 1.5.1
    • Weaver Xtreme Plus : 3.1.1
    • Weaver Xtreme Theme Support : 5.0.2
    #69995
    scrambler
    Moderator

    The error appears to be in your child theme.

    With V5 of Xtreme changes have happened in theme that could break the child theme, you will need to review the difference with the new PHP file(s) you modified and make necessary changes to your child theme version.

     

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.