Page 1 of 1
[SOLVED] Reviews form submission
Posted: Fri Mar 28, 2025 2:36 am
by antmagn
Hello everyone, I have a problem with reviews, when a customer enters a review, nothing is happening from his side, although I do get notification and pending approval on admin side. I have also added captcha which works fine, but still I get the same result, no response from customer side. As a result I got multiple reviews from the same customer because he things the review has not been submitted, is there a bug?
3.0.3.8 default theme
PHP: 7.3.13
Re: Reviews form submission
Posted: Fri Mar 28, 2025 7:02 am
by grgr
I don't believe there are any bugs. Sounds more like a JS error, potentially an error in your theme files. Hard to say without being able to see it.
Re: Reviews form submission
Posted: Fri Mar 28, 2025 3:19 pm
by OSWorX
antmagn wrote: ↑Fri Mar 28, 2025 2:36 am
Hello everyone, I have a problem with reviews, when a customer enters a review, nothing is happening from his side, although I do get notification and pending approval on admin side.
Question: what should the customer get back?
What do you mean with:
nothing is happening from his side
Re: Reviews form submission
Posted: Fri Mar 28, 2025 4:31 pm
by antmagn
OSWorX wrote: ↑Fri Mar 28, 2025 3:19 pm
antmagn wrote: ↑Fri Mar 28, 2025 2:36 am
Hello everyone, I have a problem with reviews, when a customer enters a review, nothing is happening from his side, although I do get notification and pending approval on admin side.
Question: what should the customer get back?
What do you mean with:
nothing is happening from his side
nothing , it's like a dead button but the review gets submitted in admin panel
Can you tell me what file should I check? Thank you
Re: Reviews form submission
Posted: Fri Mar 28, 2025 4:53 pm
by antmagn
I found that at my product.twig file the javascript code for review button is in comment section...should I uncheck that?
Code: Select all
<script type="text/javascript"><!--
$('#review').delegate('.pagination a', 'click', function(e) {
e.preventDefault();
$('#review').fadeOut('slow');
$('#review').load(this.href);
$('#review').fadeIn('slow');
});
$('#review').load('index.php?route=product/product/review&product_id={{ product_id }}');
$('#button-review').on('click', function() {
$.ajax({
url: 'index.php?route=product/product/write&product_id={{ product_id }}',
type: 'post',
dataType: 'json',
data: $("#form-review").serialize(),
beforeSend: function() {
$('#button-review').button('loading');
},
complete: function() {
$('#button-review').button('reset');
},
success: function(json) {
$('.alert-dismissible').remove();
if (json['error']) {
$('#review').after('<div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> ' + json['error'] + '</div>');
}
if (json['success']) {
$('#review').after('<div class="alert alert-success alert-dismissible"><i class="fa fa-check-circle"></i> ' + json['success'] + '</div>');
$('input[name=\'name\']').val('');
$('textarea[name=\'text\']').val('');
$('input[name=\'rating\']:checked').prop('checked', false);
}
}
});
});
$(document).ready(function() {
$('.thumbnails').magnificPopup({
type:'image',
delegate: 'a',
gallery: {
enabled: true
}
});
});
//--></script>
Re: Reviews form submission
Posted: Fri Mar 28, 2025 5:24 pm
by JNeuhoff
It would really be helpful if you could provide the website URL, because nobody else is able to reproduce this issue. There should be a json['success'] response, with a success message being displayed on the product page.
Re: Reviews form submission
Posted: Fri Mar 28, 2025 5:51 pm
by antmagn
JNeuhoff wrote: ↑Fri Mar 28, 2025 5:24 pm
It would really be helpful if you could provide the website URL, because nobody else is able to reproduce this issue. There should be a json['success'] response, with a success message being displayed on the product page.
example
https://tonias-handmade.com/Snail-Serum
Re: Reviews form submission
Posted: Fri Mar 28, 2025 7:31 pm
by paulfeakins
antmagn wrote: ↑Fri Mar 28, 2025 2:36 am
Hello everyone, I have a problem with reviews, when a customer enters a review, nothing is happening
Why not post a link to your site so we can try it?
Re: Reviews form submission
Posted: Fri Mar 28, 2025 7:45 pm
by antmagn
I did in the last post, I'm sorry if it was not clear, it's
www.tonias-handmade.com
Re: Reviews form submission
Posted: Fri Mar 28, 2025 10:26 pm
by nonnedelectari
Code: Select all
Fatal error: Uncaught Error: Call to undefined method ControllerExtensionModuleApimodule::getApiAccessKey() in /home/toniasha/domains/tonias-handmade.com/public_html/catalog/controller/extension/module/apimodule.php:3786 Stack trace: #0 /home/toniasha/domains/tonias-handmade.com/public_html/catalog/controller/extension/module/apimodule.php(3607): ControllerExtensionModuleApimodule->getPushLimit(1302) #1 /home/toniasha/domains/tonias-handmade.com/public_html/catalog/controller/extension/module/apimodule.php(93): ControllerExtensionModuleApimodule->sendNotifications(Array) #2 /home/toniasha/domains/tonias-handmade.com/storage/modification/system/engine/action.php(79): ControllerExtensionModuleApimodule->afterAddReview('catalog/review/...', Array, NULL) #3 /home/toniasha/domains/tonias-handmade.com/public_html/system/engine/event.php(62): Action->execute(Object(Registry), Array) #4 /home/toniasha/domains/tonias-handmade.com/storage/modification/system/engine/loader.php(255): Event->trigger('model/catalog/r...', Array) #5 /ho in /home/toniasha/domains/tonias-handmade.com/public_html/catalog/controller/extension/module/apimodule.php on line 3786
is returned by ajax post call to
https://tonias-handmade.com/index.php?r ... duct_id=66
So an extension is causing this.
use your web developer tools.
Re: Reviews form submission
Posted: Fri Mar 28, 2025 10:55 pm
by antmagn
Thank you, I got your review, I receive message, I will try to check the extension, I do not have a huge knowledge though...how did you retrieve this error? With inspect tool?
Re: Reviews form submission
Posted: Fri Mar 28, 2025 11:23 pm
by nonnedelectari
antmagn wrote: ↑Fri Mar 28, 2025 10:55 pm
Thank you, I got your review, I receive message, I will try to check the extension, I do not have a huge knowledge though...how did you retrieve this error? With inspect tool?
web developer tools -> network tab -> submit a review -> locate the ajax call -> select it and on the right select preview or response.
Basically a response which the ajax call is not expecting, hence nothing on the client side is executed after the call comes back.
Re: Reviews form submission
Posted: Fri Mar 28, 2025 11:31 pm
by antmagn
I went to extensions->events and disable "apimodule_after_addReview" and now I do get a message response...I have lots of "apimodule" events which I do not know if they added by an extension or not...I'm sorry I still learn

