Community Forums

OpenCart 1.5.1.3 Bug Thread

Bug reports here

Re: Does the official release zipfile come with latest bug f

Postby i2Paq » Sun Nov 20, 2011 5:47 pm

sean wrote:I greatly appreciate if someone make this clear for me:

Does the official release zip file come with latest bug fixes, or do I need to get the SVN to get the fixes.

How often fixes are updated from SVN, in the official release files?



The SVN has all the bug-fixes for the current official 1.5.1.3 zip. The problem is that the SVN also contains new and unfinished code, so it is useless.
Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.

First Things First: Opencart Check List.
Documentation: Our Documentation section.
BUGs?: Known BUGS for All OC Versions.

Problemen met de BTW?: [How to] BTW + Verzend & betaalmethodes.
User avatar
i2Paq
Global Moderator
 
Posts: 9773
Joined: Mon Nov 09, 2009 11:00 am
Location: Winkel - The Netherlands

Re: OpenCart 1.5.1.3 Bug Thread

Postby robster » Sun Nov 20, 2011 5:59 pm

The SVN has all the bug-fixes for the current official 1.5.1.3 zip. The problem is that the SVN also contains new and unfinished code, so it is useless.


Indeed, although I think sean was asking if when bugs are found and fixed if the 1.5.1.3 zip file is then updated with the bug fixes. I would assume that it isn't or it would be given a new number??

robster
I know my place...!
robster
 
Posts: 373
Joined: Tue Jul 13, 2010 12:08 pm

Re: OpenCart 1.5.1.3 Bug Thread

Postby i2Paq » Sun Nov 20, 2011 7:01 pm

robster wrote:
The SVN has all the bug-fixes for the current official 1.5.1.3 zip. The problem is that the SVN also contains new and unfinished code, so it is useless.


Indeed, although I think sean was asking if when bugs are found and fixed if the 1.5.1.3 zip file is then updated with the bug fixes. I would assume that it isn't or it would be given a new number??

robster



The bugs found in the 1.5.1.3 zip download are only updated in the SVN.
Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.

First Things First: Opencart Check List.
Documentation: Our Documentation section.
BUGs?: Known BUGS for All OC Versions.

Problemen met de BTW?: [How to] BTW + Verzend & betaalmethodes.
User avatar
i2Paq
Global Moderator
 
Posts: 9773
Joined: Mon Nov 09, 2009 11:00 am
Location: Winkel - The Netherlands

Re: SEO URLs - Are they broken or is this intentional?

Postby innuoluke » Mon Nov 21, 2011 4:41 pm

Daniel wrote:
innuoluke wrote:Hi,

I build a lot of OC sites for clients, and there has been a "bug" lingering for a while which I fixed for myself in previous versions of OC, but now the code has all changed (only just upgraded to OC > 1.5) and I really cba to go fix it again, so I thought I would see if this was actually a bug (in which case please can you guys fix it!), or if this was deliberately coded this way....

OK... we have a top level category (ID: 5) and a child category (ID: 10).
We give the top level category a nice SEO name of "Laptops".
We don't bother adding a SEO name to the child category.

When the "categories" menu is generated, the parent category link gets the href "mysite.com/Laptops" - correctly
When we visit the "Laptops" category, the child page now has the same href e.g. "mysite.com/Laptops" - incorrectly?!

I would expect the child page to have a link more like "mysite.com/index.php?route=product/category&path=5_10" as it doesn't have a SEO name.

The thing I am wondering is whether this is actually a bug (which I think / hope it is), or is this a deliberate action trying to force people to add SEO URLs to every category / product if SEO URLs is turned on (I hope not - that would be super-dirty-coder behaviour!!!) ?

Please could someone let me know if this is a bug or not, and how to fix it if so :)



its not a bug. just make sure you have seo keywords for all your categories if you are using seo urls.



Wow! That response has really shocked me.

Please can you tell me which file(s) I need to change in order to make the SEO URLs a little more lenient toward end users who don't understand why they have to apply SEO names to every category. We regularly get clients who only want to add a "nice name" to certain categories for the purposes of marketing (e.g. sending out a leaflet with a shorter link) and don't want to have to update all of their categories just so the site doesn't break!! Don't forget, some users do have an awful lot of categories!

