Page 6 of 10

Re: OFFICIAL v1.4.9.3 BUG THREAD. POST ALL BUGS HERE

Posted: Wed Jan 26, 2011 7:30 am
by bader rashed
i2Paq wrote:
bader rashed wrote:helloo ..

ive got problem when i add new product

i got this message :

Error: Duplicate entry '63-2' for key 1
Error No: 1062
INSERT INTO product_description SET product_id = '63', language_id = '2', name = 'hhh', meta_keywords = '', meta_description = '', description = ''


how can i fix it ?
Make sure your meta-keywords are unique.
i make sure :(

but not fixed

Re: OFFICIAL v1.4.9.3 BUG THREAD. POST ALL BUGS HERE

Posted: Sat Jan 29, 2011 7:11 pm
by bull5-i
I've just noticed a problem with the Image upload with the CKEDITOR. Example case is with the product description field.

Everything works if you only have one CKEDITOR instance (this is the case for only single language shops). If you, however, have a multilanguage shop, thus you have several CKEDITOR instances in the prodcut edit form, then only the first CKEDITOR works for image upload. All other instances open up the file manager, but when you double click on the image you want to add, nothing happens. The file manager window stays open and no info gets sent to the CKEDITOR image insert window.

I noticed that the callback function has a hard coded 1 in the filemanager template as the first parameter. Shouldn't there be the CKEditorFuncNum that is the GET parameter for the filemanager. If I changed this to the CKEditorFuncNum parameter then the image name gets sent back to CKEDITOR image insert window, but the filemanager window will still not close and image will not be added.

I don't think that this is a browser problem. Checked with FF 3.6 and IE 8. It probably is some kind of scripting problem with the filemanager (probably javascript issue).

It's really annoying, because I can't add images for other languages.

Re: OFFICIAL v1.4.9.3 BUG THREAD. POST ALL BUGS HERE

Posted: Sun Jan 30, 2011 10:40 am
by philbydevil
Not sure if this is a bug, but I had to change line 21 in catalog/controller/error/not_found.php

from:

Code: Select all

'text'      => $this->language->get('text_error'),
to:

Code: Select all

'text'      => $this->language->get('heading_title'),
otherwise my breadcrumbs' text would blow out over two lines with the full error text.

If you keep the text_error in the language file as default then it isn't a problem/bug. But if you change it to a longer sentence then you start to have problems.

Re: OFFICIAL v1.4.9.3 BUG THREAD. POST ALL BUGS HERE

Posted: Sun Jan 30, 2011 10:56 am
by Qphoria
bull5-i wrote:I've just noticed a problem with the Image upload with the CKEDITOR. Example case is with the product description field.

Everything works if you only have one CKEDITOR instance (this is the case for only single language shops). If you, however, have a multilanguage shop, thus you have several CKEDITOR instances in the prodcut edit form, then only the first CKEDITOR works for image upload.
This is a known CKEDITOR issue, not opencart related. We will update to the latest version in 1.5.x but cant guarantee they fixed it

Re: OFFICIAL v1.4.9.3 BUG THREAD. POST ALL BUGS HERE

Posted: Mon Jan 31, 2011 11:13 am
by bader rashed
bader rashed wrote:
i2Paq wrote:
bader rashed wrote:helloo ..

ive got problem when i add new product

i got this message :

Error: Duplicate entry '63-2' for key 1
Error No: 1062
INSERT INTO product_description SET product_id = '63', language_id = '2', name = 'hhh', meta_keywords = '', meta_description = '', description = ''


how can i fix it ?
Make sure your meta-keywords are unique.
i make sure :(

but not fixed

Re: OFFICIAL v1.4.9.3 BUG THREAD. POST ALL BUGS HERE

Posted: Tue Feb 01, 2011 6:24 am
by anreig
It's possible no works on 1.4.9.2 and 1.4.9.3 the ajax on history order status when it's notify?Thanks

Re: OFFICIAL v1.4.9.3 BUG THREAD. POST ALL BUGS HERE

Posted: Thu Feb 03, 2011 2:44 am
by Daniel
cashman9 wrote:
julugu wrote:Hello,

Everyday I get a lot of errors like these:

2011-01-19 19:08:21 - PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/julugu/public_html/index.php:48) in /home/julugu/public_html/system/library/session.php on line 11

2011-01-19 19:08:22 - PHP Notice: Undefined index: HTTP_HOST in /home/julugu/public_html/index.php on line 173

2011-01-19 19:08:22 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/julugu/public_html/index.php:48) in /home/julugu/public_html/index.php on line 173

