OpenCart 1.5.1.3 Bug Thread
Re: OpenCart 1.5.1.3 Bug Thread
Can't reproduce it. I'm guessing you've made changes somewhere that caused it.
-Ryan
VQMod Manager: FREE extension to fully manage your VQMods from Admin!
Admin Enhancement Suite: Powerful Admin features and enhancements
Dependent Options: Option values displayed based on customer input
Catalog Mode: Disable "Add to Cart" and display your store in view-only
Unofficial OpenCart Wiki | Commercial Support and Development
VQMod Manager: FREE extension to fully manage your VQMods from Admin!
Admin Enhancement Suite: Powerful Admin features and enhancements
Dependent Options: Option values displayed based on customer input
Catalog Mode: Disable "Add to Cart" and display your store in view-only
Unofficial OpenCart Wiki | Commercial Support and Development
-

rph - Posts: 2710
- Joined: Thu Jan 07, 2010 9:05 pm
- Location: Lincoln, Nebraska
Re: OpenCart 1.5.1.3 Bug Thread
rph wrote:Can't reproduce it. I'm guessing you've made changes somewhere that caused it.
Thanks again for replying, what files would effect this and how does it check if it has been used by another customer?
Dan
- daggerman1
- Posts: 5
- Joined: Sat Jan 07, 2012 10:53 am
Re: OpenCart 1.5.1.3 Bug Thread
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 1597 times
-

