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

Hello, i've this notice on administration :

`

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

`

Comments

  • This is from the custom option handler. Have you created any custom options somewhere?
  • No, i create my plugin with function error_reporting(E_ALL) ...
  • 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.
  • 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;`
  • @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 !
  • acrylian Administrator, Developer
    We do as well but some users might not as Zenphoto is not strictly PHP5. Warning about that avoids unnecessarily support questions and errors.
  • 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.
  • Ok, also excuse-me! sorry...
  • Ok, i've forget an index desc in method getOptionsSupported() ... very sorry.
Sign In or Register to comment.