Community Forums

Post any OpenCart 1.4.9 Final Bugs here!

Bug reports here

Re: OpenCart v1.4.9

Postby california » Tue Aug 31, 2010 10:17 am

hi all!

My site is just upgraded for 1.4.9, from 1.4.8b, but for some reason I am unable to access the front site when the "Maintenance" mode is on, even when logged in as admin. Anyone meet with this bug too?

David
california
 
Posts: 1
Joined: Tue Aug 31, 2010 10:05 am

Re: OpenCart v1.4.9

Postby mbaldock2001 » Tue Aug 31, 2010 10:33 am

california wrote:hi all!

My site is just upgraded for 1.4.9, from 1.4.8b, but for some reason I am unable to access the front site when the "Maintenance" mode is on, even when logged in as admin. Anyone meet with this bug too?

David

see the beginning of this thread ("Post any OpenCart 1.4.9 Final Bugs here!"):
viewtopic.php?f=31&t=19293

M
OC v1.4.9.1
(dev:)WampServer v2.0: Apache 2.2.11, PHP 5.3.0, MySQL 5.1.36
(prod:) Apache , PHP 2.10.0.2, MySQL 5.1.37
mbaldock2001
 
Posts: 19
Joined: Sat Mar 13, 2010 7:27 pm
Location: Paris, France

Re: Post any OpenCart 1.4.9 Final Bugs here!

Postby a110y » Tue Aug 31, 2010 8:53 pm

"Warning: Invalid argument supplied for foreach() in /var/www/opencart/system/library/user.php on line 43"

How to repeat: Admin Panel > Users > User Groups > Insert > uncheck all boxes on both "select lists"

Logout and try to login in again.

Possible remedy: Check if the permissions column is actually an array, proceed only if it is (or perhaps cast it as an array).
Last edited by a110y on Tue Aug 31, 2010 9:12 pm, edited 1 time in total.
a110y
 
Posts: 11
Joined: Tue Aug 31, 2010 8:47 pm

Re: Post any OpenCart 1.4.9 Final Bugs here!

Postby Qphoria » Tue Aug 31, 2010 9:00 pm

a110y wrote:"Warning: Invalid argument supplied for foreach() in /var/www/opencart/system/library/user.php on line 43"

Ways to Repeat: Admin Panel > Users > User Groups > Insert > uncheck all boxes on both "select lists"

Logout and try to login in again.

Possible remedy: Check if the permissions column is actually an array, proceed only if it is (or perhaps cast it as an array).


Aha, yes WINNER!. That one has likely been there since version 1.0. Thanks
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18212
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: Post any OpenCart 1.4.9 Final Bugs here!

Postby Xsecrets » Tue Aug 31, 2010 9:03 pm

Qphoria wrote:
a110y wrote:"Warning: Invalid argument supplied for foreach() in /var/www/opencart/system/library/user.php on line 43"

Ways to Repeat: Admin Panel > Users > User Groups > Insert > uncheck all boxes on both "select lists"

Logout and try to login in again.

Possible remedy: Check if the permissions column is actually an array, proceed only if it is (or perhaps cast it as an array).


Aha, yes WINNER!. That one has likely been there since version 1.0. Thanks


I imagine so. I doubt too many people have tried to create users with no permissions whatsoever. Kind of a pointless exercise I would think.

And no I'm not saying the bug shouldn't be fixed. Just not too surprising it's remained undetected till now.
Xsecrets
 
Posts: 5042
Joined: Sat Oct 24, 2009 7:51 pm
Location: FL US

Re: Post any OpenCart 1.4.9 Final Bugs here!

Postby a110y » Tue Aug 31, 2010 9:08 pm

