php8にて商品詳細ページにてWarningエラー

フォーラム その他 php8にて商品詳細ページにてWarningエラー

  • このトピックには1件の返信、1人の参加者があり、最後にmaiにより1年、 6ヶ月前に更新されました。
2件の投稿を表示中 - 1 - 2件目 (全2件中)
  • 投稿者
    投稿
  • #98761
    mai
    参加者

    現在の環境は下記の通りです。
    WordPress のバージョン:6.0.2
    Welcart のバージョン: 2.8.2
    php7.4.x —> php 8.x.x
    Welcart専用の拡張プラグイン:
    ご利用のテーマ:voll(子テーマ)
    画面は2カラム仕様
    サーバー:(会社名、サービス名)xserver
    SSLの利用:(独自 常時SSL)

    宜しくお願い致します。
    php8にアップすると、商品画面にてWarningエラーが表示されます。
    https://www.ドメイン名/item/商品コード/
    下記のような警告が表示されます。
    Warning: Undefined array key “” in ドメイン名/wp-content/plugins/usc-e-shop/functions/template_func.php on line 656
    Warning: Trying to access array offset on value of type null in ドメイン名/wp-content/plugins/usc-e-shop/functions/template_func.php on line 656
    Warning: Undefined array key “” in ドメイン名/wp-content/plugins/usc-e-shop/functions/template_func.php on line 657
    Warning: Trying to access array offset on value of type null in ドメイン名/wp-content/plugins/usc-e-shop/functions/template_func.php on line 657

    該当ファイルを656と657は下記のように記載されています。
    656 $num = (int) $skus[ $sku ][‘stock’];
    657 $stocknum = $skus[ $sku ][‘stocknum’];

    どなたか対応策をご教示頂けないでしょうか
    お願いします。

    #98771
    mai
    参加者

    申し訳ありませんでした。他のテーマにしたところ正常に動作して
    さらにVOLLの当初のオリジナルのfunctions.phpを入れたところ
    問題のWarning: Undefined array key “”等は表示されませんでした。
    たぶん私がfunctions.phpのファイルサイズを縮小するため削除した部分に
    問題があるような気がします。

2件の投稿を表示中 - 1 - 2件目 (全2件中)
  • このトピックに返信するにはログインが必要です。