バージョン選択

フォーラム

メニュー

オンライン状況

54 人のユーザが現在オンラインです。 (3 人のユーザが XOOPS検索 を参照しています。)
登録ユーザ: 0
ゲスト: 54
もっと...

検索結果

キーワード: PHP7.4 (1 〜 20 件目を表示)
フォーラム

フォーラムRe: # unable to fetch the response from the backend: unexpected EOF
sogatat (2024/4/14 13:46:34)

Debian GNU/Linux上で問題を回避できる方法がわかりました。eccube4.2+PHP7.4であればこの問題は発生しませんでした。[システム情報] EC-CUBE 4.2.3 サーバーOS Linux djungy 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 DBサーバー SQLite version 3.40.1 WEBサーバー symfony-cli/5.8.14 PHP 7.4.33 (Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, SPL, iconv, intl, json, mbstring, session, standard, pcntl, mysqlnd, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, readline, Reflection, mysqli, shmop, SimpleXML, soap, sockets, exif, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, Zend OPcache, xdebug) User Agent Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0 [再現手順]PHPのバージョンを変更してから上記と同じ手順で問題が発生しないことを確認しました
フォーラム複数のWebサーバーでの利用について
takashi.s (2024/4/8 20:04:32)
[EC-CUBE] 4.1.0[レンタルサーバ] AWS[OS] Ubuntu 20.04[PHP] PHP7.4.3[データベース] MySQL 10.3.39-MariaDB-0ubuntu0.20.04.2[WEBサーバ] Apache/2.4.41 (Ubuntu)サイトへのアクセス数が多いため、ロードバランサを経由して複数台のWEBサーバー+DBサーバー(RDS)での運用を検討しています。セッション情報の保存方法をRDBMSに変更することやメインサーバー以外の画像ディレクトリはシンボリックリンクで作成することは必要かと思いますが、キャッシュディレクトリは各Webサーバーそれぞれの管理で問題ないでしょうか。EC-CUBEで作成されるキャッシュは、Doctrineやtwigファイルの他に、どのような情報がキャッシュされておりますでしょうか。ユーザーに紐づく情報がキャッシュされることはあるのでしょうか。ご教示いただけましたら幸いです。よろしくお願いいたします。
フォーラムRe: サーバー移行500エラー
mcontact (2024/4/2 11:10:22)
EC-CUBE4.0系であればシステム要件として利用できるのは、PHP7.3~PHP7.4です、※一部バージョンにより、PHP7.1~になります。PHP8系はシステム要件として対応していませんので、対応するPHPのミドルウェアにしましょう。詳しいシステム要件は下記に記載されています。https://doc4.ec-cube.net/quickstart/requirement
フォーラムPHP8 で「受注管理>受注登録」画面でシステムエラー
bbkids (2024/2/3 23:48:33)
PHP8 で「受注管理>受注登録」画面でシステムエラーEC-CUBE 2.17.2-p2PHP 8.0error.log[/manager/order/edit.php] Fatal error(E_ERROR): Uncaught TypeError: Unsupported operand types: float + string in data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php:707既存の受注情報を編集で、商品の単価を数字以外(例えば あ )を入力し、計算結果の確認ボタンを押すとシステムエラーで落ちます。(数量、税率、値引き、送料、手数料、使用ポイントも同様です。)数字+文字ではWarninngこそ出ますが落ちません。また、PHP7.4では発生せず。対処としてLC_Page_Admin_Order_Edit.php の lfCheckError() で$arrErrTemp にエラーが無い場合のみ、単価、数量、税率、値引き、送料、手数料を用いた各種計算するようにしてエラーがある場合は、計算しないという処理として一応は回避はしてみましたが、テンプレートedit.tpl:432 にて呼び出される 円 においても、Fatal error が発生します。error.log [/manager/order/edit.php] Fatal error(E_ERROR): Uncaught TypeError: Unsupported operand types: string * float in data/class/util\SC_Utils.php:711となります。LC_Page_Admin_Order_Edit.php の修正も含め、自分のスキルでは今一つスマートな修正が出来ないのですが、具体的な修正出来る方ご教示頂けますと幸いです。また、本件について私自身バグと思っているのですが、公式Gitのコミッター様にご状況把握頂きバグと言う事で間違いないようであれば、公式の方にissues を登録したいと思います。宜しくお願い致します。
フォーラム基本情報管理>定休日管理で未入力で登録するとシステムエラーが発生する
bbkids (2024/2/1 23:00:25)
EC-CUBE 2.17.2-p2管理画面からシ基本情報管理>定休日管理で日付未選択で登録するとシステムエラーが発生します。PHP7.4.33 では E_WARNING で落ちませんが、PHP8.2 では E_ERROR で落ちます。error.logの内容は■PHP8.2では [/manager/basis/holiday.php] Fatal error(E_ERROR): Uncaught TypeError: checkdate(): Argument #1 ($month) must be of type int, string given in /data/class/pages/admin/basis/LC_Page_Admin_Basis_Holiday.php:203 Stack trace: #0 data/class/pages/admin/basis/LC_Page_Admin_Basis_Holiday.php(203): checkdate('', '', '2024') #1 data/class/pages/admin/basis/LC_Page_Admin_Basis_Holiday.php(91): LC_Page_Admin_Basis_Holiday->lfCheckError(Object(SC_FormParam), Object(SC_Helper_Holiday)) #2 data/class/pages/admin/basis/LC_Page_Admin_Basis_Holiday.php(61): LC_Page_Admin_Basis_Holiday->action() #3 html/manager/basis/holiday.php(28): LC_Page_Admin_Basis_Holiday->process()■PHP7.4では [/manager/basis/holiday.php] Warning(E_WARNING): checkdate() expects parameter 1 to be int, string given on [/data/class/pages/admin/basis/LC_Page_Admin_Basis_Holiday.php(203)]エラー内容の通りで、日付未選択だと、LC_Page_Admin_Basis_Holiday.php内で使用しているcheckdate()の引数が不足する為だと思われます。
フォーラムプラグインがプラグイン一覧内に表示されず、有効化できない。
zippor (2023/12/27 11:31:53)
▼テンプレート[EC-CUBE] EC-CUBE4.1.1、新規インストール[レンタルサーバ] エックスサーバー[OS] Linux[PHP] PHP7.4.33[データベース] MySQL5.7[WEBサーバ] Apache2.4.x[ブラウザ] エッヂ[導入プラグインの有無] 商品オプションプラグイン for EC-CUBE4.0~4.1[現象] 「商品オプションプラグイン for EC-CUBE4.0~4.1」のプラグインが機能していなかったので、一旦削除して、再インストールしたところ、プラグイン一覧内に表示されず、有効化ができない状態です。プラグインメーカーに問い合わせたところ、WebAPIを削除すれば、インストールされるということで、削除をしたところ、「GMCが使用中で削除できません」となったので、GMCを削除しようとしたら、いつまでも削除完了にならなかったので、途中で、リロードしたら、エラーが発生して、管理画面にも入れなくなったので、バックアップで戻ったら、添付の画像の様に、インストール欄に3つのプラグインがインストール候補として上がっていて、変わらず、「商品オプションプラグイン for EC-CUBE4.0~4.1」のプラグインは再インストールはできて、インストール完了のダイアログまででるのですが、プラグイン一覧内には表示されずに、インストール候補欄の方にあるままです。ここから、プラグイン一覧にインストールされたプラグインとして表示されて、有効無効を選択できるようにするにはどうしたら良いでしょうか
フォーラム受注管理の対応状況マスターの項目を追加したい
takt (2023/12/25 13:44:44)
▼テンプレート[EC-CUBE] 4.1.0[レンタルサーバ] AWS[OS] ubuntu20.04[PHP] PHP7.4[データベース] MariaDB[WEBサーバ] apache2[ブラウザ] google Chrome[カスタマイズの有無] カスタマイズ中[現象]受注管理の対応状況の項目について、選択肢に新しい項目を追加したく存じます。src下のプログラムには手を入れないようCustomize\Entity\Master\OrderStatus.phpを作成したのですが、以下のようなエラーが発生しました。___ *** ERROR *** ==> ADMIN ___システムエラーが発生しました。--> - 'Argument 2 passed to Customize\Service\OrderStateMachine::apply() must be an instance of Customize\Entity\Master\OrderStatus, instance of Eccube\Entity\Master\OrderStatus given, called in /home/cuore/musashiya_renewal/app/Customize/Controller/Admin/Order/EditController.php on line 294'恐らく、src下のフォームで生成されるOrderStatusクラスがEccube\Entity\Master\OrderStatusから作成されていることが原因かと思うのですが、MasterでないEntityのように、Traitなどで項目を追加することは可能でしょうか。ご連絡いただければ幸いです、よろしくお願いいたします。
フォーラムリダイレクト設定中の管理側利用したい
ennya8810 (2023/12/12 9:40:58)
▼テンプレート[EC-CUBE] 4.0.5[レンタルサーバ] xserver[OS] Linux[PHP] PHP7.4.33[データベース] MySQL5.7[WEBサーバ] Apache、2.4.x[ブラウザ] Google Chrome、119.0.6045.160[導入プラグインの有無] 有[カスタマイズの有無] 無[現象] 別ドメインに現サイト丸コピーしても、エラーで、使えないです。そして、4.1.2または、4.2.2を新しく立ち上がって、データベースだけ旧サイトのほうにアクセスすることや、データインポートなど試しましたところでも、ダメでした。また、現サイトのリダイレクト設定を管理側を除外しても、エラーです。まず、どんな方向で、取り込むべきでしょうか必要であれば、その方向の詳細エラーメッセージを提示させていただきます。宜しくお願い致します。
フォーラム閉鎖されたeccubeの管理側経由、データ確認したい
ennya8810 (2023/12/11 9:44:57)
▼テンプレート[EC-CUBE] 4.0.5[レンタルサーバ] xserver[OS] Linux[PHP] PHP7.4.33[データベース] MySQL5.7[WEBサーバ] Apache、2.4.x[ブラウザ] Google Chrome、119.0.6045.160[導入プラグインの有無] 有[カスタマイズの有無] 無[現象] 現在eccube所在サイトのpublicフォルダごとに、リダイレクト設定しております。admin側だけリダイレクト設定除外しても、403になってしまいました。publicフォルダ丸ごとに別ドメインにコピーペーストしても、うまくいきませんでした。そして、4.2.2や4.1.2のeccube別に作成して、現在のeccubeのデータベースアクセスするようにしても、データをインポートしても、うまくいきませんでした。現在リダイレクト設定中のeccubeの管理側だけ見えるようにするためには、どうすれば、よろしいでしょうか
フォーラム商品カテゴリーがシステムエラーになります。
question11 (2023/11/8 22:02:08)
▼テンプレート[EC-CUBE] 4.2.2[レンタルサーバ] XServer[PHP] PHP7.4.33[データベース] MySQL phpMyAdmin 4.4.15.10[現象] データ移行プラグイン(4.2系)を利用してECCUBE3→4にバージョンアップ作業をしております。商品表示(products/detail/●●●●)はできるのですが、商品カテゴリー(products/list?category_id=●)がシステムエラーになって表示されません下記のようにリンクを設定してもダメです。href="{{url('product_list') }}?category_id=●●">href="{{url('homepage')}}products/list?category_id=●●">商品登録のページでカテゴリーにチェックを入れるとシステムエラーになるようです。ログで調べましたら [Eccube\Log\Logger:log:66] - システムエラーが発生しました。と表示されております。原因わかりますでしょうか。よろしくお願いいたします。
フォーラムデータ移行
question11 (2023/10/30 14:07:00)
▼テンプレート[EC-CUBE] 4.2.2[レンタルサーバ] XServer[PHP] PHP7.4.33[データベース] MySQL phpMyAdmin 4.4.15.10[導入プラグインの有無] [現象]データ移行プラグイン(4.2系)のインストールができません。インストールが1回だけ出来ましたが、今度は有効にすることができませんでした。再インストールしてみましたが、それ以降はインストールできなくなりました。 同じような質問内容を確認して、FTPから「EC-CUBE Web API 」削除等はしましたが、プラグイン一覧からは消えません。「xdebugを無効にする」方法もわかりませんでした。ECCUBE3→4にバージョンアップしたいのですが、困っております。よろしくお願いいたします、
フォーラムPGマルチペイメントサービス決済プラグイン データ移行が出来ない
takt (2023/10/24 10:30:10)
▼テンプレート[EC-CUBE] 4.1.0[レンタルサーバ] AWS[OS] ubuntu20.04[PHP] PHP7.4[データベース] MariaDB[WEBサーバ] apache2[ブラウザ] google Chrome[導入プラグインの有無]PGマルチペイメントサービス決済プラグイン [カスタマイズの有無] 今後カスタマイズ予定[現象]ECCUBEのバージョンアップに伴い、サーバーの移行を行っております。現在PGマルチペイメントサービス決済プラグイン を利用しており、( https://www.ec-cube.net/products/detail.php?product_id=1797 )関連する現行環境のテーブル情報(dtb_payment、plg_gmo_payment_gateway_payment_method)を移行したのですが、管理画面の支払方法設定にてクレジット決済やコンビニ決済で表示される「GMOペイメント設定」画面が表示されませんでした。その後、プラグインを一時無効化→再度有効化と試してみたところplg_gmo_payment_gateway_payment_method テーブルに既存のレコードとは別に新たに各支払方法に対応したレコードが追加されてしまいました。目的としましては既存のレコードを残したまま支払方法とペイメント情報の連携を保持したいのですが、方法はあるのでしょうか。恐れ入りますが、解決策について教えていただきたく、お願い申し上げます。
フォーラムカスタムブロックを追加したのですが、リンクが上手く動きません
cusmix (2023/9/30 15:35:50)
▼テンプレート[EC-CUBE] EC-CUBE 4.0.4[OS] Windows10[PHP] php7.4[データベース] MySQL XAMPP 7.4.19[ブラウザ] Chrome最新バージョン[導入プラグインの有無] なし[カスタマイズの有無] なし[現象]カスタムページを作成し、そのカスタムページにリンクするようにブロックを作成したのですが、リンクをクリックすると、ページが見つかりませんと表示されます。どのようにしたら、カスタムページにリンクできるようになるでしょうか?カスタムページは次のように設定しました。{% extends 'default_frame.twig' %} {% block main %} <div id="contents" class="main_only"> <div class="container-fluid inner no-padding"> <div id="main"> <h4>INT'L CUSTOMERS</h4> <div id="help_about" class="container-fluid"> <div id="help_about_box" class="row"> <div id="help_about_box__body" class="col-md-10 col-md-offset-1"> <p> We do accept orders from all over the world. If you want to place an order, please let us know what you want with necessarily your name and mailing address via email, <a href="mailto:order@wizzard-in-vinyl.net">order@wizzard-in-vinyl.net</a></p> <p>We only take your payment on PayPal.</p> <p>Thank you.</p> </p> <div id="maps"></div> </div><!-- /.col --> </div><!-- /.row --> </div> </div> </div> </div> {% endblock %}URLはhttp://127.0.0.1/eccube/user_data/intl_customersファイル名はapp/template/user_data/intl_customersカスタムブロックは以下のように設定しました。<nav> <ul> <li><a href=”{{ url(‘homepage’) }}”>Home</a></li> <li><a href="https://wizzard-in-vinyl.net/news/" target="_self">NEWS TOPICS</a></li> <li><a href=”{{ url(‘product_list’) }}”>LABEL</a></li> <li><a href="{{ url('contact') }}">{{ 'お問い合わせ'|trans }}</a></li> <li><a href="{{ url('intl_customers') }}">INT'L CUSTOMERS</a></li> </ul> </nav>どうぞよろしくお願いいたします。
フォーラムプラグインがインストールできません
keijin99 (2023/9/28 12:07:53)
EC CUBE4.2.2をxserverに新規インストールし、1ヶ月ほど運用中。全くプラグインがインストールできなくなってしまいました。表示される画面などは以下の通りです。対処法、もしくは修正委託できる方を探しています。[EC-CUBE] 4.2.2[レンタルサーバ] xserver[OS] Linux[PHP] PHP7.4.33[データベース] MariaDB10.5[導入プラグインの有無] 有[現象] 管理画面「オーナーズストア」「プラグイン」「プラグイン一覧」をクリック。インストールしたいプラグインの「インストール」ボタンをクリック以下のエラーメッセージ・インストール確認・システムエラーが発生しました。ログを確認**************** RelatedProduct42 ****************A script named compile would override a Composer command and has been skippedA script named auto-scripts would override a Composer command and has been skippedA script named installer-scripts would override a Composer command and has been skipped[13.6MiB/1.23s] ./composer.json has been updated[14.9MiB/1.27s] Running composer update ec-cube/relatedproduct42 --with-dependencies[18.1MiB/1.28s] Loading composer repositories with package information[19.1MiB/2.32s] Dependency ec-cube/plugin-installer is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.[19.4MiB/2.87s] Updating dependencies[21.1MiB/2.91s] Lock file operations: 1 install, 0 updates, 0 removals[21.1MiB/2.91s]   - Locking ec-cube/relatedproduct42 (4.2.2)[20.2MiB/2.91s] Writing lock file[20.2MiB/2.91s] Installing dependencies from lock file[23.5MiB/2.92s] Package operations: 13 installs, 3 updates, 0 removalsIn PluginManager.php line 738:                                                                                 php-http/discovery contains a Composer plugin which is blocked by your allo    w-plugins config. You may add it to the list if you consider it safe.          You can run "composer config --no-plugins allow-plugins.php-http/discovery     [true|false]" to enable it (true) or disable it explicitly and suppress thi    s exception (false)                                                            See https://getcomposer.org/allow-plugins                                                                                                                   require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [...]{"success":false,"log":"\u003Cwarning\u003EA script named compile would override a Composer command and has been skipped\u003C\/warning\u003E\n\u003Cwarning\u003EA script named auto-scripts would override a Composer command and has been skipped\u003C\/warning\u003E\n\u003Cwarning\u003EA script named installer-scripts would override a Composer command and has been skipped\u003C\/warning\u003E\n[13.6MiB\/1.23s] .\/composer.json has been updated\n[14.9MiB\/1.27s] Running composer update ec-cube\/relatedproduct42 --with-dependencies\n[18.1MiB\/1.28s] Loading composer repositories with package information\n[19.1MiB\/2.32s] \u003Cwarning\u003EDependency ec-cube\/plugin-installer is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.\u003C\/warning\u003E\n[19.4MiB\/2.87s] Updating dependencies\n[21.1MiB\/2.91s] Lock file operations: 1 install, 0 updates, 0 removals\n[21.1MiB\/2.91s]   - Locking ec-cube\/relatedproduct42 (4.2.2)\n[20.2MiB\/2.91s] Writing lock file\n[20.2MiB\/2.91s] Installing dependencies from lock file\n[23.5MiB\/2.92s] Package operations: 13 installs, 3 updates, 0 removals\n\nIn PluginManager.php line 738:\n                                                                               \n  php-http\/discovery contains a Composer plugin which is blocked by your allo  \n  w-plugins config. You may add it to the list if you consider it safe.        \n  You can run \u0022composer config --no-plugins allow-plugins.php-http\/discovery   \n  [true|false]\u0022 to enable it (true) or disable it explicitly and suppress thi  \n  s exception (false)                                                          \n  See https:\/\/getcomposer.org\/allow-plugins                                    \n                                                                               \n\nrequire [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [\u003Cpackages\u003E...]\n\n"}
フォーラム商品一覧ページで3階層よりも深いカテゴリを呼び出すと表示されない件
fzto (2023/9/25 20:57:06)
▼テンプレート[EC-CUBE] EC-CUBE4.1.2-p1[レンタルサーバ] さくら[PHP] PHP7.4.33[データベース] MYSQLお世話になります。eccube.yamlの中にあるeccube_category_nest_levelを編集し3階層より深いカテゴリを作成しました。しかし、商品一覧ページで3階層より深いカテゴリのカテゴリIDが指定されると商品が表示されません。他にも編集が必要な箇所があればご教授いただけませんでしょうか。よろしくお願いいたします。
フォーラムレイアウト管理でObject of class Eccube\Entity\PageLayout could not be converted to string
d.y.m (2023/9/25 16:27:04)
▼テンプレート[EC-CUBE] EC-CUBE4.2.0[レンタルサーバ] 仮想環境[OS] Linux ubuntu-focal 5.4.0[PHP] PHP7.4[データベース] MySQL 8.0.34[WEBサーバ] Apache/2.4.41 (Ubuntu)[ブラウザ] Chorome[導入プラグインの有無] [カスタマイズの有無] ページ管理の編集画面で新しい項目を追加[現象] 現在ローカル環境でEC-CUBEのカスタマイズについて学習しております。ページ管理の編集画面で新しい項目を追加しようと思い、項目の追加自体はできたのですが、レイアウト管理の編集画面に入ろうとすると「Object of class Eccube\Entity\PageLayout could not be converted to string」と表示されてしまいます。レイアウトについてのファイルは変更しておらず、原因を探ろうとしても参考になる記事が無かったのでこちらでご質問させていただきます。[エラー箇所]src/Eccube/Controller/Admin/Content/LayoutController.php:232'form' => $form->createView(),[変更・追加した内容]【PageTrait.php】trait PageTrait{ /** * @var integer|null * @ORM\Column(name="parentpage", type="integer", length=255, nullable=true) */ private $parentpage; /** * @return integer|null */ public function getParentPage() { return $this->parentpage; } /** * @param integer|null $parentpage * @return PageTrait */ public function setParentPage($parentpage = null) { $this->parentpage = $parentpage; return $this; }}【PageController.php】if ($form->isSubmitted() && $form->isValid()) { $Page = $form->getData(); if (!$isUserDataPage) { $Page ->setUrl($PrevPage->getUrl()) ->setFileName($PrevPage->getFileName()) ->setParentPage($Page->getParentPage()) ->setName($Page->getName()); } // DB登録 $this->entityManager->persist($Page); $this->entityManager->flush();【MainEditTypeExtension.php】class MainEditTypeExtension extends AbstractTypeExtension{ /** * @var PageRepository */ protected $pageRepository; /** * @param PageRepository $pageRepository */ public function __construct(PageRepository $pageRepository) { $this->pageRepository = $pageRepository; } public static function getExtendedTypes(): iterable { yield MainEditType::class; } public function buildForm(FormBuilderInterface $builder, array $options) { $pages = $this->pageRepository->findAll(); $choices = []; foreach ($pages as $page) { $name = $page->getName(); $id = $page->getId(); if($id!=0){ $choices[$name] = $id; } } $builder ->add('parentpage', ChoiceType::class, [ 'choices' => $choices, 'required' => false, 'mapped' => true, 'placeholder' => '---', ]); } /** * {@inheritdoc} */ public function configureOptions(OptionsResolver $resolver) { $resolver ->setDefaults([ 'data_class' => Page::class, ]); } /** * {@inheritdoc} */ public function getBlockPrefix() { return 'main_edit'; }}
フォーラムECCUBE4をサブDirにインストール後、Dir名を変更後、カートへの追加できない、管理画面ログインできない件
shinsong (2023/9/21 16:12:17)
▼テンプレート[EC-CUBE] EC-CUBEの4.1[レンタルサーバ] XServer[PHP] 使用しているPHP7.4.3[データベース] 使用しているDB名、MySql 5.7ECCUBE4をサブDirにインストール後、正常の動作しました。ただ、インストール後、サブDir名を変更しなくなり、サブDir名を変更したところ例)https://domain.com/eccube01↓https://domain.com/eccube02へ変更不具合は以下の通りです。・カートへの追加に失敗しました。メッセージ・管理画面へのログインできない変更必要なファイル名や変更箇所をお教えいだければ幸いです。何卒よろしくお願いいたします。
フォーラム新着商品を登録した順番に5つの商品を表示するブロックが作成できません
cusmix (2023/9/15 16:11:10)
▼テンプレート[EC-CUBE] EC-CUBE 4.0.4[OS] Windows10[PHP] php7.4[データベース] MySQL XAMPP 7.4.19[ブラウザ] Chrome最新バージョン[導入プラグインの有無] なし[カスタマイズの有無] なし[現象]Windowsでローカル開発環境構築したEC-CUBEで新着商品を登録した順番に5つの商品を表示するブロックを作成したいのですができません。app/Customize/Twig/Extension/NewProductExtension.php を作成しました。<?php namespace Customize\Twig\Extension; use Doctrine\Common\Collections\Criteria; use Doctrine\ORM\EntityManagerInterface; use Eccube\Common\EccubeConfig; use Eccube\Entity\Master\ProductListOrderBy; use Eccube\Repository\ProductRepository; use Twig\Extension\AbstractExtension; use Twig\TwigFunction; class NewProductExtension extends AbstractExtension { /** * @var ProductRepository */ private $productRepository; /** * @var EntityManagerInterface */ private $entityManager; /** * @var EccubeConfig */ private $eccubeConfig; public function __construct( ProductRepository $productRepository, EntityManagerInterface $entityManager, EccubeConfig $eccubeConfig ) { $this->productRepository = $productRepository; $this->entityManager = $entityManager; $this->eccubeConfig = $eccubeConfig; } public function getFunctions(): array { return [ new TwigFunction('newProducts', function ($limit) { /** @var ProductListOrderBy $productListOrderBy */ $productListOrderBy = $this->entityManager->getRepository(ProductListOrderBy::class)->find($this->eccubeConfig['eccube_product_order_newer']); $qb = $this->productRepository->getQueryBuilderBySearchData(['orderby' => $productListOrderBy]); $qb ->setMaxResults($limit); return $qb->getQuery()->getResult(); }, ['pre_escape' => 'html', 'is_safe' => ['html']]), ]; } }更に、ブロックを作成して、Twig名をNewProductExtension5.twigとして、{% set Products = newProducts(5) %} <div class="ec-role"> <div class="ec-newItemRole"> <div class="ec-newItemRole__list"> <div class="ec-newItemRole__listItem"> <div class="ec-newItemRole__listItemHeading ec-secHeading--tandem"> <span class="ec-secHeading__en">{{ 'front.block.new_item.title__en'|trans }}</span> <span class="ec-secHeading__line"></span> <span class="ec-secHeading__ja">{{ 'front.block.new_item.title__ja'|trans }}</span> <a class="ec-inlineBtn--top" href="{{ url('product_list') }}?orderby={{eccube_config.eccube_product_order_newer}}">{{ 'front.block.new_item.more'|trans }}</a> </div> </div> {% for Product in Products %} <div class="ec-newItemRole__listItem"> <a href="{{ url('product_detail', {'id': Product.id}) }}"> <img src="{{ asset(Product.main_list_image|no_image_product, 'save_image') }}"> <p class="ec-newItemRole__listItemTitle">{{ Product.name }}</p> <p class="ec-newItemRole__listItemPrice"> {% if Product.hasProductClass %} {% if Product.getPrice02Min == Product.getPrice02Max %} {{ Product.getPrice02IncTaxMin|price }} {% else %} {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }} {% endif %} {% else %} {{ Product.getPrice02IncTaxMin|price }} {% endif %} </p> </a> </div> {% endfor %} </div> </div> </div>このブロックをトップページに配置したのですが、productRepository = $productRepository; $this->entityManager = $entityManager; $this->eccubeConfig = $eccubeConfig; } public function getFunctions(): array { return [ new TwigFunction('newProducts', function ($limit) { /** @var ProductListOrderBy $productListOrderBy */ $productListOrderBy = $this->entityManager->getRepository(ProductListOrderBy::class)->find($this->eccubeConfig['eccube_product_order_newer']); $qb = $this->productRepository->getQueryBuilderBySearchData(['orderby' => $productListOrderBy]); $qb ->setMaxResults($limit); return $qb->getQuery()->getResult(); }, ['pre_escape' => 'html', 'is_safe' => ['html']]), ]; } }と表示されてしまいます。どのようにしたら、最新登録した商品5個を表示するブロックを作成することができるのでしょうか?お手数と思いますが、どなたか教えていただけるとありがたいです。
フォーラム背景色と背景画像を指定する方法を教えてください
cusmix (2023/9/15 15:17:47)
▼テンプレート[EC-CUBE] EC-CUBE 4.0.4[OS] Windows10[PHP] php7.4[データベース] MySQL XAMPP 7.4.19[ブラウザ] Chrome最新バージョン[導入プラグインの有無] なし[カスタマイズの有無] なし[現象] Windowsでのローカル開発環境構築しまして、背景色と背景画像を変更したいのですが、変更できません。試した方法は、コンテンツ管理>CSS管理にてCSSを設定しました。/* サイト全体の背景色変更 */ .ec-layoutRole { background: #f2f2f2; background-image: url([フォルダ名]/html/user_data/assets/img/background/GraphPaper.png); /* 背景画像指定 */ background-repeat: repeat; /* 背景の繰り返し設定 */ }これでは変更できなかったので、html/user_data/assets/css/customize.css に直接書き込むことも試しました。また、キャッシュ管理でキャッシュ削除も試しましたが反映されませんでした。どのようにしたら、背景色、背景画像を変更できるのでしょうか?どうか、ご教示の程よろしくお願いいたします。
フォーラムデバッグモードできない
h_tanaka (2023/9/14 17:31:38)
EC-CUBE 4.2.2PHP7.4.33デバッグモードにすると、 Notice: Undefined index: root が表示されてしまいます。管理画面、フロント画面、すべてのページで表示されます。デバッグモードを解除すると正常に表示されます。原因または解決方法わかりますでしょうか?HTTP 500 Internal Server Error Notice: Undefined index: root ErrorException in /vendor/composer/composer/src/Composer/InstalledVersions.php (line 252) in /vendor/symfony/security-bundle/SecurityBundle.php spl_autoload_call (line 62) in /vendor/symfony/http-kernel/Kernel.php -> build (line 676) in /vendor/symfony/http-kernel/Kernel.php -> prepareContainer (line 647) in /vendor/symfony/http-kernel/Kernel.php -> buildContainer (line 545) in /vendor/symfony/http-kernel/Kernel.php -> initializeContainer (line 787) in /vendor/symfony/http-kernel/Kernel.php -> preBoot (line 190) Kernel->handle(object(Request)) in /index.php (line 83) $response = $kernel->handle($request);以下、試しましたが改善しませんでした。・キャッシュファイルの物理削除 $ rm -fr var/cache/dev/*・ブラウザキャッシュの削除・PHP8.1に切り替え

   次のページ >>

ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は89,099名です
総投稿数は110,035件です

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2314
5
umebius
2085
6
yuh
1819
7
h_tanaka
1649
8
red
1570
9
mcontact
1297
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
799
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.