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!"):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
http://forum.opencart.com/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
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).
Aha, yes WINNER!. That one has likely been there since version 1.0. Thanksa110y 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).
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.Qphoria wrote:Aha, yes WINNER!. That one has likely been there since version 1.0. Thanksa110y 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).
And no I'm not saying the bug shouldn't be fixed. Just not too surprising it's remained undetected till now.
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
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) {
Xsecrets: Just experimenting with my new toy. :p
Code: Select all
Warning: Invalid argument supplied for foreach() in /var/www/opencart/system/library/user.php on line 23
But it not work...



ร้านค้าออนไลน์
OpenCart Thailand Support Forum
How to Upgrade oc1.5 to 2.0.1.1
Upgrading OpenCart From v.1.4 or v.1.5 to V.2.2 Step by step
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:PP_Standard - Possible Scam: IPN/PDT Receiver Email does not match seller email. Order needs manual verification
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');
}
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');
}
}
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';
Code: Select all
$this->data['checkout'] = HTTPS_SERVER . 'index.php?route=checkout/shipping';
Code: Select all
$checkout = HTTP_SERVER . 'index.php?route=checkout/shipping';
Code: Select all
$checkout = HTTPS_SERVER . 'index.php?route=checkout/shipping';
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.8webfeetdesign 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.
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 fixfettabachi 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
http://forum.opencart.com/viewtopic.php ... 293#p94774
And clear all cookies
Yes, I have the same.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
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
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.7 et toutes les versions intégrales 100 % Français sont disponibles sur le Portail Officiel Français.
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.
http://forum.opencart.com/viewtopic.php ... 751#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'], ",")));
And configure CKeditor not to translate foreign characters to entity:
admin/view/javascript/ckeditor/config.js
Before end
Code: Select all
};
Code: Select all
config.entities = false;
http://www.internet24.cz webové služby pro Vás.
Users browsing this forum: No registered users and 16 guests