how to remove warring in opencart most view page? [closed] - php

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
how to remove warring in opencart most view page?
everything work fine only show this below notice please help me how to remove.
http://www.a1dealshop.com/about-us
Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49
Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49
Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49
Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49
Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49
Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49
Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49
Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49
Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49
Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49

The function isset() checks to see if the variable is set and not null.
http://php.net/manual/en/function.isset.php. Since it is in your controller file it should look something like this:
if (isset($this->request->post['stock_status'])) {
$this->data['stock_status'] = $this->request->post['stock_status'];
} else {
$this->data['stock_status'] = '';
} (your basically sending it to view).
Note: It is hard to say because I am not looking at your code, also if your are going to be messing with code avoid core files and change files in VQmod->VQcache.

Related

Elementor conflicts with Ekommart Theme

I have a problem with elementor and Ekommart wordpress theme , I think there's is a conflict betweed this two , Tried to install the last version of Elementor and Ekommart but this problem happens :
Notice: Undefined offset: 1 in /home/cphdigit/b2b.cph-hydro.com/wp-content/themes/cph-hydro/inc/elementor/class-elementor.php on line 53
Notice: Trying to access array offset on value of type null in /home/cphdigit/b2b.cph-hydro.com/wp-content/themes/cph-hydro/inc/elementor/class-elementor.php on line 53
Notice: Undefined offset: 1 in /home/cphdigit/b2b.cph-hydro.com/wp-content/themes/cph-hydro/inc/elementor/class-elementor.php on line 53
Notice: Trying to access array offset on value of type null in /home/cphdigit/b2b.cph-hydro.com/wp-content/themes/cph-hydro/inc/elementor/class-elementor.php on line 53
Notice: Undefined offset: 2 in /home/cphdigit/b2b.cph-hydro.com/wp-content/themes/cph-hydro/inc/elementor/class-elementor.php on line 54
Notice: Trying to access array offset on value of type null in /home/cphdigit/b2b.cph-hydro.com/wp-content/themes/cph-hydro/inc/elementor/class-elementor.php on line 54
Notice: Undefined offset: 2 in /home/cphdigit/b2b.cph-hydro.com/wp-content/themes/cph-hydro/inc/elementor/class-elementor.php on line 54
Notice: Trying to access array offset on value of type null in /home/cphdigit/b2b.cph-hydro.com/wp-content/themes/cph-hydro/inc/elementor/class-elementor.php on line 54
Notice: Undefined offset: 3 in /home/cphdigit/b2b.cph-hydro.com/wp-content/themes/cph-hydro/inc/elementor/class-elementor.php on line 55
Notice: Trying to access array offset on value of type null in /home/cphdigit/b2b.cph-hydro.com/wp-content/themes/cph-hydro/inc/elementor/class-elementor.php on line 55
Notice: Undefined offset: 3 in /home/cphdigit/b2b.cph-hydro.com/wp-content/themes/cph-hydro/inc/elementor/class-elementor.php on line 55
Notice: Trying to access array offset on value of type null in /home/cphdigit/b2b.cph-hydro.com/wp-content/themes/cph-hydro/inc/elementor/class-elementor.php on line 55

Prestashop with smarty_internal_templatebase

