Two error log entries appeared in my log today. I found the files but for the life of me I couldn't find the contents of the first one below. On the second one I found that one but did not know just where that variable would be defined at.
I am very very limited in my experience with .php and .tpl but a lot of what I've seen is very simular to the Turbo Pascal programing I did years ago.
Is there anyone that can help me repair what ever is broken here. I'd really appreciate it. I'm in Version 2.1.0.2.
The only mods I currently have are vqmod_opencart.xml and footer_notifications.xml
2016-04-12 16:18:36 - PHP Warning: Invalid argument supplied for foreach() in /xxxxx/xxxxx/public_html/admin/controller/module/featured.php on line 124
2016-04-12 17:22:39 - PHP Notice: Undefined variable: entry_export in /xxxxx/xxxxx/public_html/admin/view/template/tool/backup.tpl on line 43
On a side note, I have been trying to find the mod to be able to run the "ocmod" scripts. Can someone please direct me to it. Thanks in advance for your help and time.
YJ
Hi,
If featured module before that line you have
So, every time line that cause you problems has $products defined:
Uninstall and install again featured module and sure will solve your problem (IF you don't changed original files)
--------------
For second message:
open admin/controller/tool/backup.php
find line: and after this line add
Good luck ! 
If featured module before that line you have
Code: Select all
if (isset($this->request->post['product'])) {
$products = $this->request->post['product'];
} elseif (!empty($module_info)) {
$products = $module_info['product'];
} else {
$products = array();
}
Code: Select all
foreach ($products as $product_id) {
--------------
For second message:
open admin/controller/tool/backup.php
find line:
Code: Select all
$data['entry_backup'] = $this->language->get('entry_backup');
Code: Select all
$data['entry_export'] = $this->language->get('entry_export');

Who is online
Users browsing this forum: No registered users and 36 guests