webgui/lib/WebGUI
Scott Walters 28668d4195 Fix for ``unable to call method setting on undefined value'' when turning admin on. Details follow.
It turned out this problem is related to Moose and/or Class::MOP.  I downgraded Moose to 1.25, and Class::MOP to 1.12, and then I got the console just fine when I clicked on "turn admin on".

I managed to operate the Perl debugger on the code, by putting Enbugger->stop at the desired point. I could then debug it interactively.
The stack trace at the point of failure in Search.pm is:
  DB<3> T
$ = WebGUI::Asset::Wobject::Search::_searchRoot_builder(ref(WebGUI::Asset::Wobject::Search)) called from file `constructor WebGUI::Asset::Wobject::Search::new (defined at /home/amir/Downloads/webgui/lib/WebGUI/Asset/Wobject/Search.pm line 214)' line 224
$ = WebGUI::Asset::Wobject::Search::new('WebGUI::Asset::Wobject::Search', ref(HASH)) called from file `/home/amir/Downloads/webgui/lib/WebGUI/Asset.pm' line 1937
$ = WebGUI::Asset::newByPropertyHashRef('WebGUI::Asset', ref(WebGUI::Session), ref(HASH)) called from file `/home/amir/Downloads/webgui/lib/WebGUI/Admin.pm' line 186
@ = WebGUI::Admin::getAssetTypes(ref(WebGUI::Admin)) called from file `/home/amir/Downloads/webgui/lib/WebGUI/Admin.pm' line 279
$ = WebGUI::Admin::getNewContentTemplateVars(ref(WebGUI::Admin)) called from file `/home/amir/Downloads/webgui/lib/WebGUI/Admin.pm' line 811
$ = WebGUI::Admin::www_view(ref(WebGUI::Admin)) called from file `/home/amir/Downloads/webgui/lib/WebGUI/Content/Admin.pm' line 80
$ = WebGUI::Content::Admin::handler(ref(WebGUI::Session)) called from file `/home/amir/Downloads/webgui/lib/WebGUI/Pluggable.pm' line 287
$ = WebGUI::Pluggable::run('WebGUI::Content::Admin', 'handler', ref(ARRAY)) called from file `/home/amir/Downloads/webgui/lib/WebGUI.pm' line 165
$ = eval {...} called from file `/home/amir/Downloads/webgui/lib/WebGUI.pm' line 165
. = WebGUI::handle(ref(WebGUI), ref(WebGUI::Session)) called from file `/home/amir/Downloads/webgui/lib/WebGUI.pm' line 77
@ = WebGUI::call(ref(WebGUI), ref(HASH)) called from file `/usr/lib/perl5/site_perl/5.12.3/Plack/Component.pm' line 39

...
  DB<1> l
38==>    my $session = shift->session;
39    return $session->setting->get("defaultPage");
40 }
41 property classLimiter => (
42                fieldType       => "checkList",
43                default         => undef,
44                vertical        => 1,
45                tab             => "properties",
46                hoverHelp       => ["class limiter description", 'Asset_Search'],
47                label           => ["class limiter", 'Asset_Search'],
  DB<1> p join(",",keys %{$_[0]});
mobileStyleTemplateId,displayTitle,assetSize,classLimiter,newWindow,extraHeadTagsPacked,ownerUserId,extraHeadTags,paginateAfter,isPrototype,isPackage,isHidden,groupIdEdit,encryptPage,inheritUrlFromParent,description,isExportable,lastModified,groupIdView,printableStyleTemplateId

NOTE: "session" is not found there.

With a downgraded Moose:

38==>    my $session = shift->session;
39    return $session->setting->get("defaultPage");
40 }
41 property classLimiter => (
42                fieldType       => "checkList",
43                default         => undef,
44                vertical        => 1,
45                tab             => "properties",
46                hoverHelp       => ["class limiter description", 'Asset_Search'],
47                label           => ["class limiter", 'Asset_Search'],
  DB<1> p  join(",",keys %{$_[0]});
skipNotification,uiLevel,displayTitle,classLimiter,newWindow,synopsis,extraHeadTagsPacked,extraHeadTags,ownerUserId,session,paginateAfter,isHidden,groupIdEdit,encryptPage,inheritUrlFromParent,description,title,printableStyleTemplateId
  DB<2>

("session" is found.)

Amir
2011-07-01 16:31:48 -04:00
..
Account Repeat ampli's fix (described below) for other occurances on the site. 2011-06-29 19:13:18 -04:00
Admin add POD to WebGUI::Admin::Plugin and rename canUse to canView 2011-05-27 17:08:25 -05:00
AdSpace
Asset Fix for ``unable to call method setting on undefined value'' when turning admin on. Details follow. 2011-07-01 16:31:48 -04:00
AssetAspect Merge commit 'v7.10.15' into 8 2011-05-13 18:15:11 -05:00
AssetCollateral Merge commit 'v7.10.15' into 8 2011-05-13 18:15:11 -05:00
AssetHelper Repeat ampli's fix (described below) for other occurances on the site. 2011-06-29 19:13:18 -04:00
Auth Merge branch 'WebGUI8' of github.com:plainblack/webgui into 8 2011-05-13 18:20:52 -05:00
Command convert changeIobStatus.pl to module 2011-06-16 01:56:21 -05:00
Content rfe #12159: Asset Manager sort preferences 2011-06-13 13:25:01 -05:00
Definition use a default label instead of requiring one 2011-06-23 13:02:27 -05:00
Exception
FilePump Fix POD problems in Bundle from the rewrite. 2010-11-11 14:22:46 -08:00
Fork Merge commit 'v7.10.15' into 8 2011-05-13 18:15:11 -05:00
Form Merge commit 'v7.10.17' into 8 2011-06-17 20:13:41 -05:00
FormBuilder $SIG{__DIE__} is a can of worms. Why doesn't try { } localize it...? 2011-05-22 15:36:40 -04:00
Help Remove the fields variable from the template variable help for Asset_Thing, viewThingData. 2011-05-02 20:06:54 -07:00
i18n Merge commit 'v7.10.18' into 8 2011-06-21 16:03:49 -05:00
Image must have a width/height in order to set width/height 2011-05-03 17:09:14 -05:00
Inbox Merge commit 'bfe9780ce0' into WebGUI8. Merged up to 7.10.3 2010-11-02 14:49:33 -07:00
Macro Merge commit 'v7.10.18' into 8 2011-06-21 16:03:49 -05:00
Mail Merge commit 'v7.10.17' into 8 2011-06-17 20:13:41 -05:00
Middleware The text of the error message might be useful in the stack trace. 2011-05-22 23:57:08 -04:00
Operation Repeat ampli's fix (described below) for other occurances on the site. 2011-06-29 19:13:18 -04:00
PassiveAnalytics WebGUI::Session::Http should go away (#11647) 2011-05-11 16:17:54 -04:00
Role/Asset fix bugs revealed by Test::Class tests 2011-06-02 19:44:06 -05:00
Search Merge commit 'v7.10.15' into 8 2011-05-13 18:15:11 -05:00
Session Revert "allow SSLPROXY header again" 2011-06-23 17:46:16 -05:00
Shop Repeat ampli's fix (described below) for other occurances on the site. 2011-06-29 19:13:18 -04:00
SQL Fix POD problem 2010-06-13 17:41:28 -07:00
Storage
Template add automatic proxy system for passing objects to Template::Toolkit 2011-06-15 18:19:16 -05:00
Test Rework WebGUI::Test::getPage2 to be a wrapper around WebGUI::Test::Mechanize; this is still just 2011-05-11 15:26:32 -04:00
Upgrade refactor some of the upgrade script code 2011-02-21 18:24:22 -06:00
Wizard Repeat ampli's fix (described below) for other occurances on the site. 2011-06-29 19:13:18 -04:00
Workflow Repeat ampli's fix (described below) for other occurances on the site. 2011-06-29 19:13:18 -04:00
Account.pm Merge commit 'v7.10.18' into 8 2011-06-21 16:03:49 -05:00
Admin.pm className is the full class name. type is the i18n name 2011-04-19 14:01:25 -05:00
AdminConsole.pm WebGUI::Session::Http should go away (#11647) 2011-05-11 16:17:54 -04:00
AdSpace.pm Remove Session::Env, migrate code to Plack::Request object in Session, and WebGUI::Session::Request 2010-07-01 17:40:12 -07:00
Affiliate.pm
Asset.pm Merge commit 'v7.10.17' into 8 2011-06-17 20:13:41 -05:00
AssetBranch.pm remove editBranch page, it is now AssetHelper::EditBranch 2011-02-25 15:45:41 -06:00
AssetClipboard.pm Merge commit 'v7.10.15' into 8 2011-05-13 18:15:11 -05:00
AssetExportHtml.pm Merge commit 'v7.10.18' into 8 2011-06-21 16:03:49 -05:00
AssetHelper.pm add "asset" property to AssetHelpers. 2011-03-25 14:49:44 -05:00
AssetLineage.pm Merge commit 'v7.10.15' into 8 2011-05-13 18:15:11 -05:00
AssetMetaData.pm Repeat ampli's fix (described below) for other occurances on the site. 2011-06-29 19:13:18 -04:00
AssetPackage.pm WebGUI::Session::Http should go away (#11647) 2011-05-11 16:17:54 -04:00
AssetTrash.pm Merge commit 'v7.10.15' into 8 2011-05-13 18:15:11 -05:00
AssetVersioning.pm Merge branch 'WebGUI8' of github.com:plainblack/webgui into 8 2011-05-13 18:20:52 -05:00
Auth.pm Merge branch 'WebGUI8' of github.com:plainblack/webgui into 8 2011-05-13 18:20:52 -05:00
BestPractices.pm need to load modules in WebGUI::BestPractices 2011-04-28 15:35:10 -05:00
Command.pm do not buffer command output 2011-05-18 14:12:23 -05:00
Config.pm Merge remote branch 'upstream/WebGUI8' into 8-merge 2010-07-14 18:20:00 -05:00
Crud.pm document that tableKey is not allowed to have fieldType 2011-06-23 13:07:19 -05:00
DatabaseLink.pm change ErrorHandler to Log 2010-10-27 12:50:12 -05:00
DateTime.pm Remove profileField method from DateTime. 2010-11-18 15:51:48 -08:00
Definition.pm
Deprecate.pm fix derp message to look more like carp message 2011-01-04 18:01:21 -06:00
Event.pm WebGUI::Event 2011-05-31 16:13:09 -05:00
Exception.pm Merge branch 'master' into WebGUI8. Merged up to 7.9.12 2010-08-13 12:25:19 -07:00
Fork.pm Merge branch 'WebGUI8' of github.com:plainblack/webgui into 8 2011-05-13 18:20:52 -05:00
Form.pm deprecate the AUTOLOAD of WebGUI::Form 2011-01-04 18:01:22 -06:00
FormBuilder.pm formbuilder toTemplateVars is now complete and tested 2011-04-12 21:26:20 -05:00
FormValidator.pm change ErrorHandler to Log 2010-10-27 12:50:12 -05:00
Friends.pm remove WebGUI::Utility 2010-09-07 13:18:49 -05:00
Group.pm Merge commit 'v7.10.18' into 8 2011-06-21 16:03:49 -05:00
GUID.pm remove MIME::Base64::URLSafe as they do it reversely 2011-01-13 15:00:50 -06:00
HTML.pm update docs to point to better place 2011-02-25 15:45:39 -06:00
HTMLForm.pm Change occurances of user->profileField to user->get 2010-11-18 16:12:03 -08:00
ICal.pm no parent yet, use base instead. 2011-02-01 08:21:29 -08:00
Image.pm must have a width/height in order to set width/height 2011-05-03 17:09:14 -05:00
Inbox.pm move core profile fields into users table 2010-12-03 22:36:30 -06:00
International.pm fix bugs revealed by Test::Class tests 2011-06-02 19:44:06 -05:00
JSONCollateral.pm
Keyword.pm Merge commit 'v7.10.15' into 8 2011-05-13 18:15:11 -05:00
LDAPLink.pm
Macro.pm change ErrorHandler to Log 2010-10-27 12:50:12 -05:00
Operation.pm Merge commit 'v7.10.15' into 8 2011-05-13 18:15:11 -05:00
Paginator.pm change ErrorHandler to Log 2010-10-27 12:50:12 -05:00
PassiveProfiling.pm Syntax clean. 2010-11-17 16:34:11 -08:00
Paths.pm don't preload WebGUI::Test 2010-08-31 16:01:04 -05:00
Pluggable.pm Merge commit '63865eb39f' into WebGUI8. up to 7.9.11 2010-08-13 11:52:08 -07:00
ProfileCategory.pm remove WebGUI::Utility::isIn 2010-09-07 12:33:15 -05:00
ProfileField.pm Merge commit 'v7.10.15' into 8 2011-05-13 18:15:11 -05:00
ProgressBar.pm WebGUI::Session::Http should go away (#11647) 2011-05-11 16:17:54 -04:00
ProgressTree.pm Better @INC fiddling and degenerate case for ProgressTree 2010-11-08 07:57:40 -06:00
Search.pm Merge commit 'v7.10.15' into 8 2011-05-13 18:15:11 -05:00
Session.pm Fixing the var() deprecation crutch. 2011-05-22 21:03:45 -04:00
SQL.pm Merge branch 'master' into WebGUI8. Merged up to 7.10.4 2010-11-03 09:47:36 -07:00
Storage.pm Merge commit 'v7.10.18' into 8 2011-06-21 16:03:49 -05:00
TabForm.pm Change occurances of user->profileField to user->get 2010-11-18 16:12:03 -08:00
Test.pm Merge commit 'v7.10.18' into 8 2011-06-21 16:03:49 -05:00
Text.pm
Types.pm Add a Hash type to go along with Array types for handling JSON. 2010-07-15 13:52:44 -07:00
Upgrade.pm run upgrades in alphabetical order 2010-09-21 13:12:44 -05:00
User.pm Merge commit 'v7.10.15' into 8 2011-05-13 18:15:11 -05:00
VersionTag.pm Merge branch 'WebGUI8' of github.com:plainblack/webgui into 8 2011-05-13 18:20:52 -05:00
Wizard.pm WebGUI::Session::Http should go away (#11647) 2011-05-11 16:17:54 -04:00
Workflow.pm Merge commit 'v7.10.15' into 8 2011-05-13 18:15:11 -05:00