Jump to content
fandrionie

there is 1 error

Recommended Posts

sebelumnya pake modul/modifikasi tambah captcha di halaman kontak (ContactController) ?

 

karena pesen eror "image verification error" g ada di builtin PrestaShop.

Share this post


Link to post
Share on other sites

sebelumnya pake modul/modifikasi tambah captcha di halaman kontak (ContactController) ?

 

karena pesen eror "image verification error" g ada di builtin PrestaShop.

 

@prestanesia

 

dari awal tidak pakai modul/modifikasi captcha di halaman kontak,

 

kira2 ada modul atau modifikasi yang bisa untuk halaman kontak supaya tidak terjadi error "image verification error" ?

Share this post


Link to post
Share on other sites

Ini cuplikasi error message pas submit kontak (g ada pesen image verification error)

if (!($from = trim(Tools::getValue('from'))) || !Validate::isEmail($from))
	$this->errors[] = Tools::displayError('Invalid email address.');
elseif (!$message)
	$this->errors[] = Tools::displayError('The message cannot be blank.');
elseif (!Validate::isCleanHtml($message))
	$this->errors[] = Tools::displayError('Invalid message');
elseif (!($id_contact = (int)Tools::getValue('id_contact')) || !(Validate::isLoadedObject($contact = new Contact($id_contact, $this->context->language->id))))
	$this->errors[] = Tools::displayError('Please select a subject from the list provided. ');
elseif (!empty($file_attachment['name']) && $file_attachment['error'] != 0)
	$this->errors[] = Tools::displayError('An error occurred during the file-upload process.');
elseif (!empty($file_attachment['name']) && !in_array(Tools::strtolower(substr($file_attachment['name'], -4)), $extension) && !in_array(Tools::strtolower(substr($file_attachment['name'], -5)), $extension))
	$this->errors[] = Tools::displayError('Bad file extension');

di cek di PS 1.4, 1.5, 1.6 ga ada juga. Jadi kemungkinan pake modul/controller diatas dah dimodif/kustom. Coba cek di controllers\front\ContactController.php atau overrides/controllers\front\ContactController.php

 

ada ga eror msg "Image verification error"

Share this post


Link to post
Share on other sites

Ini cuplikasi error message pas submit kontak (g ada pesen image verification error)

if (!($from = trim(Tools::getValue('from'))) || !Validate::isEmail($from))
	$this->errors[] = Tools::displayError('Invalid email address.');
elseif (!$message)
	$this->errors[] = Tools::displayError('The message cannot be blank.');
elseif (!Validate::isCleanHtml($message))
	$this->errors[] = Tools::displayError('Invalid message');
elseif (!($id_contact = (int)Tools::getValue('id_contact')) || !(Validate::isLoadedObject($contact = new Contact($id_contact, $this->context->language->id))))
	$this->errors[] = Tools::displayError('Please select a subject from the list provided. ');
elseif (!empty($file_attachment['name']) && $file_attachment['error'] != 0)
	$this->errors[] = Tools::displayError('An error occurred during the file-upload process.');
elseif (!empty($file_attachment['name']) && !in_array(Tools::strtolower(substr($file_attachment['name'], -4)), $extension) && !in_array(Tools::strtolower(substr($file_attachment['name'], -5)), $extension))
	$this->errors[] = Tools::displayError('Bad file extension');

di cek di PS 1.4, 1.5, 1.6 ga ada juga. Jadi kemungkinan pake modul/controller diatas dah dimodif/kustom. Coba cek di controllers\front\ContactController.php atau overrides/controllers\front\ContactController.php

 

ada ga eror msg "Image verification error"

 

di overrides/controllers\front\ContactController.php ada 

 

else if (mackstorescustomerreg::recaptcha_en_dis_contact() == 1 && isset($resp) && !$resp->is_valid)

$this->errors[] = Tools::displayError('Image Verification ERROR, Please try again');
 
jadi yang ada di line ini saya delete alhasil sukses mengirim pesan di contact us page
 
terima kasih reply nya prestanesia  :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More