#82143 Raven Plugin PHP Warnings

Landing Forums JupiterX WordPress Theme Raven Plugin PHP Warnings

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • Jitendra

    Hello,

    This is just a fix submission for plugin “raven”. You can close ticket after appropriate internal forward of this message.

    Issue: PHP Warning: is_readable(): open_basedir restrictions in effect. File(WP_PLUGIN_DIR+AbsPath/includes/languages/raven-en_US.mo) is not within the allowed path(s).
    Error reported from “\wp-includes\l10n.php on line 741”

    Cause: load_plugin_textdomain requires relative path to WP_PLUGIN_DIR as third parameter. Code passes Absolute path.

    Fix Details as follows
    raven plugin version: 1.0.0
    file changed: include/plugin.php
    function name: i18n()
    line requires fix : 175
    ==== new function definition ===================
    public function i18n() {
    //load_plugin_textdomain( ‘raven’, false, plugin_dir_path( RAVEN__FILE__ ) . ‘includes/languages’ );
    $relative_path_to_lang = implode( DIRECTORY_SEPARATOR, [ dirname( plugin_basename( RAVEN__FILE__ )), ‘includes’, ‘languages’ ] );
    load_plugin_textdomain( ‘raven’, false, $relative_path_to_lang );
    }
    ================================================

    thank you.

    Jitendra

    Jitendra

    One more notice is frequent in log as follows.

    [16-Sep-2020 20:26:50 UTC] PHP Notice: Undefined variable: switch_image in \public_html\wp-content\plugins\raven\includes\modules\image\widgets\image.php on line 525

    PHP version used in 7.4
    JupiterX version v1.20.1
    Raven version v1.10.2

    Change Code suggested as follows.
    Line 524-526
    ============
    if ( ! empty( $settings[‘switch_on_hover’] ) ) {
    if($switch_image){ //Line Added to Fix
    echo $switch_image;
    } //Line Added to Fix
    }
    ============

    Thank you.

    Jitendra

    Danish Iqbal Support Team

    Hello Jitendra,

     

    Thank you for the detailed information.

    Before I forward this, I will have to validate the issue. Could you please tell me where exactly do you see these warning?

    Do you see these warnings somewhere in the WordPress Dashboard or when adding any specific widget using Raven or somewhere else?

     

    Regards.

    Jitendra

    These warning are in wp log file while DEBUG is on.

    Danish Iqbal Support Team

    Hello Jitendra,

     

    Thank you for the details.

    I will inform the team about it.

     

    Regards.

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