Jump to:

1149 Posts in 2553 Topics by 408 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » Using User Forms [v0.2.0] on Stable 2.3.4

Ask questions about upgrading SilverStripe to the latest version.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2
Go to End
Author Topic: 2625 Views
  • cliersch
    Avatar
    Community Member
    75 Posts

    Using User Forms [v0.2.0] on Stable 2.3.4 Link to this post

    I need some help upgrading from 2.3.3 to 2.3.4 The UserForms Module seems to have a problem. After installing the module with dev/build I'm not able to get into the CMS Section (/admin) .

    Undefined index: UserDefinedForm_EmailRecipient

    Any solutions?

  • cliersch
    Avatar
    Community Member
    75 Posts

    Re: Using User Forms [v0.2.0] on Stable 2.3.4 Link to this post

    Hm - maybe its a thread for the 'module forum'.
    Does anybody use UserForms on Silverstripe 2.3.4?

  • cliersch
    Avatar
    Community Member
    75 Posts

    Re: Using User Forms [v0.2.0] on Stable 2.3.4 Link to this post

  • Juanitou
    Avatar
    Community Member
    323 Posts

    Re: Using User Forms [v0.2.0] on Stable 2.3.4 Link to this post

    Hi!

    Yes, I’m using it (always extending the page type, but nothing fancy). I don’t remember having problems when updating. Your error is not very descriptive but, in any case, it’s complaining about the name of a required table in the database.

    Not very useful, I know…
    Juan

  • cliersch
    Avatar
    Community Member
    75 Posts

    Re: Using User Forms [v0.2.0] on Stable 2.3.4 Link to this post

    There are only the databas tables userdefinedform, userdefinedform_live and userdefinedform_versions
    After building the Database I'm not able to get into the CMS.

    [Notice] Undefined index: UserDefinedForm_EmailRecipient
    GET /silverstripe-v2.3.4/admin?flush=all
    Line 157 in C:\xampplite\htdocs\silverstripe-v2.3.4\sapphire\core\ClassInfo.php

    and

    static function ancestry($class, $onlyWithTables = false) {
    152       global $_ALL_CLASSES;
    153
    154       if(is_object($class)) $class = $class->class;
    155       else if(!is_string($class)) user_error("Bad class value " . var_export($class, true) . " passed to ClassInfo::ancestry()", E_USER_WARNING);
    156

    157       $items = $_ALL_CLASSES['parents'][$class];

    158       $items[$class] = $class;
    159       if($onlyWithTables) foreach($items as $item) {
    160          if(!DataObject::has_own_table($item)) unset($items[$item]);
    161       }
    162       return $items;
    163    }

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: Using User Forms [v0.2.0] on Stable 2.3.4 Link to this post

    cliersch - tried getting into the cms with a ?flush=1 -> yoursite.com/admin?flush=1

  • danova
    Avatar
    Community Member
    4 Posts

    Re: Using User Forms [v0.2.0] on Stable 2.3.4 Link to this post

    Your error is not very descriptive but, in any case, it’s complaining about the name of a required table in the database.

  • DaveH
    Avatar
    Community Member
    1 Post

    Re: Using User Forms [v0.2.0] on Stable 2.3.4 Link to this post

    Had a very similar problem when I backed up a live site to a dev machine to test an upgrade to 2.3.7 and to add some additional modules. The upgrade went OK as did adding the extra modules.
    The problem arose when I tried to upgrade userforms to v0.2.1 from v0.1.0
    The Manifest was not getting updated properly - the cached details about the classes added or changed by the updated version. This appears to be caused by the way the ManifestBuilder determines which cache files are updated when the dev/build is performed.
    Since the timestamps on the files unpacked from userforms-v0.2.1.tar.gz were prior to the date of the dev/build which cached the details for userforms-v0.1.0, the cache was not updated correctly. Deleting the cache files from silverstripe-cache/ and re-performing dev/build cured it.
    "UserDefinedForm_EmailRecipient" is a new class added by v0.2.0 and can't be found in $_ALL_CLASSES['parents'][$class] because it is not (yet) in the Manifest (cache).

    2625 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.