Qphoria: I believe (although I don't claim) there are a few more cases where a similar error would occur (just did a quick grep) including here:
Code: Select all
$ grep -R -n 'unserialize' *
admin/model/user/user_group.php:22:            $data = unserialize($user_group_query->row['permission']);
admin/model/user/user_group.php:36:         'permission' => unserialize($query->row['permission'])
admin/controller/setting/setting.php:809:         $this->data['config_token_ignore'] = unserialize($this->config->get('config_token_ignore'));
admin/controller/common/home.php:258:            $config_ignore = unserialize($this->config->get('config_token_ignore'));
system/library/cache.php:31:               return unserialize($cache);
system/library/customer.php:51:            $cart = unserialize($customer_query->row['cart']);
system/library/user.php:23:              foreach (unserialize($user_group_query->row['permission']) as $key => $value) {
system/library/user.php:43:           foreach (unserialize($user_group_query->row['permission']) as $key => $value) {


Again, it's just a crude test ...

Xsecrets: Just experimenting with my new toy. :p
a110y
 
Posts: 11
Joined: Tue Aug 31, 2010 8:47 pm

Re: Post any OpenCart 1.4.9 Final Bugs here!

Postby a110y » Tue Aug 31, 2010 9:10 pm

... Yep, there are more for sure:

Code: Select all
Warning: Invalid argument supplied for foreach() in /var/www/opencart/system/library/user.php on line 23
a110y
 
Posts: 11
Joined: Tue Aug 31, 2010 8:47 pm

Re: Post any OpenCart 1.4.9 Final Bugs here!

Postby amdev » Wed Sep 01, 2010 1:47 pm

I try this>>>- Adding items to cart shows no products in cart (same solution as the first one) [FIX]
But it not work... ??? ??? ???
User avatar
amdev
 
Posts: 167
Joined: Fri Nov 27, 2009 7:40 am
Location: Bangkok - Thailand

Re: Post any OpenCart 1.4.9 Final Bugs here!

Postby Qphoria » Wed Sep 01, 2010 1:57 pm

amdev wrote:I try this>>>- Adding items to cart shows no products in cart (same solution as the first one) [FIX]
But it not work... ??? ??? ???


It should. Clear your cookies and try again
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18212
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: Post any OpenCart 1.4.9 Final Bugs here!

Postby Qphoria » Wed Sep 01, 2010 4:10 pm

If getting emails from paypal that say:
PP_Standard - Possible Scam: IPN/PDT Receiver Email does not match seller email. Order needs manual verification


This is because you are not using the main email on the paypal account as your opencart paypal account. I did not take this into account initially. The fix is below:

1. EDIT: catalog/controller/payment/pp_standard.php

2. FIND (near the bottom):
Code: Select all
// verify paypal email matches
if (isset($data['receiver_email']) && $data['receiver_email'] != $this->config->get('pp_standard_email')) {
   $this->error = $this->language->get('error_email_mismatch');
}


3. REPLACE WITH:
Code: Select all
// verify paypal email matches
if (isset($data['receiver_email']) && strtolower($data['receiver_email']) != strtolower($this->config->get('pp_standard_email'))) {
   if (isset($data['business']) && strtolower($data['business']) != strtolower($this->config->get('pp_standard_email'))) {
      $this->error = $this->language->get('error_email_mismatch');
   }
}
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18212
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: Post any OpenCart 1.4.9 Final Bugs here!

Postby JAY6390 » Wed Sep 01, 2010 4:56 pm

I had this come up on mine too, but realised what it was, and just changed my default PP email address
ImageImageImage

Better Product SEO URL's - Perfectly structured product links
Better Category SEO URL's - Give subcategories the same SEO keyword
SEO URL's Route Editor - Fix all of your index.php links


Image
User avatar
JAY6390
 
Posts: 4636
Joined: Wed May 26, 2010 3:47 pm
Location: United Kingdom

Re: Post any OpenCart 1.4.9 Final Bugs here!

Postby Qphoria » Wed Sep 01, 2010 6:48 pm

1.4.8 bug that snuck into 1.4.9.
The "checkout" button in the sidebox is not HTTPS

1. EDIT: catalog/controller/module/cart.php

2. FIND:
Code: Select all
$this->data['checkout'] = HTTP_SERVER . 'index.php?route=checkout/shipping';


3. REPLACE WITH:
Code: Select all
$this->data['checkout'] = HTTPS_SERVER . 'index.php?route=checkout/shipping';


4. FIND:
Code: Select all
$checkout = HTTP_SERVER . 'index.php?route=checkout/shipping';


5. REPLACE WITH:
Code: Select all
$checkout = HTTPS_SERVER . 'index.php?route=checkout/shipping';
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18212
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: Post any OpenCart 1.4.9 Final Bugs here!

Postby webfeetdesign » Wed Sep 01, 2010 7:11 pm

Its not in the sidebox module, its in the main shopping basket in the center content. I can't find that code if I look in the cart.php file.
webfeetdesign
 
Posts: 82
Joined: Thu Feb 04, 2010 5:28 pm
Location: Newcastle Upon Tyne

Re: Post any OpenCart 1.4.9 Final Bugs here!

Postby Qphoria » Wed Sep 01, 2010 7:57 pm

webfeetdesign wrote:Its not in the sidebox module, its in the main shopping basket in the center content. I can't find that code if I look in the cart.php file.


No. The main shopping basket has it correct. Only the sidebox was missing it. If you aren't finding it then I don't think you have 1.4.9 or 1.4.8
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18212
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Maintenance Mode 1.4.9 Fix

Postby fettabachi » Thu Sep 02, 2010 12:15 am

Hello,

This concerns the fix for the Maintenance Mode issue. I applied the fix and it works until I log-in as a user on the front-end to test cart functionality. After logging the test user out of the front end, the page defaults to maintenance mode again. In order to view the store front again, I have to clear the cache each time.

Has anyone else experienced this?

Thanks
User avatar
fettabachi
 
Posts: 16
Joined: Tue Aug 17, 2010 2:13 pm

Re: Maintenance Mode 1.4.9 Fix

Postby Qphoria » Thu Sep 02, 2010 1:00 am

fettabachi wrote:Hello,

This concerns the fix for the Maintenance Mode issue. I applied the fix and it works until I log-in as a user on the front-end to test cart functionality. After logging the test user out of the front end, the page defaults to maintenance mode again. In order to view the store front again, I have to clear the cache each time.

Has anyone else experienced this?

Thanks


Be sure you use this fix
viewtopic.php?f=31&t=19293#p94774
And clear all cookies
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18212
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: Maintenance Mode 1.4.9 Fix

Postby fettabachi » Thu Sep 02, 2010 2:54 am

Hello,

I believe that I have corrected the code properly.
Image

Thanks
User avatar
fettabachi
 
Posts: 16
Joined: Tue Aug 17, 2010 2:13 pm

Re: Maintenance Mode 1.4.9 Fix

Postby i2Paq » Thu Sep 02, 2010 5:11 am

fettabachi wrote:Hello,

This concerns the fix for the Maintenance Mode issue. I applied the fix and it works until I log-in as a user on the front-end to test cart functionality. After logging the test user out of the front end, the page defaults to maintenance mode again. In order to view the store front again, I have to clear the cache each time.

Has anyone else experienced this?

Thanks


Yes, I have the same.
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: Post any OpenCart 1.4.9 Final Bugs here!

Postby LeorLindel » Thu Sep 02, 2010 9:24 am

Hi,

I noticed that it missed in the file upload/catalog/controller/account/login.php:
Code: Select all
       $this->data['text_account'] = $this->language->get('text_account');
Tous les packs de langues Française depuis la v1.4.3 ainsi que toutes les versions intégrales en Français 100 % sont disponibles sur le portail.
Image
User avatar
LeorLindel
 
Posts: 122
Joined: Mon Feb 22, 2010 12:05 pm

Re: Post any OpenCart 1.4.9 Final Bugs here!

Postby linkstate » Thu Sep 02, 2010 10:47 am

Hi,
its nothing serious but would be good to include in new version:

in mail subject use correct czech (not only) characters with uft8 encoding. Solution is here.

viewtopic.php?f=89&t=6751#p39883


Plus another bug related to search (with foreign characters):
somewhere in index.php put:
Code: Select all
setlocale(LC_ALL, substr($languages[$code]['locale'],0,strpos($languages[$code]['locale'], ","))); 

to set locale by settings in admin.

And configure CKeditor not to translate foreign characters to entity:
admin/view/javascript/ckeditor/config.js

Before end
Code: Select all
};
add:
Code: Select all
   config.entities = false;
http://www.internet24.cz webové služby pro Vás.
linkstate
 
Posts: 6
Joined: Wed Sep 01, 2010 3:50 pm

PreviousNext

Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 13 guests

Hosted by Arvixe Web Hosting