2011-01-20 8:36:06 - PHP Warning: unlink(/home/julugu/public_html/system/cache/cache.category.38.2.0.1295512099) [<a href='function.unlink'>function.unlink</a>]: No such file or directory in /home/julugu/public_html/system/library/cache.php on line 14

I know they are Warnings but I don't want them in the log.

Thanks

I also get those errors daily and I don't know how to fix it.
check if there are any spaces after ?> or possibly your session direcotry does not ahve the correct permissions.

Re: OFFICIAL v1.4.9.3 BUG THREAD. POST ALL BUGS HERE

Posted: Thu Feb 03, 2011 2:54 am
by JAY6390
"Undefined index: HTTP_HOST"
That's not an opencart problem, that's a server problem. Perhaps you're not using apache. headers sent could be the cause of spaces before the <?php or just another error outputting causing a chain reaction. The most common error I get is the cache deletion one which I don't seem to be able to work out. Even with checking if the file exists before deletion somehow manages to get the issue, but well, it's not a massive concern. customers don't see the errors and no web app is going to be perfect...

Re: OFFICIAL v1.4.9.3 BUG THREAD. POST ALL BUGS HERE

Posted: Mon Feb 07, 2011 1:24 am
by mike_jandreau
I looked through the whole thread, but didn't see this listed (or anywhere else on the forums), my apologies if I overlooked it.

When sorting by price, the sorting seems to not take special prices into account, and is sorting on the original price, which is deceiving, and could be confusing for customers.

I checked and it looks like it's the same case with older versions, as well. Just wanted to bring it up, so it can be investigated for a future release.

Re: OFFICIAL v1.4.9.3 BUG THREAD. POST ALL BUGS HERE

Posted: Thu Feb 10, 2011 7:50 am
by jefferymoore83
I think I have found a bug in 1.4.9.3. When I edit a manufacturer, I get the following error:

Warning: Invalid argument supplied for foreach() in /wwwroot/store/admin/model/catalog/manufacturer.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at /wwwroot/store/admin/index.php:72) in /wwwroot/store/system/engine/controller.php on line 27

I can prevent the error by deselecting the default store but if I do this I remove the manufacturer from the store and this is of course not what I want. It appears a variable is supposed to be an array but it's instead been coerced into the string value "Array". I have been trying to debug it but my barely above newbie PHP skills have failed me for the moment. Anyone on here know how to fix it? Manufacturer functionality is important for my client so I really need to get it working correctly!

Re: OFFICIAL v1.4.9.3 BUG THREAD. POST ALL BUGS HERE

Posted: Thu Feb 10, 2011 7:58 am
by JAY6390
I don't get this error. What browser are you using?

Re: OFFICIAL v1.4.9.3 BUG THREAD. POST ALL BUGS HERE

Posted: Thu Feb 10, 2011 8:02 am
by jefferymoore83
Firefox Mac 3.5.10. This doesn't seem like a browser related issue but of course I could be wrong.

Re: OFFICIAL v1.4.9.3 BUG THREAD. POST ALL BUGS HERE

Posted: Thu Feb 10, 2011 8:32 am
by bberman
When i am typing in the option fild the box to the left shrinks.

For every one space typed in either the option or the option value "name" field the box to the left that has your option tree shrinks in size by one space. If you type 15 characters the box to the left compleatly goes away. Is there any fix for this?

Thanks

Re: OFFICIAL v1.4.9.3 BUG THREAD. POST ALL BUGS HERE

Posted: Thu Feb 10, 2011 8:41 am
by Qphoria
bberman wrote:When i am typing in the option fild the box to the left shrinks.

For every one space typed in either the option or the option value "name" field the box to the left that has your option tree shrinks in size by one space. If you type 15 characters the box to the left compleatly goes away. Is there any fix for this?

Thanks
Ya, dont use IE :)
Options will be diff in 1.5.x anyway

Re: OFFICIAL v1.4.9.3 BUG THREAD. POST ALL BUGS HERE

Posted: Thu Feb 10, 2011 6:56 pm
by JAY6390
jefferymoore83 wrote:Firefox Mac 3.5.10. This doesn't seem like a browser related issue but of course I could be wrong.
Hi Jeffery. I agree that it's likely not a browser issue, but it's possible. OK are you using apache as your web server?
The reason I ask is some servers parse [] differently. There is an easy fix for this. You just need to edit the file