Re: Reviews form submission
Posted: Sat Mar 29, 2025 12:03 am
by nonnedelectari
antmagn wrote: ↑Fri Mar 28, 2025 11:31 pm
I went to extensions->events and disable "apimodule_after_addReview" and now I do get a message response...I have lots of "apimodule" events which I do not know if they added by an extension or not...I'm sorry I still learn
Why be sorry? Learning is good.
Re: Reviews form submission
Posted: Sat Mar 29, 2025 12:45 am
by JNeuhoff
antmagn wrote: ↑Fri Mar 28, 2025 11:31 pm
I went to extensions->events and disable "apimodule_after_addReview" and now I do get a message response...I have lots of "apimodule" events which I do not know if they added by an extension or not...I'm sorry I still learn
The apimodule is likely from a 3rd party extension, probably for a REST API.
Re: Reviews form submission
Posted: Sat Mar 29, 2025 1:51 am
by OSWorX
This topic is a good sample, why this here is so important to read
BEFORE posting here:
Forum Rules
If followed the guidelines, both "parties" will come to a very quick end without wasting time ..
Re: Reviews form submission
Posted: Sat Mar 29, 2025 2:07 am
by antmagn
So I will mark this post as solved...
Re: Reviews form submission
Posted: Sat Mar 29, 2025 7:19 am
by grgr
Yes, the API module will most likely have added those events.
So yes, you can mark as solved. You will need to ask the extension developer to fix the extension, nothing any one here can help with.
Re: [SOLVED] Reviews form submission
Posted: Sat Mar 29, 2025 10:38 pm
by antmagn
It's the extension from the Pinta mobile app module, I've uninstalled it and the events are gone... I will inform the developer , I did see this complaint from others in comments section of the module...