Fork me on GitHub

Class Form_Handler not found  Bottom

  • I am using the form handler routines and trying to upgrade to the latest zikula releases. When I try to change this line

    class quickcheck_admin_newTFQuestionHandler extends pnFormHanlder {

    to

    class quickcheck_admin_newTFQuestionHandler extends Form_Handler {

    I get this error in my PHP log file.

    PHP Fatal error: Class 'Form_Handler' not found in /Applications/MAMP/htdocs/zikula_1_2/modules/Quickcheck/pnadmin.php on line 256

    I am trying to do this in zikula 1.2.0 on my site. This code works in 1.3, is it basically an upgrade issue?
  • I just did a test upgrade on my home site to 1.2.8, the latest stable release. It did not get rid of the error. Thanks for any help on this.
  • More information,

    I can get this to work in my 1.3 site on my local server. So the question is, is 1.3 ready for production use? Or can someone propose a quick fix to get this to work in 1.2.8?
  • Zikula isn't upward compatible, if something works in 1.3 it doesn't mean it will also work in 1.2.x. Otoh, a year ago you stated Quickcheck does work in 1.2.4 but didn't work in 1.3.0? icon_confused Must be me not understanding what you mean...



    Edited by bvdbos3 on Oct 26, 2011 - 12:59 AM.
  • In 1.2.x the old version should work using pnFormHandler.

    IMHO Zikula 1.3.1 is ready for production use - at least if all extensions required for the corresponding project are available. But to become sure you must decide this for yourself, as I may totally different use cases than other people.

    --
    Guite | ModuleStudio
  • bvdbos3

    Zikula isn't upward compatible, if something works in 1.3 it doesn't mean it will also work in 1.2.x. Otoh, a year ago you stated Quickcheck does work in 1.2.4 but didn't work in 1.3.0? icon_confused Must be me not understanding what you mean...Edited by bvdbos3 on Oct 26, 2011 - 12:59 AM.


    I am in the process of getting it to work in 1.3 and am there. Now I am going back and trying to get it to still work with 1.2 v for those that can't upgrade at the moment. In other words trying to do some backward compatibility. I had the old version and some stuff must have snuck back into the old version.

    Oh jeez this was silly on my part. I need to read the error messages I am getting more carefully. It told me that execute did not exist. So look up the class genius! I did and what I am supposed to call is pnFormExecute. A simple switch and it all works.
  • Guite

    In 1.2.x the old version should work using pnFormHandler.

    IMHO Zikula 1.3.1 is ready for production use - at least if all extensions required for the corresponding project are available. But to become sure you must decide this for yourself, as I may totally different use cases than other people.


    Thanks that got me on the right track. I am in the middle of updating a book and really don't want to go through an upgrade. (How difficult is the upgrade from 1.2.4 to 1.3?)

    BTW, congratulations on the 0.5.3 release of module studio. I tested it on my mac and it comes up fine. I did not try any work in it, but I will next time I make a new module! Thanks for putting this together.
  • 0 users

This list is based on users active over the last 60 minutes.