V1.4 make PHP notice with function addPluginScript

hello, iv' upgraded with v1.4 my site 'zenphoto.dev'. No soucis with it.

But, now, when the page is charge, i've a PHP notice as:

Notice: addPluginScript (called from ... line 20) is deprecated Register a "theme_head" filter.

How resolve it ?

Comments

  • That error message actually answers your question. But you also have the option of turning off the error message throught the deprecated_function plugin options.
  • acrylian Administrator, Developer
    See our news section for info about that.
  • Mysunderstand! :p

    How change/modify my plugins to use new/good functions ?!
  • acrylian Administrator, Developer
    Maybe read the plugin tutorial?
  • Sorry for this message in mine native language :

    Désolé, j'y comprends rien à votre nouvelle stratégie, et autres changements que cela implique.
    Je trouve cela vraiment trop galère, ou alors, c'est la fatigue nocturne qui se fait tristement sentir.

    Il faut être quoi pour comprendre votre documentation : ingénieur linguistique ? extra-terrestre ?!

    Personnellement, je ne capte rien à ce nouveau processus de développement. C'est une logique qui m'échappe complétement !

    Là, sincèrement, cela me "prend fortement le choux". J'abandonne le développement de mes plugins => donc, si quelqu'un veut reprendre la suite, faire les modifications nécessaires ... qu'il se fasse plaisir !


  • As you know, the forum rules require these conversations to be in English so that all can follow. We'll let it stand this time since you are obviously frustrated, but be warned that these non-English postings may be removed as non compliant.

    Unfortunately, "lingua franca" no longer applies. The language of modern commerce is English, like it or not. Our documentation is in English, and while we have no objection to someone translating it to other languages we do not have the time (nor the skills) to do so ourselves.

    I am also sorry that you are confused by the changes we have made (and don't understand them.) Of course, there are ample examples of how things are done now versus previous implementations. Just look at the plugins which we distribute.

    It is also pretty late in the development process for a plugin developer to be looking at the 1.4 release. Best is to keep up with the changes by following the repositor and change log. Then suprises do not occur.
  • acrylian Administrator, Developer
    Also, I really think that our changes are not that severe at all. Its mainly detail changes that could be generally solved by changing just a few lines in a theme or plugin.

    Sorry, but of course we don't know your plugins so we don't even know if they actually need any severe changes at all.
  • I'm trying to replace function addPluginScript(namefunction); by new function zp_register_filter('theme_head','namefunction'); but that's not run.

    #addPluginScript(printZenPayPalToCSS());
    #addPluginScript(printZenPayPalToJS());
    zp_register_filter('theme_head','printZenPayPalToCSS');
    zp_register_filter('theme_head','printZenPayPalToJS');

    It's not good?!
  • Maybe you would need to modify those two ZenPayPal proceures as well.

    A typical example of the function registered would look something like:

    `
    function flvplayerJS() {
    ?>
    /flvplayer/swfobject.js">
    <?php
    }
    `
  • Ok, i've found why bug. Now, it's necessary to use the function echo() to displaying code and not search to return this!
Sign In or Register to comment.