Page 4 of 11

Re: OpenCart 1.5.3 Bug Thread (SOLVED)

Posted: Wed Jun 20, 2012 12:17 am
by Daniel
menorcarob wrote:hi
not sure if this is a bug, but when i login as a customer and view list of orders, if i click on the "re order" button to the right of the order, i get a blank page, if i click on view order i can see the order, any ideas?

here is what i get in the error log
2012-06-19 9:20:06 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/mshmenorca.com/newrob/catalog/language/english/account/order.php:73) in /home/public_html/mshmenorca.com/newrob/vqmod/vqcache/vq2-system_engine_controller.php on line 29


TURNED OUT TO BE THERE WHERE TWO LINES UNDER THE ?> ON LINE 71

thanks
robin

this is a problem with the extension you installed. ask the developer for help.

Re: OpenCart 1.5.3 Bug Thread

Posted: Wed Jun 20, 2012 4:02 pm
by ecoleman
I'm not sure if this is correct behaviour but it certainly shouldn't be.

If I have SEO URL turned on but do not enter a SEO Keyword for a category, then the URL returned for that link is the current URL.

This only seems to be an issue with the categories as the products on that page are not effected.

eg. (I have tested this with 1.5.1.3, 1.5.2.1 and 1.5.3.1 and get the same results. these are clean installs.
http://www.ecommercechat.co.uk/demos/oc1513/desktops

If you hover over the PC and Mac links you will see that the URL for the PC link is /desktop/pc
This is correct as I have the SEO keyword set to "pc"

If you hover over the Mac link you will see that the URL is /desktop
This is not correct. I have no SEO keyword set for this category and therefore the URL should be index.php?route=product/category........etc. and should not be /desktop

Re: OpenCart 1.5.3 Bug Thread

Posted: Wed Jun 20, 2012 10:42 pm
by Daniel
ecoleman wrote:I'm not sure if this is correct behaviour but it certainly shouldn't be.

If I have SEO URL turned on but do not enter a SEO Keyword for a category, then the URL returned for that link is the current URL.

This only seems to be an issue with the categories as the products on that page are not effected.

eg. (I have tested this with 1.5.1.3, 1.5.2.1 and 1.5.3.1 and get the same results. these are clean installs.
http://www.ecommercechat.co.uk/demos/oc1513/desktops

If you hover over the PC and Mac links you will see that the URL for the PC link is /desktop/pc
This is correct as I have the SEO keyword set to "pc"

If you hover over the Mac link you will see that the URL is /desktop
This is not correct. I have no SEO keyword set for this category and therefore the URL should be index.php?route=product/category........etc. and should not be /desktop

its pretty obvious you have to add a seo key word for all categories if you have a seo keyword for one in the path of the other categories.

how hard is it for you to do this?

Re: OpenCart 1.5.3 Bug Thread

Posted: Wed Jun 20, 2012 10:56 pm
by ecoleman
Wow, that was abrupt.

Unfortunately as your cart does not add this automatically it is easy to overlook this field in error. After all we are all human.

Is it so hard to look for an SEO keyword and if it doesn't exist then revert back to the default URL. After all this is how your products work.

But hey, I don't want to put you out, I'll come up with my own solution.

Thanks for your time.

Re: OpenCart 1.5.3 Bug Thread

Posted: Thu Jun 21, 2012 4:48 am
by Avvici
ecoleman wrote:Wow, that was abrupt.

Unfortunately as your cart does not add this automatically it is easy to overlook this field in error. After all we are all human.

Is it so hard to look for an SEO keyword and if it doesn't exist then revert back to the default URL. After all this is how your products work.

But hey, I don't want to put you out, I'll come up with my own solution.

Thanks for your time.
if you have 1.5.1.3 or earlier there are plenty of free extensions out there like this one: http://www.opencart.com/index.php?route ... on_id=4709

Run search for more recent extensions.

Re: OpenCart 1.5.3 Bug Thread

Posted: Thu Jun 21, 2012 4:53 am
by ALandi
mickmickmick wrote:Hi,
version 1.5.3.1, fresh install. I get this error message:
Undefined index: company_id in catalog/model/account/address
Undefined index: tax_id in catalog/model/account/address
when trying to add a new shipping address during checkout.

FIX:
1. EDIT: catalog/model/account/address.php

2. FIND (TWICE):

Code: Select all

company_id = '" . $this->db->escape($data['company_id']) . "', tax_id = '" . $this->db->escape($data['tax_id']) . "',
3. REPLACE BOTH WITH:

Code: Select all

company_id = '" . $this->db->escape(isset($data['company_id']) ? $data['company_id'] : '') . "', tax_id = '" . $this->db->escape(isset($data['tax_id']) ? $data['tax_id'] : '') . "',
[/color][/b]


Hi mick. I've done the change above but did not result on my website. I still have the problem with company_id and tax_id. I have version 1.5.3.1. installed.
Any idea?
Thanks

Re: OpenCart 1.5.3 Bug Thread

Posted: Thu Jun 21, 2012 5:18 pm
by ecoleman
avvici wrote:
ecoleman wrote:Wow, that was abrupt.

Unfortunately as your cart does not add this automatically it is easy to overlook this field in error. After all we are all human.

Is it so hard to look for an SEO keyword and if it doesn't exist then revert back to the default URL. After all this is how your products work.

But hey, I don't want to put you out, I'll come up with my own solution.

Thanks for your time.
if you have 1.5.1.3 or earlier there are plenty of free extensions out there like this one: http://www.opencart.com/index.php?route ... on_id=4709

Run search for more recent extensions.
Thanks Avvici,

I have the ability to sort this out myself. It just seems a bit strange that the code has been written in a way that if you forget the SEO keyword, the link fails.

In an ideal world I would just add the SEO keyword to every category, that was never the issue, but I do work for various shops where they have different people maintaining the categories and products and I came across this problem where somebody had obviously forgotten to add the SEO keyword.

It was never a case of to much trouble, but human error does happen.
The attitude I got from the developer stinks quite frankly, and I will never report a bug again.

Re: OpenCart 1.5.3 Bug Thread

Posted: Thu Jun 21, 2012 8:40 pm
by yadav771
Hi Daniel
Firstly i want to thanks to you for such a great e-commerce script and best part of it is that it is open source.
i have just installed 1.5.3.1 and i found and error in the script
as when i insert a new product and fill up all the details and inserted options in the product regarding Size of the product
it's working perfectly fine
inserting new.png

these are the option that i have filled up - inserting new.png (14.69 KiB) Viewed 10846 times

and click on save will save the product
but the actual problems comes after that as if i need to edit that product than i click on edit
and when i made the changes and then i saw option were damaged as in image below
error in editing.png

this what i see when i clicked on the edit i saw this - error in editing.png (15.08 KiB) Viewed 10846 times

and to fix that error i need to remove all the option again and insert all the options again

and i need to make sure that i don't click on edit of that particular product

Sir i Request you to fix that issue as soon as you can

Re: OpenCart 1.5.3 Bug Thread

Posted: Fri Jun 22, 2012 11:06 am
by Solarxp
Hi

I've gotten this error and I'm not sure how to fix it. All PayPal settings are correct.

Fatal error: Call to a member function encrypt() on a non-object in /public_html/store/catalog/controller/payment/pp_standard.php on line 94

Re: OpenCart 1.5.3 Bug Thread

Posted: Fri Jun 22, 2012 11:36 am
by Avvici
yadav771 wrote:Hi Daniel
Firstly i want to thanks to you for such a great e-commerce script and best part of it is that it is open source.
i have just installed 1.5.3.1 and i found and error in the script
as when i insert a new product and fill up all the details and inserted options in the product regarding Size of the product
it's working perfectly fine
inserting new.png
and click on save will save the product
but the actual problems comes after that as if i need to edit that product than i click on edit
and when i made the changes and then i saw option were damaged as in image below
error in editing.png
and to fix that error i need to remove all the option again and insert all the options again

and i need to make sure that i don't click on edit of that particular product

Sir i Request you to fix that issue as soon as you can
Fresh install or upgrade?

Re: OpenCart 1.5.3 Bug Thread

Posted: Sat Jun 23, 2012 7:32 am
by michas18
Hi,

When i try to configure mail data in store and i pass wrong host i'v got this error :
Notice: Undefined variable: reply in /system/library/mail.php on line 173

line 173:

$reply .= $line;

this is first time when you use $reply

Regrads

Re: OpenCart 1.5.3 Bug Thread

Posted: Sat Jun 23, 2012 8:26 pm
by yadav771
avvici wrote:
yadav771 wrote:Hi Daniel
Firstly i want to thanks to you for such a great e-commerce script and best part of it is that it is open source.
i have just installed 1.5.3.1 and i found and error in the script
as when i insert a new product and fill up all the details and inserted options in the product regarding Size of the product
it's working perfectly fine
inserting new.png
and click on save will save the product
but the actual problems comes after that as if i need to edit that product than i click on edit
and when i made the changes and then i saw option were damaged as in image below
error in editing.png
and to fix that error i need to remove all the option again and insert all the options again

and i need to make sure that i don't click on edit of that particular product

Sir i Request you to fix that issue as soon as you can
Fresh install or upgrade?

i have installed a fresh Opencart on my server and still the problem occurs

Re: OpenCart 1.5.3 Bug Thread

Posted: Sun Jun 24, 2012 12:44 pm
by jty
allenshea wrote:
2012-06-03 1:35:31 - PHP Notice: Undefined index: zone_id in /home/content/75/5336675/html/online/catalog/controller/account/register.php on line 423
Why I always got this error log, I dont' think it is the bug from OC, or someone already reported.
Can anyone tell me if this is about the server problem?
This problem has been reported (but not fixed) many times over a couple/few versions.
The problem is that we are losing orders because of this bug as buyers are not able to checkout and hence, just give up and go away.
I phoned a buyer about this just now and she told me that she was no able to select a zone_id at checkout, the select dropdown was blank. So this leads me to think that it is an ajax problem. Most times, ajax populates the zones but sometimes it's sleepy and doesn't want to do it.
I'm losing about 1-3% of orders due to this problem

Re: OpenCart 1.5.3 Bug Thread

Posted: Mon Jun 25, 2012 11:44 am
by mssigns
trait wrote:Add product(s) to order in the admin office will cause JS error, and the product you choosed can't not be added, this is because two of the variables is not defined in the JS

The file is "admin\view\template\sale\order_form.tpl"
1. find

Code: Select all

product = json['order_product'][i];
and add var to the beginning, change to

Code: Select all

var product = json['order_product'][i];
2. find

Code: Select all

total = json['order_total'][i];
and add var to the beginning, change to

Code: Select all

var total = json['order_total'][i];
And it work fine now:)
Have fun.
it not working for me does anyone have any ideas, also I'm not no shipping or payment options available on order total

Re: OpenCart 1.5.3 Bug Thread

Posted: Mon Jun 25, 2012 10:58 pm
by doomspace
Daniel wrote: [*]Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. .....
in my case "Safe Mode" was disabled. But result

Code: Select all

is_dir($dirAdmin)
was equal "/". I replace code (in install/model/upgrade.php) to

Code: Select all

is_dir('../shop/admin/')
("shop" - opencart shop subfolder in my case). And upgrade was successful

Re: OpenCart 1.5.3 Bug Thread

Posted: Tue Jun 26, 2012 3:19 am
by JNeuhoff
I file catalog/controller/model/free_checkout.php, the lines

Code: Select all

		if ($total <= 0) {
			$status = true;
		} else {
			$status = false;
		}
should be replaced with

Code: Select all

		if ($total < 0.01) {
			$status = true;
		} else {
			$status = false;
		}
to cater for possible rounding errors. For example, if in theory $total is zero, in practice it may well be slightly off zero, e.g. x.xxxxE-12, due to rounding errors.

Re: OpenCart 1.5.3 Bug Thread

Posted: Tue Jun 26, 2012 8:56 am
by fido-x
Not a bug, as such, just a minor display issue.

In "admin/view/template/sale/customer_group_list.tpl", line 56 reads:

Code: Select all

<td class="center" colspan="3"><?php echo $text_no_results; ?></td>
Should be:

Code: Select all

<td class="center" colspan="4"><?php echo $text_no_results; ?></td>

Re: OpenCart 1.5.3 Bug Thread

Posted: Wed Jun 27, 2012 5:52 am
by jrotem
I am very new to OpenCart so I hope I am not wrong in posting here. After upgrading to OpenCart 1.5.3.1 I am getting the following error message in the error log:

PHP Notice: Undefined index: bottom in /xxx/catalog/controller/common/footer.php on line 26

Is it possible to get any help to fix this? This produces a blank page instead of the product administration page, so I cannot add or edit products.

Very much hoping you can assist with this so that a fresh install will not be necessary. Thank you.

UPDATE:
My problem is solved. I'll leave this here in case In case anyone has this same issue of not being able to insert of edit products (I actually was looking at the wrong error message.) Here's the fix that worked for me:
http://forum.opencart.com/viewtopic.php?f=19&t=66072

yay!

Re: OpenCart 1.5.3 Bug Thread

Posted: Wed Jun 27, 2012 8:08 am
by markeldridge
fullphat wrote:Has the issue regard coupons and paypal been fixed in this update?

I'm referring to the issue where if your coupon / gift card takes the carts value below 0, paypal standard ignores it.

And if the cart's value is 0, it still takes you through to a payment processor rather than giving an instant success page, (you can't pay for 0, which is an unnecessary process)

Thanks
Hey fullphat, have you installed the "Free Checkout" module? That solves this problem. Also, you have to set the paypal minimum to .01 cent to prevent it from showing. The option shown to the user will be "Free Checkout" and PayPal won't be visible.

Re: OpenCart 1.5.3 Bug Thread - CONFIRMED

Posted: Thu Jun 28, 2012 6:12 am
by jrotem
I applied the fix below but I am still getting "Undefined index: bottom in..." errors What can I do next? I am not great at databases but there was no table called "bottom" in my MyPHPAdmin -- is this not correct or am I way off base here? Any help much appreciated.
amdev wrote:BUG:
Editing or Adding an information page throws this error:
Notice: Undefined index: bottom in xxxxxxx\admin\model\catalog\information.php on line 4

FIX:
1. EDIT: admin/model/catalog/information.php

2. FIND (TWICE):

Code: Select all

bottom = '" . (int)$data['bottom'] . "',
3. REPLACE BOTH WITH:

Code: Select all

bottom = '" . (isset($data['bottom']) ? (int)$data['bottom'] : 0) . "',