前提・実現したいこと
Wordpressにて会員サイトを作成しています。
paypal決済を使用するためプラグインはSimpele membereshipを使用しています。
無料会員登録
→自動返信メールで決済
→プラグインの機能を使用して自動で有料会員へアップグレード
とする予定です。
しかし、「設定」にて無料会員を有効化、レベルIDも設定をしているのですが
会員登録をしようとすると下記メッセージが表示されます。
Error! Security check failed for membership level validation. The submitted membership level data does not seem to be authentic. If you are using caching please empty the cache data and try again.
ここまでに、下記を書き換えています。
「会員レベル」は登録の際に表示させたくなかったので消したのですが、それが原因でエラーが出たのがと思い戻しましたが無関係のようでした。
simple-membership/views/add.php
<tr class="swpm-registration-username-row"> <td><label for="user_name"><?php echo SwpmUtils::_('Username') ?></label></td> <td><input type="text" id="user_name" class="validate[required,custom[noapostrophe],custom[SWPMUserName],minSize[4],ajax[ajaxUserCall]]" value="<?php echo esc_attr($user_name); ?>" size="50" name="user_name" /></td> </tr> <tr class="swpm-registration-email-row"> <td><label for="email"><?php echo SwpmUtils::_('Email') ?></label></td> <td><input type="text" autocomplete="off" id="email" class="validate[required,custom[email],ajax[ajaxEmailCall]]" value="<?php echo esc_attr($email); ?>" size="50" name="email" /></td> </tr> <tr class="swpm-registration-password-row"> <td><label for="password"><?php echo SwpmUtils::_('Password') ?></label></td> <td><input type="password" autocomplete="off" id="password" class="<?php echo $pass_class; ?>" value="" size="50" name="password" /></td> </tr> <tr class="swpm-registration-password-retype-row"> <td><label for="password_re"><?php echo SwpmUtils::_('Repeat Password') ?></label></td> <td><input type="password" autocomplete="off" id="password_re" value="" size="50" name="password_re" /></td> </tr> <tr class="swpm-registration-lastname-row"> <td><label for="last_name"><?php echo SwpmUtils::_('Last Name') ?></label></td> <td><input type="text" id="last_name" value="<?php echo esc_attr($last_name); ?>" size="50" name="last_name" /></td> </tr> <tr class="swpm-registration-firstname-row"> <td><label for="first_name"><?php echo SwpmUtils::_('First Name') ?></label></td> <td><input type="text" id="first_name" value="<?php echo esc_attr($first_name); ?>" size="50" name="first_name" /></td> </tr> <tr class="swpm-profile-zipcode-row"> <td><label for="address_zipcode"><?php echo SwpmUtils::_('Zipcode'); ?></label></td> <td><input type="text" id="address_zipcode" value="<?php echo $address_zipcode; ?>" size="50" name="address_zipcode" /></td> <tr class="swpm-profile-state-row"> <td><label for="address_state"><?php echo SwpmUtils::_('State'); ?></label></td> <td><input type="text" id="address_state" value="<?php echo $address_state; ?>" size="50" name="address_state" /></td> </tr> <tr class="swpm-profile-city-row"> <td><label for="address_city"><?php echo SwpmUtils::_('City'); ?></label></td> <td><input type="text" id="address_city" value="<?php echo $address_city; ?>" size="50" name="address_city" /></td> </tr> <tr class="swpm-profile-street-row"> <td><label for="address_street"><?php echo SwpmUtils::_('以降の住所'); ?></label></td> <td><input type="text" id="address_street" value="<?php echo $address_street; ?>" size="50" name="address_street" /></td> </tr> <tr class="swpm-profile-company-row"> <td><label for="company_name"><?php echo SwpmUtils::_('生年月日'); ?></label></td> <td><input type="text" id="company_name" value="<?php echo $company_name; ?>" size="50" name="company_name" /></td> </tr> <tr class="swpm-profile-membership-level-row"> <td><label for="membership_level"><?php echo SwpmUtils::_('Membership Level'); ?></label></td> <td> <?php echo $membership_level_alias; ?> </td> </tr>
試したこと
会員登録のフォームをカスタマイズしたくphpを書き換えてしまったことが原因なのかわかりません。
エラーの内容からすると、無料会員を有効化していない&IDを間違えているのではと思いましたがそちらは正しくなっています。
会員登録フォームのショートコードは、
[swpm_registration_form]
[swpm_registration_form level=3]
どちらも試しましたが同様のエラーが表示されました。
小テーマなども理解できていない、まったくの初心者のため、混乱しております。
どなたかご指導いただけますと幸いです。
回答1件
あなたの回答
tips
プレビュー