Jump to content

Scal

Members
  • Content count

    6
  • Joined

  • Last visited

  1. Scal

    Postfinance Payment Module

    I changed some things in modules/payment/postfinance.php I replaced $keys[]='MODULE_PAYMENT_POSTFINANCE_TXT_SHOP_ID_'.$currencies['title']; $keys[]='MODULE_PAYMENT_POSTFINANCE_TEXT_HASH_'.$currencies['title']; $keys[]='MODULE_PAYMENT_POSTFINANCE_SHOP_ID_'.$currencies['title']; by $keys[]='MODULE_PAYMENT_POSTFINANCE_TXT_SHOP_ID_'.$currencies['code']; $keys[]='MODULE_PAYMENT_POSTFINANCE_TEXT_HASH_'.$currencies['code']; $keys[]='MODULE_PAYMENT_POSTFINANCE_SHOP_ID_'.$currencies['code']; because I had wrong values in the form. But it still seems to be more problems. I emailed postfinance to ask them. If this was the problem I'll tell you.
  2. Hi Security Man, In the file catalog/imagemagic.php I replaced this : //add selected custom filters to the image if (BRIGHTNESS_ADJUST != "0") adjust_brightness(&$tmp_img,BRIGHTNESS_ADJUST); if (CONTRAST_ADJUST != "0") adjust_contrast(&$tmp_img, CONTRAST_ADJUST); if ($image_watermark) watermark_image(&$tmp_img, DIR_FS_CATALOG.'includes/imagemagic/watermarks/'.WATERMARK_IMAGE ,WATERMARK_IMAGE_POSITION, WATERMARK_IMAGE_OPACITY, WATERMARK_IMAGE_MARGIN); if ($frame) frame(&$tmp_img, FRAME_WIDTH, FRAME_EDGE_WIDTH, FRAME_COLOR, FRAME_INSIDE_COLOR1, FRAME_INSIDE_COLOR2); if ($bevel) bevel (&$tmp_img, BEVEL_HEIGHT, BEVEL_HIGHLIGHT, BEVEL_SHADOW); if ($text_watermark) watermark_text(&$tmp_img, WATERMARK_TEXT, WATERMARK_TEXT_SIZE, WATERMARK_TEXT_POSITION, WATERMARK_TEXT_COLOR, 'includes/imagemagic/fonts/'.WATERMARK_TEXT_FONT, WATERMARK_TEXT_OPACITY, WATERMARK_TEXT_MARGIN, WATERMARK_TEXT_ANGLE); by this (I only commented these lines) : //add selected custom filters to the image // if (BRIGHTNESS_ADJUST != "0") adjust_brightness(&$tmp_img,BRIGHTNESS_ADJUST); // if (CONTRAST_ADJUST != "0") adjust_contrast(&$tmp_img, CONTRAST_ADJUST); // if ($image_watermark) watermark_image(&$tmp_img, DIR_FS_CATALOG.'includes/imagemagic/watermarks/'.WATERMARK_IMAGE ,WATERMARK_IMAGE_POSITION, WATERMARK_IMAGE_OPACITY, WATERMARK_IMAGE_MARGIN); // if ($frame) frame(&$tmp_img, FRAME_WIDTH, FRAME_EDGE_WIDTH, FRAME_COLOR, FRAME_INSIDE_COLOR1, FRAME_INSIDE_COLOR2); // if ($bevel) bevel (&$tmp_img, BEVEL_HEIGHT, BEVEL_HIGHLIGHT, BEVEL_SHADOW); // if ($text_watermark) watermark_text(&$tmp_img, WATERMARK_TEXT, WATERMARK_TEXT_SIZE, WATERMARK_TEXT_POSITION, WATERMARK_TEXT_COLOR, 'includes/imagemagic/fonts/'.WATERMARK_TEXT_FONT, WATERMARK_TEXT_OPACITY, WATERMARK_TEXT_MARGIN, WATERMARK_TEXT_ANGLE); Just to remember, the warning written directly into the image files (all images) was : Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. So now I cannot use border or watermark because of this error, but it is working. Best regards, Scal
  3. I've resolved the problem temporarily by removing (via comments) the lines number 269 to 274. For now I'm not using these functions but it would be appreciated to find a way for this to work without these warnings. If someone can help, it would really be appreciated. Best regards, Pascal
  4. For Case 2, I was able to delete the thumbnail directory directly from OSC Admin. It was impossible with my usual FTP Client. For Cas 1, I have news. Everything seems to work correctly except the fact that the images files are not created correctly. Here's what is written in the beginning of my gif file (before the image information) if I open it in a text editor : <br /> <b>Warning</b>: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in <b>/home/www/4fa0adc1e7a0ee460744f85f9b4fbc0a/web/store/imagemagic.php</b> on line <b>269</b><br /> <br /> <b>Warning</b>: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in <b>/home/www/4fa0adc1e7a0ee460744f85f9b4fbc0a/web/store/imagemagic.php</b> on line <b>270</b><br /> <br /> <b>Warning</b>: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in <b>/home/www/4fa0adc1e7a0ee460744f85f9b4fbc0a/web/store/imagemagic.php</b> on line <b>271</b><br /> <br /> <b>Warning</b>: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in <b>/home/www/4fa0adc1e7a0ee460744f85f9b4fbc0a/web/store/imagemagic.php</b> on line <b>272</b><br /> <br /> <b>Warning</b>: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in <b>/home/www/4fa0adc1e7a0ee460744f85f9b4fbc0a/web/store/imagemagic.php</b> on line <b>273</b><br /> <br /> <b>Warning</b>: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in <b>/home/www/4fa0adc1e7a0ee460744f85f9b4fbc0a/web/store/imagemagic.php</b> on line <b>274</b><br /> So it looks like that the deprecated warnings are directly stored in the image file. That's a big problem. How can I resolve this warning problem. I don't want it to be displayed. Best regards, Pascal
  5. Hi Expert, unfortunately it doesn't work. If I cannot find the reason why it's not working, I'll have to reinstall all my old stuff. It's working in a way, because all the thumbnails are created in the thumbnail folder. But I still have 2 problems : 1) images not working on the site 2) all the thumbnails created cannot be removed or chmod with FTP. It says I do not have permission to do that in my FTP account. What does that mean ? Pascal
  6. Hi, first thanks for you contribution to OSC. I tried to install your product today but without success. The install process went through without a problem, but I really cannot make it work in the shop. Here's the URL : http://www.marvelous.ch/store/ (yes I have decided to rename the "catalog" folder to "store") When I switch the Magic Image Master Switch to Off, everything goes like before, very well. But when it is on, all my categories/products images are down. For now, during the insrtallation, I kept the demo products in the shop. So here is one of the "img" tag that I get on one of the pages : <img src="imagemagic.php?img=images/matrox/mg400-32mb.gif&w=100&h=80&page=" width="100" height="80" border="0" alt="Matrox G400 32MB" title="Matrox G400 32MB"> I've created by myself the thumbnails directory (in several places because I didn't know where the reference was, the domain or the "store" folder (="catalog" folder in standard install). Here's also the config of the Admin -> Configuration -> Image Magic : Image Magic Master Switch = Off ; Process Store's Graphics = False ; Auto Clean Cache = True ; Encrypt Image Filenames = False ; Filename Encryption Key = changeme ; Apply Internet Explorer PNG Transparency work-around? = False ; Use Resampling = True ; Create Truecolour Thumbnails = True ; Output GIFs as JPEGs = False ; 'GIF as JPEG' Matte colour (HEX) = FFFFFF ; Cache Thumbnails on the Server = True ; Cache Thumbnails in user's browser = True ; Thumbnail Cache directory = /thumbnails ; Use 404 Response if image not found? = True ; Allow thumbnails larger than original = True ; Center if thumbnail larger than original = False ; JPEG Quality - Pop-up Images = 100 ; JPEG Quality - Product Information Thumbnails = 100 ; JPEG Quality - Category Thumbnails = 100 ; JPEG Quality - Heading Thumbnails = 100 ; JPEG Quality - Small Thumbnails = 100 ; Graphic Watermark in Pop-up Images = No ; Graphic Watermark in Product Information Thumbnails = No ; Graphic Watermark in Category Thumbnails = No ; Graphic Watermark in Heading Thumbnails = No ; Graphic Watermark in Small Thumbnails = No ; Watermark Image File = ; Image Watermark Transparency = 20 ; Image Watermark Position = Center ; Image Watermark Margin = 0 ; Resize Watermark Image = True ; Text Watermark in Pop-up Images = No ; Text Watermark in Product Information Thumbnails = No ; Text Watermark in Category Thumbnails = No ; Text Watermark in Heading Thumbnails = No ; Text Watermark in Small Thumbnails = No ; Watermark Text = Sample ; Text Watermark Font Name = betsy.ttf ; Text Watermark Size = 13 ; Text Watermark Colour (HEX) = 000000 ; Text Watermark Transparency = 15 ; Text Watermark Position = Center ; Text Watermark Margin = 0 ; Text Watermark Angle = 0 ; Auto Adjust Brightness = 0 ; Auto Adjust Contrast = 0 ; Frame Pop-up Images = No ; Frame Product Information Thumbnails = No ; Frame Category Thumbnails = No ; Frame Heading Thumbnails = No ; Frame Small Thumbnails = No ; Frame Width = 4 ; Frame Depth = 4 ; Frame Colour (HEX) = CCCCCC ; Frame Inside 3D Highlight Colour (HEX) = FFFFFF ; Frame Inside 3D Shadow Colour (HEX) = 000000 ; Buttonize Pop-up Images = No ; Buttonize Product Information Thumbnails = No ; Buttonize Category Thumbnails = No ; Buttonize Heading Thumbnails = No ; Buttonize Small Thumbnails = No ; Button Height = 4 ; Button Highlight Colour (HEX) = CCCCCC ; Button Shadow Colour (HEX) = 000000 ; Last Hash (System Use - Read Only) = 220c46f8b9d027f4fde2863cd49e3238 And the config of the Admin -> Configuration -> Images : Small Image Width = 100; Small Image Height = 80; Heading Image Width = 57; Heading Image Height = 40; Subcategory Image Width = 100; Subcategory Image Height = 57; Calculate Image Size = true; Image Required = true; Product Information Image Width = 101; Product Information Image Height = 0 Thanks in advance for help. Best regards, Pascal Rosse
×