Code: Select all

/admin/view/template/catalog/manufacturer_form.tpl
Find this

Code: Select all

              <?php foreach ($stores as $store) { ?>
              <?php $class = ($class == 'even' ? 'odd' : 'even'); ?>
              <div class="<?php echo $class; ?>">
                <?php if (in_array($store['store_id'], $manufacturer_store)) { ?>
                <input type="checkbox" name="manufacturer_store[]" value="<?php echo $store['store_id']; ?>" checked="checked" />
                <?php echo $store['name']; ?>
                <?php } else { ?>
                <input type="checkbox" name="manufacturer_store[]" value="<?php echo $store['store_id']; ?>" />
                <?php echo $store['name']; ?>
                <?php } ?>
              </div>
              <?php } ?>
and change it to

Code: Select all

              <?php foreach ($stores as $store) { ?>
              <?php $class = ($class == 'even' ? 'odd' : 'even'); ?>
              <div class="<?php echo $class; ?>">
                <?php if (in_array($store['store_id'], $manufacturer_store)) { ?>
                <input type="checkbox" name="manufacturer_store[<?php echo $store['store_id']; ?>]" value="<?php echo $store['store_id']; ?>" checked="checked" />
                <?php echo $store['name']; ?>
                <?php } else { ?>
                <input type="checkbox" name="manufacturer_store[<?php echo $store['store_id']; ?>]" value="<?php echo $store['store_id']; ?>" />
                <?php echo $store['name']; ?>
                <?php } ?>
              </div>
              <?php } ?>
Also find this code a little above the last code

Code: Select all

                <?php if (in_array(0, $manufacturer_store)) { ?>
                <input type="checkbox" name="manufacturer_store[]" value="0" checked="checked" />
                <?php echo $text_default; ?>
                <?php } else { ?>
                <input type="checkbox" name="manufacturer_store[]" value="0" />
                <?php echo $text_default; ?>
                <?php } ?>
and change it to

Code: Select all

                <?php if (in_array(0, $manufacturer_store)) { ?>
                <input type="checkbox" name="manufacturer_store[0]" value="0" checked="checked" />
                <?php echo $text_default; ?>
                <?php } else { ?>
                <input type="checkbox" name="manufacturer_store[0]" value="0" />
                <?php echo $text_default; ?>
                <?php } ?>
That will give each manufacturer_store a unique key (the store id)

Re: OFFICIAL v1.4.9.3 BUG THREAD. POST ALL BUGS HERE

Posted: Fri Feb 11, 2011 3:30 am
by jefferymoore83
Jay,

Thanks so much, this immediately fixed the issue. I had never noticed form elements with [] in their names before this. I am not sure I understand why, but it now does work. To answer your question, I am using Apache. It is a part of the MAMP package if you are familiar. I was looking for a version number but couldn't find one (for Apache). My MAMP is the Pro version, 1.9.4. Maybe this functionality can be tweaked to work with both interpretations of []? Sounds like a good fix for the next minor release version.. :)

Thanks again, so much!

-Jeff

Re: OFFICIAL v1.4.9.3 BUG THREAD. POST ALL BUGS HERE

Posted: Fri Feb 11, 2011 3:33 am
by JAY6390
No problem Jeff. It's likely to be either apache or the Mac version of Firefox (although can't see that being different to the Windows 7 version in many ways)
Glad it got it fixed, and perhaps this is something for the devs to take a look into for future compatibility :)

Re: OFFICIAL v1.4.9.3 BUG THREAD. POST ALL BUGS HERE

Posted: Fri Feb 11, 2011 3:51 am
by Qphoria
I've never heard of an issue with [] before to be honest. It is interesting tho.

Re: OFFICIAL v1.4.9.3 BUG THREAD. POST ALL BUGS HERE

Posted: Fri Feb 11, 2011 4:01 am
by JAY6390
I've only seen it a couple of times to be honest, never actually noticed a trend as to why it happens, and for the effort of adding a unique key I always do so

Re: OFFICIAL v1.4.9.3 BUG THREAD. POST ALL BUGS HERE

Posted: Thu Feb 17, 2011 4:54 pm
by mostek
I have a problem with Opencart - Version 1.4.9.2 and 1.4.9.2

When I use polish national characters in search field - there are no results. When I search without polish national character everything is ok - search works great.

Have you got any idea how to fix it?

Thank you for help in advance.

Pete