News:

Support the VirtueMart project and become a member

Main Menu

Ask question about product : Warning: array_key_exists() expects

Started by TAIWAR, May 26, 2014, 21:52:02 PM

Previous topic - Next topic

TAIWAR

Hello I use VM2022a and option: ask question about product. Then When I select the button I have a popup and where I can write message but I have this error :
Warning: array_key_exists() expects parameter 2 to be array, null given in XXXX/askquestion/view.html.php on line 101 :
$mainframe = JFactory::getApplication ();

      $pathway = $mainframe->getPathway ();

      $task = JRequest::getCmd ('task');
1 : how to solve it please ?
2.Then I need to limit the message because by defaut is 50.min and 2000 max change to 10 min ??
3. Also how can I add captcha ?( I already go on configuration, and select capta recapcha...)


GJC Web Design

simple answer - update - both standard in 2.6.x  config

can't remember if in lower versions

the notice is just a notice... your reporting is too high or add 

error_reporting(E_ERROR);

to the top of askquestion/view.html.php

[attachment cleanup by admin]
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jenkinhill

You are using an old VM version. In the current VM2.6.4 you can select "question minimum length" and also recaptcha is included in this version. The PHP warningr may also be prevented from displaying by turning off Error Reporting in Joomla Global config server settings.  http://forum.virtuemart.net/index.php?topic=118683.0
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum