Thanks again for replying, what files would effect this and how does it check if it has been used by another customer?rph wrote:Can't reproduce it. I'm guessing you've made changes somewhere that caused it.
Dan
No problem with the php mail but Turkish character error smtp email is selected
Attachments
smtp mail error - smtp-mail.png (25.29 KiB) Viewed 4960 times
typo with extention page ( http://www.opencart.com/index.php?route ... on_id=2184 ) of opencart in extention page which is "Exension Name"
opmods wrote:typo with extention page ( http://www.opencart.com/index.php?route ... on_id=2184 ) of opencart in extention page which is "Exension Name"
ok fixed.
OpenCart®
Project Owner & Developer.
Partially fixed by qphoria in http://code.google.com/p/opencart/sourc ... n791&r=760
The problem continues within the $output .= '<description>'...
The product description itself contains some html. Central european characters are encoded as á Which the feed cant handle. I've tried to apply the html_entity_decode function to the description field, but then other error popped up, like not beeing a valid anchor. (I've used the google)base.php from thetrunk).
The live error can be seen here: http://www.somarinky.sk/index.php?route ... oogle_base
I think that the cause is some multi-leveled entity encoding.
The problem continues within the $output .= '<description>'...
The product description itself contains some html. Central european characters are encoded as á Which the feed cant handle. I've tried to apply the html_entity_decode function to the description field, but then other error popped up, like not beeing a valid anchor. (I've used the google)base.php from thetrunk).
The live error can be seen here: http://www.somarinky.sk/index.php?route ... oogle_base
I think that the cause is some multi-leveled entity encoding.
your google_base.php file changeSelfMan wrote:Partially fixed by qphoria in http://code.google.com/p/opencart/sourc ... n791&r=760
The problem continues within the $output .= '<description>'...
The product description itself contains some html. Central european characters are encoded as á Which the feed cant handle. I've tried to apply the html_entity_decode function to the description field, but then other error popped up, like not beeing a valid anchor. (I've used the google)base.php from thetrunk).
The live error can be seen here: http://www.somarinky.sk/index.php?route ... oogle_base
I think that the cause is some multi-leveled entity encoding.
http://opencart.googlecode.com/svn/trun ... e_base.php
That is the partially fixed version from qphoria which I've used and the error is present.eka7a wrote:your google_base.php file changeSelfMan wrote:Partially fixed by qphoria in http://code.google.com/p/opencart/sourc ... n791&r=760
The problem continues within the $output .= '<description>'...
The product description itself contains some html. Central european characters are encoded as á Which the feed cant handle. I've tried to apply the html_entity_decode function to the description field, but then other error popped up, like not beeing a valid anchor. (I've used the google)base.php from thetrunk).
The live error can be seen here: http://www.somarinky.sk/index.php?route ... oogle_base
I think that the cause is some multi-leveled entity encoding.
http://opencart.googlecode.com/svn/trun ... e_base.php
Changing the MIME content type from octetstream to octet-stream by doing the following allows later versions of Thunderbird to display embedded images.Daniel wrote:clorne wrote:v 1.5.1.3 and 1.5.1.3.1 - Linux and Windows servers
Images not displaying in emails for Newsletter, Vouchers and order confirmations.
I am curious as to why this issue has not been reported here before but perhaps it has and I have missed it, if this is the case I apologise in advance.
Images will not embed in emails because of a typo in \system\library\mail.php on about line 140
The MIME content type reads application/octetstream and should be application/octet-stream
also the Content-Disposition: attachment; should read basename($attachment['file']) and not basename($attachment['filename']) as filename in this instance is often md5 encoded.
try the svn version.
i'm thinking to get rid of embedded images as to many email clients are having problems.
In \system\library\mail.php
Find and change:
Code: Select all
$message .= 'Content-Type: application/octetstream; name="' . basename($attachment['file']) . '"' . $this->newline;
Code: Select all
$message .= 'Content-Type: application/octet-stream; name="' . basename($attachment['file']) . '"' . $this->newline;
In \system\library\mail.php
Find and change:
Code: Select all
$message .= 'Content-Type: application/octetstream; name="' . basename($attachment['file']) . '"' . $this->newline;
Code: Select all
if ($size = @getimagesize($attachment['file']))
$message .= 'Content-Type: ' . $size['mime'] . '; name="' . basename($attachment['file']) . '"' . $this->newline;
else
$message .= 'Content-Type: application/octet-stream; name="' . basename($attachment['file']) . '"' . $this->newline;
Corrected missing - from last section of code.
Last edited by ADD Creative on Mon Jan 16, 2012 5:54 pm, edited 1 time in total.
I confirm that the propper MIME type is application/octet-stream and not application/octetstream.
http://www.feedforall.com/mime-types.htm
http://www.feedforall.com/mime-types.htm
Email generated by system/library/mail.php is missing a newline between header and content body, this causes some mailer processors (e.g. antivirus scanner) to reject the email.
In system/library/mail.php, change
to
solves the issue.
In system/library/mail.php, change
Code: Select all
$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline;
Code: Select all
$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;
The 'Required' setting that is accessible via Catalog -> Products -> Edit -> Option tab always reverts to "No" when you go to edit a product.
In other words, you can save it as "Yes" and it does save properly (and works fine), but as soon as you go to edit the product, the form always reverts back to "No", and unless you remember to manually choose "Yes" every time before saving, the 'Required' setting winds up as "No" every time.
In other words, you can save it as "Yes" and it does save properly (and works fine), but as soon as you go to edit the product, the form always reverts back to "No", and unless you remember to manually choose "Yes" every time before saving, the 'Required' setting winds up as "No" every time.
Hi all,
I have found that an admin user can define recursive category - subcategory relation in Admin-catalog-Categories page. In my opinion, Category Form-Data shouldn't allow selecting a category's subcategory as that category's parent.
Sometimes if you select recursive category-parent_id, both categories are disabled.
I have found that an admin user can define recursive category - subcategory relation in Admin-catalog-Categories page. In my opinion, Category Form-Data shouldn't allow selecting a category's subcategory as that category's parent.
Sometimes if you select recursive category-parent_id, both categories are disabled.
Did you enable the product?
When you copy a product, it's default status is "Disabled". Unlike when creating a new product, where the default status is "Enabled".
When you copy a product, it's default status is "Disabled". Unlike when creating a new product, where the default status is "Enabled".
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
I am working on a website where we need to accept file upload from the customer while taking orders.
I added an option of type File. It works fine, the user uploads the file and is there in the database and can be manually retrieved from the download folder of opencart.
So far so good.
In Adminsistration I view the details of the order
http://localhost/servicecart/admin/inde ... order_id=1
Now I try to download the image the customer had uploaded, by clicking on the link on the products tab of the order info.
http://localhost/servicecart/admin/inde ... ption_id=1
And then I get this error.
Fatal error: Call to undefined method ModelSaleOrder::getOrderOption() in D:\wamp\www\servicecart\admin\controller\sale\order.php on line 1783
I go to Model\Sale\Order.php and I find there is no function of that signature
I am now creating a new function
Now I get an error and I fix it by removing the cast to int
Now I get rows.
I do after
I find the details are correct.
But I cannot still download the file.
It says page now found and the Notice is Undefined index type ( though the print_r shows the type as file) Please suggest what to do.
I added an option of type File. It works fine, the user uploads the file and is there in the database and can be manually retrieved from the download folder of opencart.
So far so good.
In Adminsistration I view the details of the order
http://localhost/servicecart/admin/inde ... order_id=1
Now I try to download the image the customer had uploaded, by clicking on the link on the products tab of the order info.
http://localhost/servicecart/admin/inde ... ption_id=1
And then I get this error.
Fatal error: Call to undefined method ModelSaleOrder::getOrderOption() in D:\wamp\www\servicecart\admin\controller\sale\order.php on line 1783
I go to Model\Sale\Order.php and I find there is no function of that signature
I am now creating a new function
Code: Select all
ModelSaleOrder::getOrderOption($order_id, $order_option_id)
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "order_option WHERE order_id = '" . (int)$order_id . "' AND order_option_id = '" . (int)$order_option_id . "'");
return $query->rows;
}
Code: Select all
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "order_option WHERE order_id = " . $order_id . " AND order_option_id = " . $order_option_id );
I do
Code: Select all
Print_r($option_info);
Code: Select all
$option_info = $this->model_sale_order->getOrderOption($this->request->get['order_id'], $order_option_id);// line 1783 controller/ order.php
But I cannot still download the file.
It says page now found and the Notice is Undefined index type ( though the print_r shows the type as file) Please suggest what to do.
Attachments
The issue from the start - product_option_file_issue.JPG (124 KiB) Viewed 5373 times
Last edited by jpsurese on Tue Jan 17, 2012 6:14 pm, edited 1 time in total.
Just tried the latest from the svn and the image still does not display in Thunderbird 9.0.1 for Windows and Mail 3.6 for Mac OS X.Daniel wrote:for people with mail problems try the latest mail class from the svn.
Looking at the email source I can see that the Content-Disposition is still wrong.
Code: Select all
Content-Disposition: attachment; filename="1877662a783de334bfb89794d06334c0"
Code: Select all
$message .= 'Content-Disposition: attachment; filename="' . basename($attachment['filename']) . '"' . $this->newline;
Code: Select all
$message .= 'Content-Disposition: attachment; filename="' . basename($attachment['file']) . '"' . $this->newline;
Or setting the correct MIME content type for an image will also allow images to display.
Code: Select all
Content-Type: image/png; name="logo.png"
Code: Select all
$message .= 'Content-Type: application/octet-stream; name="' . basename($attachment['file']) . '"' . $this->newline;
Code: Select all
if ($size = @getimagesize($attachment['file']))
$message .= 'Content-Type: ' . $size['mime'] . '; name="' . basename($attachment['file']) . '"' . $this->newline;
else
$message .= 'Content-Type: application/octet-stream; name="' . basename($attachment['file']) . '"' . $this->newline;
Update: All the above also applies to Hotmail webmail in IE but not when using Firefox, which is very confusing.
Spaces and funny characters, expect a question mark, were fine in Thunderbird, Mac OS X Mail and Hotmail. As long as the filename ended in .png the image was displayed.
I believe that the filename parameter should be in US-ASCII so something like
would be correct.
I believe that the filename parameter should be in US-ASCII so something like
Code: Select all
$message .= 'Content-Disposition: attachment; filename="' . preg_replace('/[^A-Z0-9\._-]/i', '', basename($attachment['file'])) . '"' . $this->newline;
Who is online
Users browsing this forum: No registered users and 161 guests