zenphoto forums » General Zenphoto Discussion

Notice on /zp-core/admin-functions.php on line 519

(10 posts)
  1. hucste

    Contributor
    Joined: Jul '09
    Posts: 170

    Hello, i've this notice on administration :


    Notice: Undefined index: desc in /.../zp-core/admin-functions.php on line 519

    Posted 2 years ago #
  2. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,771

    This is from the custom option handler. Have you created any custom options somewhere?

    Don't forget to read the Forum rules and usage resources
    Posted 2 years ago #
  3. hucste

    Contributor
    Joined: Jul '09
    Posts: 170

    No, i create my plugin with function error_reporting(E_ALL) ...

    Posted 2 years ago #
  4. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,771

    Where exactly does the error show up? That will help us know what software is causing it. The error is caused by a mal-formed custom option. There will probably be the error messaege where there should have been an option description.

    Don't forget to read the Forum rules and usage resources
    Posted 2 years ago #
  5. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,771

    BTW, you should use the defines for the custom option types. Much better programming practice and more likely to survive future Zenphoto updates.

    And also you might want to include the following in the beginning of your script since it requires PHP 5
    $plugin_disable = (version_compare(PHP_VERSION, '5.0.0') != 1) ? gettext('PHP version 5 or greater is required.') : false;

    Don't forget to read the Forum rules and usage resources
    Posted 2 years ago #
  6. hucste

    Contributor
    Joined: Jul '09
    Posts: 170

    @sbillard: see this Image

    I use a max option defined. And, ok, for the include to compare PHP5 ;-)
    But, perso, i run on PHP 5 !

    Posted 2 years ago #
  7. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,367

    We do as well but some users might not as Zenphoto is not strictly PHP5. Warning about that avoids unnecessarily support questions and errors.

    Don't forget to read the Forum rules and usage resources
    Posted 2 years ago #
  8. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,771

    From the image, it would appear to be an issue with the Zenpaypal plugin. Disable that plugin and see if it goes away. I am not familiar with the Zenpaypal plugin, but from the error, it has an option that lacks the option description part.

    Don't forget to read the Forum rules and usage resources
    Posted 2 years ago #
  9. hucste

    Contributor
    Joined: Jul '09
    Posts: 170

    Ok, also excuse-me! sorry...

    Posted 2 years ago #
  10. hucste

    Contributor
    Joined: Jul '09
    Posts: 170

    Ok, i've forget an index desc in method getOptionsSupported() ... very sorry.

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.