eka7a - Posts: 176
- Joined: Sat Apr 11, 2009 4:59 pm
- Location: Türkiye
Re: OpenCart 1.5.1.3 Bug Thread
typo with extention page ( http://www.opencart.com/index.php?route ... on_id=2184 ) of opencart in extention page which is "Exension Name"
- opmods
- Posts: 13
- Joined: Tue Dec 20, 2011 11:51 am
Re: OpenCart 1.5.1.3 Bug Thread
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.
OpenCart commercial support now available!
Project Owner & Developer.
OpenCart commercial support now available!
-

Daniel - Administrator
- Posts: 5173
- Joined: Fri Nov 03, 2006 10:57 am
catalog/controller/feed/google_base.php malformed XML
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.
- SelfMan
- Posts: 28
- Joined: Thu Dec 01, 2011 12:01 am
Re: catalog/controller/feed/google_base.php malformed XML
SelfMan 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.
your google_base.php file change
http://opencart.googlecode.com/svn/trun ... e_base.php
-

eka7a - Posts: 176
- Joined: Sat Apr 11, 2009 4:59 pm
- Location: Türkiye
Re: catalog/controller/feed/google_base.php malformed XML
eka7a wrote:SelfMan 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.
your google_base.php file change
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.
- SelfMan
- Posts: 28
- Joined: Thu Dec 01, 2011 12:01 am
Re: OpenCart 1.5.1.3 Bug Thread
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.
Changing the MIME content type from octetstream to octet-stream by doing the following allows later versions of Thunderbird to display embedded images.
In \system\library\mail.php
Find and change:
- Code: Select all
$message .= 'Content-Type: application/octetstream; name="' . basename($attachment['file']) . '"' . $this->newline;
to
- Code: Select all
$message .= 'Content-Type: application/octet-stream; name="' . basename($attachment['file']) . '"' . $this->newline;
Or setting the correct MIME content type for an image can be done by doing the following.
In \system\library\mail.php
Find and change:
- Code: Select all
$message .= 'Content-Type: application/octetstream; name="' . basename($attachment['file']) . '"' . $this->newline;
to
- 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;
This may help embedded images to show in other email clients.
Corrected missing - from last section of code.
Last edited by ADD Creative on Mon Jan 16, 2012 9:54 am, edited 1 time in total.
- ADD Creative
- Posts: 179
- Joined: Fri Jan 13, 2012 5:02 pm
application/octet-stream
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
- SelfMan
- Posts: 28
- Joined: Thu Dec 01, 2011 12:01 am
Re: Missing extra newline between header and content body
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;
to
- Code: Select all
$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;
solves the issue.
- martinkong
- Posts: 2
- Joined: Sat Jan 14, 2012 5:26 am
Catalog -> Products -> Edit -> Option -> Required
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.
-

TraderDan - Posts: 73
- Joined: Thu Oct 27, 2011 2:44 pm
- Location: Essex, MA
Re: OpenCart 1.5.1.3 Bug Thread
for people with mail problems try the latest mail class from the svn.
OpenCart®
Project Owner & Developer.
OpenCart commercial support now available!
Project Owner & Developer.
OpenCart commercial support now available!
-

Daniel - Administrator
- Posts: 5173
- Joined: Fri Nov 03, 2006 10:57 am
Recursive category - Parent relation
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.
- hcosgun
- Posts: 2
- Joined: Mon Jan 16, 2012 10:03 pm
Re: OpenCart 1.5.1.3 Bug Thread
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".

If you're not living on the edge ... you're taking up too much space!
Multi-Vendor Plugin for OpenCart 1.5.1.x
Have I helped you?
-

fido-x - Posts: 1960
- Joined: Fri Jun 27, 2008 5:09 pm
- Location: Tasmania, Australia
Re: OpenCart 1.5.1.3 Bug Thread : Order Option Image downloa
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
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;
}
Now I get an error and I fix it by removing the cast to int
- 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 );
Now I get rows.
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
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.
- Attachments
-
- The issue from the start
- product_option_file_issue.JPG (124 KiB) Viewed 2010 times
Last edited by jpsurese on Tue Jan 17, 2012 10:14 am, edited 1 time in total.
- jpsurese
- Posts: 5
- Joined: Tue Jan 17, 2012 5:34 am
Re: OpenCart 1.5.1.3 Bug Thread
Well I find obviously the file has an extension added by random while uploading and the issue is linked to the handling of the same. Could some one help me there?
- jpsurese
- Posts: 5
- Joined: Tue Jan 17, 2012 5:34 am
Re: OpenCart 1.5.1.3 Bug Thread
Daniel wrote:for people with mail problems try the latest mail class from the svn.
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.
Looking at the email source I can see that the Content-Disposition is still wrong.
- Code: Select all
Content-Disposition: attachment; filename="1877662a783de334bfb89794d06334c0"
As this post http://forum.opencart.com/viewtopic.php?f=161&t=42226&start=420#p234875 stated.
- Code: Select all
$message .= 'Content-Disposition: attachment; filename="' . basename($attachment['filename']) . '"' . $this->newline;
needs changing back to
- Code: Select all
$message .= 'Content-Disposition: attachment; filename="' . basename($attachment['file']) . '"' . $this->newline;
which is how it was in version 1.5.1.2.
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"
Find and change:
- Code: Select all
$message .= 'Content-Type: application/octet-stream; name="' . basename($attachment['file']) . '"' . $this->newline;
to something like
- 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;
Ether method will allow images to display in Thunderbird and OS X Mail.
Update: All the above also applies to Hotmail webmail in IE but not when using Firefox, which is very confusing.
- ADD Creative
- Posts: 179
- Joined: Fri Jan 13, 2012 5:02 pm
Re: OpenCart 1.5.1.3 Bug Thread
and what happens if the filename has spaces or funny characters in the name.
OpenCart®
Project Owner & Developer.
OpenCart commercial support now available!
Project Owner & Developer.
OpenCart commercial support now available!
-

Daniel - Administrator
- Posts: 5173
- Joined: Fri Nov 03, 2006 10:57 am
Re: OpenCart 1.5.1.3 Bug Thread
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;
would be correct.
- ADD Creative
- Posts: 179
- Joined: Fri Jan 13, 2012 5:02 pm
Who is online
Users browsing this forum: Google Feedfetcher and 9 guests














