The moment I enter the 'add product' page; the following error is displayed in the error log.
2013-08-20 13:15:46 - PHP Notice: Undefined index: product_id in /home/scottb/public_html/dev_opencart/admin/view/template/catalog/product_form.tpl on line 1346
Is there a way to fix this? It is bloating up the error log.
Have you altered that file at all? Or do you have any VQmods that may affect the process of adding products?
Peter
Peter
For OpenCart & PHP/MySQL support feel free to PM me
Click here for my extentions
Did I help you? Donate here to show support
We'll need a little bit more info than that... Which version of OpenCart you are using, is it a clean install, or an upgrade, are you using the default theme, or some other, custom theme, are you using any module that affects that page, etc.
See all my extensions: https://www.opencart.com/index.php?rout ... 20OpenCart
The same here. V1.5.6 with no update...deleted every xml in vqmod directory its a clean installation admin has the default language. I think something is going on with this
<?php if (isset($this->request->get['product_id'])) { ?>
function openbayLinkStatus(){
var product_id = '<?php echo $this->request->get['product_id']; ?>';
$.ajax({
type: 'GET',
url: 'index.php?route=extension/openbay/linkStatus&token=<?php echo $token; ?>&product_id='+product_id,
dataType: 'html',
success: function(data) {
//add the button to nav
$('<a href="#tab-openbay"><?php echo $tab_marketplace_links ?></a>').hide().appendTo("#tabs").fadeIn(1000);
$('#tab-general').before(data);
$('#tabs a').tabs();
},
failure: function(){
},
error: function() {
}
});
}
$(document).ready(function(){
openbayLinkStatus();
});
<?php } ?>
i am trying to find a solution..if anyone has found anything please post
<?php if (isset($this->request->get['product_id'])) { ?>
function openbayLinkStatus(){
var product_id = '<?php echo $this->request->get['product_id']; ?>';
$.ajax({
type: 'GET',
url: 'index.php?route=extension/openbay/linkStatus&token=<?php echo $token; ?>&product_id='+product_id,
dataType: 'html',
success: function(data) {
//add the button to nav
$('<a href="#tab-openbay"><?php echo $tab_marketplace_links ?></a>').hide().appendTo("#tabs").fadeIn(1000);
$('#tab-general').before(data);
$('#tabs a').tabs();
},
failure: function(){
},
error: function() {
}
});
}
$(document).ready(function(){
openbayLinkStatus();
});
<?php } ?>
i am trying to find a solution..if anyone has found anything please post
ok....download again version 1.5.6 and then upload the file admin/view/template/catalog/product_form.tpl
or else
check file from 1345 line to 1374 and remove everything replace with this.
and it will be ok.
or else
check file from 1345 line to 1374 and remove everything replace with this.
Code: Select all
<?php if (isset($this->request->get['product_id'])) { ?>
function openbayLinkStatus(){
var product_id = '<?php echo $this->request->get['product_id']; ?>';
$.ajax({
type: 'GET',
url: 'index.php?route=extension/openbay/linkStatus&token=<?php echo $token; ?>&product_id='+product_id,
dataType: 'html',
success: function(data) {
//add the button to nav
$('<a href="#tab-openbay"><?php echo $tab_marketplace_links ?></a>').hide().appendTo("#tabs").fadeIn(1000);
$('#tab-general').before(data);
$('#tabs a').tabs();
},
failure: function(){
},
error: function() {
}
});
}
$(document).ready(function(){
openbayLinkStatus();
});
<?php } ?>
//--></script>
<?php echo $footer; ?>
I had exact same problem. Additional image adding on product section didn't work and showed the same error log. I changed the product_form.tpl as it was described above and VOILA, everything works.
THanks so much!
THanks so much!
Who is online
Users browsing this forum: Google [Bot] and 368 guests