質問 > フロント機能 > QRコードの表示がうまくいきません。 |
フロント機能
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
syuwa |
投稿日時: 2014/9/16 14:55
対応状況: 開発中
|
半人前 登録日: 2014/9/7 居住地: 投稿: 22 |
QRコードの表示がうまくいきません。 よろしくお願いいたします。
現在商品ページをスマートフォンでも簡単に見れるように PCページへスマートフォンでQRコードを読み込むことでページの遷移が簡単にできるしくみを作ろうとしています。 そこで発生しているエラーなのですが、 現在このようなエラーが発生しており対処法がわかりません。 よろしければご指摘おねがいできませんか? Fatal error(E_ERROR): Uncaught <table style="border: 1px" cellspacing="0"> <tr><td colspan="3" style="background: #ff9999"> <b>Image_QRCode_Exception</b>: Data cannot be empty in <b>/var/www/html/eccube-yoshida.com/html/data/module/Image/Image/QRCode.php</b> on line <b>551</b></td></tr> <tr><td colspan="3" style="background-color: #aaaaaa; text-align: center; font-weight: bold;">Exception trace</td></tr> <tr><td style="text-align: center; background: #cccccc; width:20px; font-weight: bold;">#</td><td style="text-align: center; background: #cccccc; font-weight: bold;">Function</td><td style="text-align: center; background: #cccccc; font-weight: bold;">Location</td></tr> <tr><td style="text-align: center;">0</td><td>Image_QRCode->setData('')</td><td>/var/www/html/eccube-yoshida.com/html/data/module/Image/Image/QRCode.php:551</td></tr> <tr><td style="text-align: center;">1</td><td>Image_QRCode->makeCode('', Array)</td><td>/var/www/html/eccube-yoshida.com/html/qr.php:12</td></tr> <tr><td style="text-align: center;">2</td><td>{main}</t on [/var/www/html/eccube-yoshida.com/html/data/module/Image/Image/QRCode.php(392)] qr.php <?php require_once("./data/module/Image/Image/QRCode.php"); require_once("./require.php"); $option = array( "module_size"=>18, "image_type"=>"jpeg", //画像形式jpeg,pngを指定 "output_type"=>"display", //出力方法を指定する display return returnの場合はmakecodeで画像リソースが返される "error_correct"=>"H" ); $qr = new Image_QRCode(); $qr->makeCode(htmlspecialchars($_GET["qrcode"],ENT_QUOTES),$option); ?> detail.tpl <img src="<!--{smarty.const.ROOT_URLPATH~|cat:"qr.php?qrcode=$url"}>" 使用しているパッケージ Image_QRCode-0.1.1 qr.php 作成済み eccube-2.13.2 使用 よろしくおねがいいたします。 |
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
» QRコードの表示がうまくいきません。 | syuwa | 2014/9/16 14:55 |
Re: QRコードの表示がうまくいきません。 | hiraro | 2014/9/16 23:46 |
Re: QRコードの表示がうまくいきません。 | syuwa | 2014/9/17 14:34 |
Re: QRコードの表示がうまくいきません。 | hiraro | 2014/9/17 22:54 |
Re: QRコードの表示がうまくいきません。 | syuwa | 2014/9/23 21:07 |
Re: QRコードの表示がうまくいきません。 | flealog | 2014/9/23 21:41 |
Re: QRコードの表示がうまくいきません。 | hiraro | 2014/9/24 9:49 |