- This topic has 4 replies, 4 voices, and was last updated 12 years, 7 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › Undefined index notice problem
Tagged: undefined index
Hi
i have just installed the estore plugin for the first time and the following message appears above my admin panel and above my website on the front pge as the website loads:
Notice: Undefined index: mc_gross in /hsphere/local/home/amustread1/brandtoweb.com/wp-content/plugins/wp-cart-for-digital-products/wp_eStore1.php on line 260 Notice: Undefined index: merchant_return_link in /hsphere/local/home/amustread1/brandtoweb.com/wp-content/plugins/wp-cart-for-digital-products/wp_eStore1.php on line 267
i am new at this and do not know how to resolve the issue. please help.
thanks
This error appears because of your PHP error reporting settings on your server.
You can modify the error_reporting variable in your PHP.ini file. error_reporting could be set to show all errors except those for notices and coding standards warnings:
error_reporting = E_ALL & ~E_NOTICE
If you are new to this then modifying the “php.ini” file is not the best solution as it will confuse you more.
Do the following:
1) Open the “wp_eStore1.php” file from the “wp-cart-for-digital-products” folder
2) Add the following line just below line 2 (just below the “session_start();” line)
error_reporting (E_ALL ^ E_NOTICE);
3) Save and upload the file and that should fix it.
Thanks.. that fixed it.
I have the same problem and tried the above and it doesn’t work. Do you have another way to remove the “Notice: Undefined index” messages everywhere?
Best regards Anna
That error reporting fix should have solved this for. I sent you an email to get access so I can check it out.
Update: Turned out you had debug enabled in your WP config file. Edit your “wp-config.php” file and change define('WP_DEBUG', true);
to the following:
define('WP_DEBUG', false);