マッチングサイト構築・Osclassのエラー修正

エラー

Osclassの、無料テーマ OsclassWizards使用時に

3点のエラー(不具合)がありましたので修正方法を紹介します。

管理画面・商品登録のエラー表示

エラー
エラー

管理画面・商品登録で下記エラー表示が出てくる

Warning: sprintf(): Too few arguments in /home/xxxxxxx/okinawa-yyyyyyy.net/public_html/oc-admin/items.php on line 822
Warning: sprintf(): Too few arguments in /home/xxxxxxx/okinawa-yyyyyyy.net/public_html/oc-admin/items.php on line 823
Warning: sprintf(): Too few arguments in /home/xxxxxxx/okinawa-yyyyyyy.net/public_html/oc-admin/items.php on line 824
Warning: sprintf(): Too few arguments in /home/xxxxxxx/okinawa-yyyyyyy.net/public_html/oc-admin/items.php on line 825
Warning: sprintf(): Too few arguments in /home/xxxxxxx/okinawa-yyyyyyy.net/public_html/oc-admin/items.php on line 826
Warning: sprintf(): Too few arguments in /home/xxxxxxx/okinawa-yyyyyyy.net/public_html/oc-admin/items.php on line 827
Warning: sprintf(): Too few arguments in /home/xxxxxxx/okinawa-yyyyyyy.net/public_html/oc-admin/items.php on line 828
Warning: sprintf(): Too few arguments in /home/xxxxxxx/okinawa-yyyyyyy.net/public_html/oc-admin/items.php on line 829
Warning: sprintf(): Too few arguments in /home/xxxxxxx/okinawa-yyyyyyy.netpublic_html/oc-admin/items.php on line 830

※/home/xxxxxxx/okinawa-yyyyyyy.netpublic_html/furima/ はサーバー・ドメインにより異なります

修正方法

items.php
items.php

/oc-admin/items.php の該当(822〜830)の %s を %%s に変更すると治ります。

items.php

$bulk_options = array(
array('value' => '', 'data-dialog-content' => '', 'label' => __('Bulk actions')),
array('value' => 'delete_all', 'data-dialog-content' => sprintf(__('Are you sure you want to %%s the selected listings?'), strtolower(__('Delete'))), 'label' => __('Delete')),
array('value' => 'activate_all', 'data-dialog-content' => sprintf(__('Are you sure you want to %%s the selected listings?'), strtolower(__('Activate'))), 'label' => __('Activate')),
array('value' => 'deactivate_all', 'data-dialog-content' => sprintf(__('Are you sure you want to %%s the selected listings?'), strtolower(__('Deactivate'))), 'label' => __('Deactivate')),
array('value' => 'disable_all', 'data-dialog-content' => sprintf(__('Are you sure you want to %%s the selected listings?'), strtolower(__('Block'))), 'label' => __('Block')),
array('value' => 'enable_all', 'data-dialog-content' => sprintf(__('Are you sure you want to %%s the selected listings?'), strtolower(__('Unblock'))), 'label' => __('Unblock')),
array('value' => 'premium_all', 'data-dialog-content' => sprintf(__('Are you sure you want to %%s the selected listings?'), strtolower(__('Mark as premium'))), 'label' => __('Mark as premium')),
array('value' => 'depremium_all', 'data-dialog-content' => sprintf(__('Are you sure you want to %%s the selected listings?'), strtolower(__('Unmark as premium'))), 'label' => __('Unmark as premium')),
array('value' => 'spam_all', 'data-dialog-content' => sprintf(__('Are you sure you want to %%s the selected listings?'), strtolower(__('Mark as spam'))), 'label' => __('Mark as spam')),
array('value' => 'despam_all', 'data-dialog-content' => sprintf(__('Are you sure you want to %%s the selected listings?'), strtolower(__('Unmark as spam'))), 'label' => __('Unmark as spam'))
);

修正後

これでエラー表記は、消えました。



こちらの記事も読まれてます。