PrestaShop 1.6.1.10
PHP 5.5.7
When I turn on debugging in PrestaShop, appear as errors like this, I would fix it, but I do not understand how to fix it.
Notice: Undefined index: br in
public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157)
: eval()'d code on line 34 Notice: Trying to get property of
non-object in
public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157)
: eval()'d code on line 34 Notice: Undefined index: hookPaymentShow in
public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157)
: eval()'d code on line 44 Notice: Trying to get property of
non-object in
public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157)
: eval()'d code on line 44 Notice: Undefined index: manifestPDFFooter
in
public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157)
: eval()'d code on line 52 Notice: Trying to get property of
non-object in
public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157)
: eval()'d code on line 52 Notice: Undefined index: desc in
public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157)
: eval()'d code on line 54 Notice: Trying to get property of
non-object in
public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157)
: eval()'d code on line 54
It means somewhere in a tpl there is a call to hookPaymentShow (for example) in an array that is not defined (doesn't exist).
Try to find the location where the notice is thrown, and you can delete the entry or use something like {if isset($array['variable'])}$array['variable']{/if}

Magento - Notice: Undefined index: in ConfigurableSwatches/Helper/Productimg.php

I have this error message a lot of times in my system.log.
I was looking at this message and it seems that is happening when you are going from the listing page to the product page and the size (m,xl,8,10) is OUT of STOCK.
Any idea how can I solve this configurable swatches error?? because is annoying in the system.log file. Thanks!!
2015-12-08T10:20:16+00:00 ERR (3): Notice: Undefined index: m in /app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php on line 145
2015-12-08T10:20:16+00:00 ERR (3): Notice: Undefined index: m in /app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php on line 151
2015-12-08T10:20:16+00:00 ERR (3): Notice: Undefined index: xl in /app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php on line 145
2015-12-08T10:20:16+00:00 ERR (3): Notice: Undefined index: xl in /app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php on line 151
2015-12-08T10:22:42+00:00 ERR (3): Notice: Undefined offset: 10 in /app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php on line 145
2015-12-08T10:22:42+00:00 ERR (3): Notice: Undefined offset: 10 in /app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php on line 151
You need to add additional check if keys exist. Check my gist on github:
https://gist.github.com/Stasevi4/d991f541e117301e070cd7eb0d4ffffc

insert into a SQL table [duplicate]

This question already has answers here:
"Notice: Undefined variable", "Notice: Undefined index", "Warning: Undefined array key", and "Notice: Undefined offset" using PHP
(29 answers)
Closed 8 years ago.
Hi, I'm currently trying to add data into my SQL table using php I can't seem to see where I'm going wrong here, I'm getting the following errors:
Notice: Undefined index: ModuleId in N:\ftp\compc\d11os\Project\addModule.php on line 70
Notice: Undefined index: Title in N:\ftp\compc\d11os\Project\addModule.php on line 70
Notice: Undefined index: CreditLevel in N:\ftp\compc\d11os\Project\addModule.php on line 70
Notice: Undefined index: CreditPoints in N:\ftp\compc\d11os\Project\addModule.php on line 70
Notice: Undefined index: Status in N:\ftp\compc\d11os\Project\addModule.php on line 70
Warning: mysql_query(): Access denied for user ''#'localhost' (using password: NO) in N:\ftp\compc\d11os\Project\addModule.php on line 72
Warning: mysql_query(): A link to the server could not be established in N:\ftp\compc\d11os\Project\addModule.php on line 72
Here is the code I'm currently using:
<?php
if (isset($_POST['submit']) && $_POST['submit']=="Submit") {
$con=mysqli_connect("localhost","useername ","password ","databasename");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$insert = "INSERT INTO module (ModuleId, Title, CreditLevel, CreditPoints, Status, Award)
VALUES ('".$_POST['ModuleId']."','".$_POST['Title']."','".$_POST['CreditLevel']."','".$_POST['CreditPoints']."','".$_POST['Status']."','".$_POST['Award']."')";
$add_member = mysql_query($insert);
?>
Can someone please help? :/
You've used mysql_query() when you should be using mysqli_query() for a start.

drupal 7 : Undefined index: text_processing in text_content_migrate_instance_alter()

This issue is on the migration of Drupal 6 CCK fields to Drupal 7 fields.
Here is Error that repeat many time
Notice: Undefined index: text_processing in
text_content_migrate_instance_alter() (line 113 of
E:\wamp\www\travel-local\sites\all\modules\cck\modules\content_migrate\modules\content_migrate.text.inc).
Notice: Undefined index: min in
number_content_migrate_instance_alter() (line 162 of
E:\wamp\www\travel-local\sites\all\modules\cck\modules\content_migrate\modules\content_migrate.number.inc).
Notice: Undefined index: max in
number_content_migrate_instance_alter() (line 163 of
E:\wamp\www\travel-local\sites\all\modules\cck\modules\content_migrate\modules\content_migrate.number.inc).
Notice: Undefined index: prefix in
number_content_migrate_instance_alter() (line 164 of
E:\wamp\www\travel-local\sites\all\modules\cck\modules\content_migrate\modules\content_migrate.number.inc).
Notice: Undefined index: suffix in
number_content_migrate_instance_alter() (line 165 of
E:\wamp\www\travel-local\sites\all\modules\cck\modules\content_migrate\modules\content_migrate.number.inc)
Please reply
thanks
this is due to "Date Migration Example" modules. Before migration we should uninstall this modules and related content.

Categories