php 8.2.19 - Error plxMyMultiLingue in PluXml 5.8.14

kamonkamon Member
6 juil. modifié dans Plugins

I'm getting an error on my site when installing the latest plugin plxMyMultiLingue
Fatal error :
type : 8192
message : Creation of dynamic property plxMotor::$infos_statics is deprecated
file : /core/lib/class.plx.motor.php(351) : eval()'d code
line : 3

See https://www.php.net/manual/en/errorfunc.constants.php about type of error

User : 001
Profil : 0
PluXml version : 5.8.14
PHP version : 8.2.19

My site micron. Free hosting: infinityfree.com | php 8.2.21 without alternative.

Mots clés:

Réponses

  • Hello,

    @kamon

    to allow creation of dynamic properties you may add on line 11 of core/lib/class.plx.motor.php the following line :

    #[AllowDynamicProperties] 
    

    or manually add those missing properties to line 48 & 49

        public $infos_statics; # Plugin PlxMultilingue : tableau page statics par langue
        public $infos_arts; # Plugin PlxMultilingue : tableau articles par langue
    

    Welcome to PluXml


    Cordialement,
    gcyrillus , simple membre du forum et utilisateur de pluxml

    Mon site PluXml: https://re7net.com | Plugins: https://ressources.pluxopolis.net/banque-plugins/index.php?all_versions | demos sur free http://gcyrillus.free.fr/new | Thèmes: tester et télécharger @ https://pluxthemes.com
    Indiquez [RESOLU] dans le titre de votre question une fois le soucis réglè, Merci

  • kamonkamon Member
    8 juil. modifié

    The lines are indicated earlier in core/lib/class.plx.motor.php version 5.8.14:

    • public $infos_statics; # Plugin PlxMultilingue : tableau page statics par langue

    * public $infos_arts; # Plugin PlxMultilingue : tableau articles par langue

    New Error:
    Fatal error :
    type : 8192
    message : Creation of dynamic property plxMotor::$infos_statics is deprecated
    file : /core/lib/class.plx.motor.php(351) : eval()'d code
    line : 3

    See https://www.php.net/manual/en/errorfunc.constants.php about type of error

    User : 001
    Profil : 0
    PluXml version : 5.8.14

    PHP version : 8.2.19

    Why do such large letters appear in a forum message? I just copied and pasted (Ctrl+C to Ctrl+V). It's impossible to write normally.

    My site micron. Free hosting: infinityfree.com | php 8.2.21 without alternative.

  • 8 juil. modifié

    hello,

    /core/lib/class.plx.motor.php(351)

    Looks like you did not modify this file , therefor you did not apply the fix.

    The first option i earlier proposed should have push down everything below edit of one line and not trigger this warning
    the second option option should have push down everything below edit of 2 lines and not trigger this warning

    First option after edit would leave the beginning of the file /core/lib/class.plx.motor.php alike:

    <?php
    
    /**
     * Classe plxMotor responsable du traitement global du script
     *
     * @package PLX
     * @author  Anthony GUÉRIN, Florent MONTHEL, Stéphane F, Pedro "P3ter" CADETE
     **/
    
    include_once PLX_CORE.'lib/class.plx.template.php';
    
    #[AllowDynamicProperties] 
    class plxMotor {
    

    and eval($this->plxPlugins->callHook('plxMotorDemarrageEnd')); will no longer be on line 351 but 352 ;)

    Why do such large letters appear in a forum message? I just copied and pasted (Ctrl+C to Ctrl+V). It's impossible to write normally.

    The forum can use markdown and will apply anything in your message that may look alike. You can avoid this, pasting your codes in between these caracteres (backtick) ``` . it will create a block of <code> . See https://www.markdownguide.org/extended-syntax/#fenced-code-blocks

    p.s. excuse my average english, do not hesitate to ask again i can be very much unclear ;)


    Cordialement,
    gcyrillus , simple membre du forum et utilisateur de pluxml

    Mon site PluXml: https://re7net.com | Plugins: https://ressources.pluxopolis.net/banque-plugins/index.php?all_versions | demos sur free http://gcyrillus.free.fr/new | Thèmes: tester et télécharger @ https://pluxthemes.com
    Indiquez [RESOLU] dans le titre de votre question une fois le soucis réglè, Merci

Connectez-vous ou Inscrivez-vous pour répondre.