In the older versions of OC ( < 1.5 ) the file I changed was /catalog/model/tool/seo_url.php - this file has disappeared in the new versions, so where has that code been migrated to?

Thanks.
Web developer for Cotswold Web Services / Innuo Ltd
Need help with your Opencart website? Give us a call to see how we can help.
innuoluke
 
Posts: 11
Joined: Sat Jun 18, 2011 8:36 am

Re: OpenCart 1.5.1.3 Bug Thread

Postby JNeuhoff » Mon Nov 21, 2011 5:21 pm

In the older versions of OC ( < 1.5 ) the file I changed was /catalog/model/tool/seo_url.php - this file has disappeared in the new versions, so where has that code been migrated to?


I think it is now in the catalog/controller/common/seo_url.php.
J.Neuhoff - MHC Web Design

OpenCart Override Engine (Version 5.3)
allowing addons to override and modify core methods, language files and templates (see also FAQ)
User avatar
JNeuhoff
 
Posts: 2115
Joined: Tue Dec 04, 2007 7:38 pm

Re: OpenCart 1.5.1.3 Bug Thread

Postby Terrence » Tue Nov 22, 2011 8:15 am

When trying in the online demo (not sure if it's already 1.5.1.3)

When you go to checkout and follow all steps (as guest) to make an order.
It will show the needed TAX, but when you modify one of the previous steps by clicking on modify
BUT not changing anything... the TAX disappears in the last step and you can complete your order TAX free.
Terrence
 
Posts: 1
Joined: Tue Nov 22, 2011 8:05 am

Re: OpenCart 1.5.1.3 Bug Thread

Postby JNeuhoff » Tue Nov 22, 2011 1:39 pm

For a 2 language scenario, e.g. English and Swedish, it is noit possible to use English as the admin language and Swedish as the default frontend language. When using English as the admin language, no products nor categories are shown, when using Swdish as the admin language, all products show up just fine in the admin backend.

In general, I think the admin language should have no bearing on whether or not the products or categories are listed in admin backend, they should always be listed.
J.Neuhoff - MHC Web Design

OpenCart Override Engine (Version 5.3)
allowing addons to override and modify core methods, language files and templates (see also FAQ)
User avatar
JNeuhoff
 
Posts: 2115
Joined: Tue Dec 04, 2007 7:38 pm

Re: OpenCart 1.5.1.3 Bug Thread

Postby Daniel » Wed Nov 23, 2011 9:45 am

JNeuhoff wrote:For a 2 language scenario, e.g. English and Swedish, it is noit possible to use English as the admin language and Swedish as the default frontend language. When using English as the admin language, no products nor categories are shown, when using Swdish as the admin language, all products show up just fine in the admin backend.

In general, I think the admin language should have no bearing on whether or not the products or categories are listed in admin backend, they should always be listed.



yes it is. you set the store language top swedish and the admin language to english.

you have not done something properly.

maybe you did a bad backup and restore. when you create a new language it copies all the default language and adds it to the to the new language then you translate manually.
OpenCart®
Project Owner & Developer.
OpenCart commercial support now available!
User avatar
Daniel
Administrator
 
Posts: 5173
Joined: Fri Nov 03, 2006 10:57 am

Re: OpenCart 1.5.1.3 Bug Thread

Postby Daniel » Wed Nov 23, 2011 9:47 am

Terrence wrote:When trying in the online demo (not sure if it's already 1.5.1.3)

When you go to checkout and follow all steps (as guest) to make an order.
It will show the needed TAX, but when you modify one of the previous steps by clicking on modify
BUT not changing anything... the TAX disappears in the last step and you can complete your order TAX free.



just tested and it this does not happen to me. although the demo version is actually 1 version behind.
OpenCart®
Project Owner & Developer.
OpenCart commercial support now available!
User avatar
Daniel
Administrator
 
Posts: 5173
Joined: Fri Nov 03, 2006 10:57 am

Re: OpenCart 1.5.1.3 Bug Thread

Postby JNeuhoff » Wed Nov 23, 2011 11:36 am

Daniel wrote:
JNeuhoff wrote:For a 2 language scenario, e.g. English and Swedish, it is noit possible to use English as the admin language and Swedish as the default frontend language. When using English as the admin language, no products nor categories are shown, when using Swdish as the admin language, all products show up just fine in the admin backend.

In general, I think the admin language should have no bearing on whether or not the products or categories are listed in admin backend, they should always be listed.



yes it is. you set the store language top swedish and the admin language to english.

you have not done something properly.

maybe you did a bad backup and restore. when you create a new language it copies all the default language and adds it to the to the new language then you translate manually.


I looked further into this, and I noticed that for the admin backend it uses something like

Code: Select all
WHERE pd.language_id = '" . (int)$this->config->get('config_language_id') . "'"


when it retrieves the products, the same is true for e.g. categories or informations.

The config_language_id is set in the admin/index.php, using the admin backend language:

Code: Select all
$config->set('config_language_id', $languages[$config->get('config_admin_language')]['language_id']);


I think this is wrong. When products or categories or informations are retrieved from the database, it should not use any language restrictions at all in the admin backend. The admin edit page for a product, category, or information always has all languages listed for e.g. the description anyway, and if for one of the languages the description is empty, it should just show show the empty description box, not skip the product altogether.
J.Neuhoff - MHC Web Design

OpenCart Override Engine (Version 5.3)
allowing addons to override and modify core methods, language files and templates (see also FAQ)
User avatar
JNeuhoff
 
Posts: 2115
Joined: Tue Dec 04, 2007 7:38 pm

Re: OpenCart 1.5.1.3 Bug Thread

Postby utrdbaeu » Wed Nov 23, 2011 11:57 am

Not sure this is a bug or just an enhancement (to us it's a bug because we have non-ASCI alphabet):

Problematic code from "catalog/controller/product/manufacturer.php" - line 228:
Code: Select all
'description' => substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',


If there is any html entity around position 100 like:
Code: Select all
96 chars to here &raquo; bla bla

...that html entity is cut:
Code: Select all
96 chars to here &ra


We propose that substr and mb_substr get replaced with something like this:
Code: Select all
function MY_substr($string,$start,$length) {
   preg_match('#^\s*(.{'.$length.',}?)\s+.*$#s', $string, $matches);
   return $matches[1];
}


'description' => MY_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',


Br
utrdbaeu
 
Posts: 1
Joined: Wed Nov 23, 2011 11:13 am

Re: OpenCart 1.5.1.3 Bug Thread

Postby ads4it » Wed Nov 23, 2011 8:45 pm

Daniel wrote:
Qphoria wrote:
Daniel wrote:declaring functions in side of classes is not the way to do things!

try this:

uasort($quote_data, array($this, 'comparecost'));


But then where should I put the actual compare function?
Maybe a new helper class?


create a method in the extension.

http://code.google.com/p/opencart/source/detail?r=663


Hi. This fixed problem for ups & usps shipping together issues but this will trigger another problem, if you use any other shipping module like weight base shipping.

weight base shipping will pop up at any time when to do a shipping comparison.

please check.
ads4it
 
Posts: 1
Joined: Wed Nov 23, 2011 8:34 pm

login and basket problems

Postby golfpro » Wed Nov 23, 2011 11:39 pm

Hi all..

this is defo a bug....

if you put items into your basket, then decide to login as an existing customer, you ndo not actually appear to get past the login input page, however, if you then click on 'basket' you are as a logged in customer, but with serious consequences...your basket total seems to increas by a massive amount...very strange indeeed...anyone else found this.....

please note: this does not happen if you login before adding items to your cart/basket....

could this be looked at by the boffins here, or am i just posting this for my own amusment??? as none of my other psots regarding bugs on 1.5.13 have been answered or even commented on.... ...these are serious failings, along with the aparent IE9 problems with layout etc i posted on earlier....
golfpro
 
Posts: 15
Joined: Thu Nov 17, 2011 10:53 am

Re: OpenCart 1.5.1.3 Bug Thread

Postby Phil » Thu Nov 24, 2011 12:43 am

I have been searching the forums all day and have found similar people with the same problem as myself but with no solution.

When I switch on SSL in the Admin>Settings area, it stops the checkout from working correctly on the site. Also in the admin area the image manager will not let you select a new image by double clicking. If you switch SSL back off again everything works perfectly.

I have configured both config.php files to display https://mydomain.com/ in the //HTTPS areas. Am I missing something obvious or is this a bug???
Phil
 
Posts: 20
Joined: Fri Feb 18, 2011 10:10 am

Re: OpenCart 1.5.1.3 Bug Thread

Postby ifyouseek » Thu Nov 24, 2011 3:19 am

adwordsvouchersshop wrote:
Daniel wrote:
adwordsvouchersshop wrote:I also saw this errors when i access the index.php?route=checkout/confirm of any store, including demo.opencart.com.
Have a look: http://demo.opencart.com/index.php?rout ... ut/confirm. I also get them on my store.

Code: Select all
Notice: Undefined variable: payment_address in /home/opencart/public_html/demo/catalog/controller/checkout/confirm.php on line 120Notice: Undefined variable: payment_address in /home/opencart/public_html/demo/catalog/controller/checkout/confirm.php on line 121Notice: Undefined variable: payment_address in /home/opencart/public_html/demo/catalog/controller/checkout/confirm.php on line 122Notice: Undefined variable: payment_address in /home/opencart/public_html/demo/catalog/controller/checkout/confirm.php on line 123Notice: Undefined variable: payment_address in /home/opencart/public_html/demo/catalog/controller/checkout/confirm.php on line 124Notice: Undefined variable: payment_address in /home/opencart/public_html/demo/catalog/controller/checkout/confirm.php on line 125Notice: Undefined variable: payment_address in /home/opencart/public_html/demo/catalog/controller/checkout/confirm.php on line 126Notice: Undefined variable: payment_address in /home/opencart/public_html/demo/catalog/controller/checkout/confirm.php on line 127Notice: Undefined variable: payment_address in /home/opencart/public_html/demo/catalog/controller/checkout/confirm.php on line 128Notice: Undefined variable: payment_address in /home/opencart/public_html/demo/catalog/controller/checkout/confirm.php on line 129Notice: Undefined variable: payment_address in /home/opencart/public_html/demo/catalog/controller/checkout/confirm.php on line 130Notice: Undefined variable: payment_address in /home/opencart/public_html/demo/catalog/controller/checkout/confirm.php on line 131Notice: Undefined variable: payment_address in /home/opencart/public_html/demo/catalog/controller/checkout/confirm.php on line 185Notice: Undefined variable: payment_address in /home/opencart/public_html/demo/catalog/controller/checkout/confirm.php on line 185Notice: Undefined index: comment in /home/opencart/public_html/demo/catalog/controller/checkout/confirm.php on line 259Notice: Undefined index: customer_id in /home/opencart/public_html/demo/catalog/model/checkout/order.php on line 4Notice: Undefined index: customer_group_id in /home/opencart/public_html/demo/catalog/model/checkout/order.php on line 4Notice: Undefined index: firstname in /home/opencart/public_html/demo/catalog/model/checkout/order.php on line 4Notice: Undefined index: lastname in /home/opencart/public_html/demo/catalog/model/checkout/order.php on line 4Notice: Undefined index: email in /home/opencart/public_html/demo/catalog/model/checkout/order.php on line 4Notice: Undefined index: telephone in /home/opencart/public_html/demo/catalog/model/checkout/order.php on line 4Notice: Undefined index: fax in /home/opencart/public_html/demo/catalog/model/checkout/order.php on line 4Notice: Undefined index: payment_method in /home/opencart/public_html/demo/catalog/controller/checkout/confirm.php on line 358Error: Could not load controller payment/!


i'll look into this.


Have you managed to get them fixed? Don't want to rush you, just asking.



I dont understand why you would directly visit this page ever, if the data isn't set of course errors would be displayed, yes of course this result isn't preferable but it doesn't affect the functionality of cart in the slightest, does it? maybe you could just add a check if the data is set, if it isn't then redirect to homepage.
ifyouseek
 
Posts: 158
Joined: Thu May 06, 2010 8:40 am

Re: OpenCart 1.5.1.3 Bug Thread

Postby Serment » Thu Nov 24, 2011 2:12 pm

Opencart_v1.5.1.3.1 clean install. Problem is to do with purchasing a Gift Certificate.

I also installed Shoppica theme but this bug happens even with that switched off and after I copied the original catalog folder back to reverse changes. I have replicated this on 2 PCs and on a live site.

If customer adds a Gift Certificate to the cart, but nothing else, then on the checkout/cart page, it seems that clicking on the Checkout button merely redirects back to the same page, and never goes to the checkout/checkout page.

I've added some debugging to the cart.php page just using error_log() statements.

It seems to get into the if statement around line 69. Around line 125 there is a foreach looping through the products in the cart. It reaches the line before the foreach, but not the line after it, so I'm wondering whether a Gift Certificate is counted as a product. Execution also reaches the line 194 just before it looks at the Gift Voucher.

I don't know when the redirect occurs.
Serment
 
Posts: 1
Joined: Thu Nov 24, 2011 1:56 pm

Re: OpenCart 1.5.1.3 Bug Thread

Postby Daniel » Fri Nov 25, 2011 9:48 am

utrdbaeu wrote:Not sure this is a bug or just an enhancement (to us it's a bug because we have non-ASCI alphabet):

Problematic code from "catalog/controller/product/manufacturer.php" - line 228:
Code: Select all
'description' => substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',


If there is any html entity around position 100 like:
Code: Select all
96 chars to here &raquo; bla bla

...that html entity is cut:
Code: Select all
96 chars to here &ra


We propose that substr and mb_substr get replaced with something like this:
Code: Select all
function MY_substr($string,$start,$length) {
   preg_match('#^\s*(.{'.$length.',}?)\s+.*$#s', $string, $matches);
   return $matches[1];
}


'description' => MY_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',


Br


wow! have you even looked at the code anywhere else? did you not notice a function called utf8_substr
OpenCart®
Project Owner & Developer.
OpenCart commercial support now available!
User avatar
Daniel
Administrator
 
Posts: 5173
Joined: Fri Nov 03, 2006 10:57 am

Re: Does the official release zipfile come with latest bug f

Postby utomo » Sat Nov 26, 2011 4:58 am

i2Paq wrote:
sean wrote:I greatly appreciate if someone make this clear for me:

Does the official release zip file come with latest bug fixes, or do I need to get the SVN to get the fixes.

How often fixes are updated from SVN, in the official release files?



The SVN has all the bug-fixes for the current official 1.5.1.3 zip. The problem is that the SVN also contains new and unfinished code, so it is useless.


When we can expect new version will be released ?
Thankyou
utomo
 
Posts: 44
Joined: Sat Nov 26, 2011 4:55 am

Re: Does the official release zipfile come with latest bug f

Postby i2Paq » Sat Nov 26, 2011 9:11 am

utomo wrote:
i2Paq wrote:
sean wrote:I greatly appreciate if someone make this clear for me:

Does the official release zip file come with latest bug fixes, or do I need to get the SVN to get the fixes.

How often fixes are updated from SVN, in the official release files?



The SVN has all the bug-fixes for the current official 1.5.1.3 zip. The problem is that the SVN also contains new and unfinished code, so it is useless.


When we can expect new version will be released ?
Thankyou


From what I see it will take another 2 weeks to get 1.5.2 finished. Then it needs a test-run to get the bugs out and hopefully we get a "stable" 1.5.2.1 release a week or 2 after the test-run.
Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.

First Things First: Opencart Check List.
Documentation: Our Documentation section.
BUGs?: Known BUGS for All OC Versions.

Problemen met de BTW?: [How to] BTW + Verzend & betaalmethodes.
User avatar
i2Paq
Global Moderator
 
Posts: 9773
Joined: Mon Nov 09, 2009 11:00 am
Location: Winkel - The Netherlands

Re: Does the official release zipfile come with latest bug f

Postby alex1 » Sat Nov 26, 2011 7:39 pm

i2Paq wrote:From what I see it will take another 2 weeks to get 1.5.2 finished. Then it needs a test-run to get the bugs out and hopefully we get a "stable" 1.5.2.1 release a week or 2 after the test-run.


Thanks. Is there a list of 1.5.2 new features we can take a look at?
alex1
 
Posts: 310
Joined: Sat Oct 16, 2010 1:49 am

PreviousNext

Return to Bug Reports

Who is online

Users browsing this forum: Google Feedfetcher, lisalisa and 20 guests

Hosted by Arvixe Web Hosting