Writing to log when log is being written = annoying warning
PHP Warning: fopen(/home/USER_ACCOUNT_REDACTED/public_html/system/logs/syserr_cia.log): failed to open stream: Permission denied in /home/USER_ACCOUNT_REDACTED/public_html/system/library/log.php on line 17 I'm a stickler for errors, including warnings. Code is regularly maintained to eliminate any ...
Jump to post- Tue Aug 16, 2016 1:42 am
- Replies 0
- Views 349
Customer login extension error in system_library_customer
I am trying to extend a module we're working on to login to a customer account by customer_id, without providing an admin token. The error I'm getting is: PHP Fatal Error: array_key_exists() expects parameter 2 to be array, null given in /path/to/vqmod/vqcache/vq2-system_library_customer.php on line...
Jump to post- Sat May 02, 2015 11:10 pm
- Replies 0
- Views 326
Re: Customer admin list filter LIKE 'X%' - Why not LIKE '%X%
Thanks for clearing it up, Ryan!
Jump to post- Sat May 02, 2015 2:39 am
- Replies 2
- Views 447
Customer admin list filter LIKE 'X%' - Why not LIKE '%X%'
Is there any reason why the admin customer model indicates a filter query indicated in the subject, rather than a full LIKE '%EMAIL%' query? If someone had thousands of customers and unsure of the exact email address, how would one go about locating that customer with a substring query? Shouldn't it...
Jump to post- Fri May 01, 2015 5:44 am
- Replies 2
- Views 447
Opencart + Varnish
Does anyone out there have any experience implementing Opencart + Varnish on a dedicated box? Is it possible for the two to play well with each other?
Jump to post- Sun Apr 26, 2015 5:35 am
- Replies 1
- Views 2030
Re: InnoDB vs MyISAM - Performance
Ernie, we did end up implementing the MyISAM to InnoDB conversion and also added indexes to all foreign key constraints. I'm glad we did, because it just seriously improved the response time throughout the entire website. To be clear, Atomix was used. We also have our DB settings tweaked heavily in ...
Jump to post- Sat Apr 25, 2015 8:39 pm
- Replies 8
- Views 5348
Re: InnoDB vs MyISAM - Performance
Thanks, Ernie. I think we will hold off on moving from MyISAM to InnoDB based on the above comments. I suppose if it ain't broke, don't fix it.
Jump to post- Sat Apr 25, 2015 1:17 am
- Replies 8
- Views 5348
Re: InnoDB vs MyISAM - Performance
look for yourself and find out about the difference. I do not perform any action without first understanding the ramifications. This is a production server, with no testing environment... just need to know before adding the mod, if this is going to make our website faster, or slower... keeping mind...
Jump to post- Fri Apr 24, 2015 11:33 pm
- Replies 8
- Views 5348
InnoDB vs MyISAM - Performance
Looking at http://www.opencart.com/index.php?route=extension/extension/info&extension_id=18348 and https://github.com/atomixdesign/opencart-turbo/blob/master/turbo.php , both provide the impression that moving from MyISAM to InnoDB will offer a performance improvement. I'm not sure I buy it. But...
Jump to post- Fri Apr 24, 2015 9:03 am
- Replies 8
- Views 5348
Re: Clear cart session variable when admin override login
Ernie, that is the exact modification I created in our VQmod folder for our site You're a champ (and thanks for the credit)!
FW
- Sat Apr 11, 2015 3:41 am
- Replies 9
- Views 6830
Re: Clear cart session variable when admin override login
My pleasure, Ernie.
Jump to post- Sat Apr 11, 2015 1:32 am
- Replies 9
- Views 6830
Clear cart session variable when admin override login
I've found that when logging into customer account from the admin panel (module), when I log in to the new customer account, the cart from the account I was previously logged into is placed into the new customer's shopping cart, which is then in turn saved to the database, as if the new customer had...
Jump to post- Sat Apr 11, 2015 12:47 am
- Replies 9
- Views 6830
Calling index.php with arguments from command-line
We're running an API on our OC store. 99% of the time, it is called remotely, but sometimes, it is called from a local function. Right now, in calling from a local function, a WGET is initiated for the URL in question, however, I'm thinking that an EXEC would be preferable. How can I call index.php?...
Jump to post- Sat Nov 29, 2014 12:27 am
- Replies 1
- Views 582
Re: Why encoded with htmlspecialchars?
Thanks, Ernie. This is what we ended up doing as well. Perhaps, as OpenCart is open source and thus, can be modified by non-security minded coders, this is just an override measure to prevent them from opening a security hole unknowingly. Sure would be nice to get some feedback from the top dev as t...
Jump to post- Mon Jul 14, 2014 12:32 am
- Replies 4
- Views 1100
Re: DB insert failure error checking?
Sounds like it's time to upgrade to MySQLi. Thanks for the assistance.
Jump to post- Thu Apr 10, 2014 8:19 pm
- Replies 9
- Views 2394
Re: DB insert failure error checking?
You're right... I was thinking of something else for the ->error object, however, what would cause an INSERT/UPDATE error to choke a function rather than simply returning true/false?
Jump to post- Thu Apr 10, 2014 5:44 am
- Replies 9
- Views 2394
Re: DB insert failure error checking?
UPDATE & SELECT queries offer this feature as $query->error but INSERT queries do not. The whole function just chokes when an INSERT query fails, but when an UPDATE or SELECT query fails the error is produced as an object.
Why not with the INSERT queries?
- Thu Apr 10, 2014 4:58 am
- Replies 9
- Views 2394
Re: DB insert failure error checking?
Thanks Q. We have the log available for review after the fact but wondering if there is an error checking system (existing or add-on?) that would allow the error to be bypassed, for example: if ( $query->error = "ABC"), $this->emailAdmin("Error Detail"), perform alternate action....
Jump to post- Thu Apr 10, 2014 1:45 am
- Replies 9
- Views 2394
Re: DB insert failure error checking?
Anyone? Seems like there really should be a method for this...
Jump to post- Fri Apr 04, 2014 7:16 am
- Replies 9
- Views 2394
DB insert failure error checking?
Working on a custom extension for our site and noticed that there does not appear to be any method of checking for MySQL INSERT errors. If the insert query produces an error, it just stops. Is there any way to utilize $this->db->query in such a way that rather than choking, an error message is produ...
Jump to post- Thu Mar 27, 2014 8:43 pm
- Replies 9
- Views 2394