Project

General

Profile

Bug(バグ) #4431

pc_backend.php/member/invite にてサーバエラーが発生する

Added by kaoru n about 2 months ago. Updated about 2 months ago.

Status:
Pending Review(レビュー待ち)
Priority:
Normal(通常)
Assignee:
Target version:
Start date:
2020-04-02
Due date:
% Done:

50%

3.6 で発生するか:
Unknown (未調査)
3.8 で発生するか:
No (いいえ)

Description

Overview (現象)

pc_backend.php/member/invite にアクセスすると以下のエラーが発生する。

Fatal error: Uncaught Error: Call to a member function pluralize() on null in (snip)/lib/form/doctrine/MemberConfigForm.class.php:106 Stack trace: #0 (snip)/lib/form/doctrine/MemberConfigForm.class.php(28): MemberConfigForm->setMemberConfigSettings() #1 (snip)/lib/form/MemberConfigForm/MemberConfigPcAddressForm.class.php(24): MemberConfigForm->__construct(NULL, Array, NULL) #2 (snip)/apps/pc_backend/modules/member/actions/actions.class.php(101): MemberConfigPcAddressForm->__construct(NULL, Array) #3 (snip)/lib/vendor/symfony/lib/action/sfActions.class.php(60): memberActions->executeInvite(Object(opWebRequest)) #4 (snip)/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php(92): sfActions->execute(Object(opWebRequest)) #5 (snip)/l in (snip)/lib/form/doctrine/MemberConfigForm.class.php on line 106

Causes (原因)

https://github.com/openpne/OpenPNE3/blob/OpenPNE-3.10.0/lib/form/doctrine/MemberConfigForm.class.php#L105

    $termMyFriend = Doctrine::getTable('SnsTerm')->get('my_friend');
にて、sns_term.application = 'pc_backend' & sns_term.name = 'my_friend' のレコードが存在しないため。

Way to fix (修正内容)

https://github.com/nishizoe/OpenPNE3/blob/OpenPNE-3.8.10/lib/i18n/opI18N.class.php#L23-L30

    $this->terms = Doctrine::getTable('SnsTerm');
    $application = sfConfig::get('sf_app');
    if ('pc_backend' == $application)
    {
        $application = 'pc_frontend';
    }
    $this->terms = Doctrine::getTable('SnsTerm');
    $this->terms->configure($this->culture, $application);
と同様に、configure を行う


Subtasks

Backport(バックポート) #4432: pc_backend.php/member/invite にてサーバエラーが発生するPending Review(レビュー待ち)kaoru n

History

#1 Updated by kaoru n about 2 months ago

  • Status changed from New(新規) to Pending Review(レビュー待ち)
  • % Done changed from 0 to 50

https://github.com/openpne/OpenPNE3/pull/601
にてプルリクエストしました

#2 Updated by kaoru n about 2 months ago

  • Target version changed from OpenPNE 3.10.x to OpenPNE 3.11.x

Also available in: Atom PDF