Post by VeryUtils » Sat Jun 13, 2020 4:14 am

Hi, guys!

I have problem with my cart - after clicking the "Add to cart" button, it does nothing, just like without click.

I added some log message in " public function add()" function in cart.php code, I noticed the "$this->request->post" is empty, it couldn't get 'product_id' at all.

All I got is this:

Code: Select all

Request Object
(
    [get] => Array
        (
            [route] => checkout/cart
        )
 
    [post] => Array
        (
        )
 
    [cookie] => Array
        (
  ... clip ...
        )
 
    [files] => Array
        (
        )
 
    [server] => Array
        (
  ... clip ...
        )
)
After this problem appeared on my server, I simple opened the "index.php" file, save it again and without any change, it worked continue, "Add to cart" button could work for some days, but after 3~5 days, the "Add to cart" button couldn't work again, it seemed $this->request->post can only work a few days.

My website is https://veryutils.com

What could have caused this and how to fix it?

Thanks in advance!
Frank
Last edited by straightlight on Sat Jun 13, 2020 6:16 am, edited 1 time in total.
Reason: Added code tags.

Newbie

Posts

Joined
Sat Jun 13, 2020 4:07 am

Post by opencartmart » Sat Jun 13, 2020 3:29 pm

it worked fine for me.

XForm - Opencart Form Builder
Xshippingpro - An advanced Shipping Module
Need Professional support? Skype: opencartmart


Active Member

Posts

Joined
Wed Oct 02, 2013 3:59 am

Post by straightlight » Sat Jun 13, 2020 8:12 pm

Caused by mod-security or anti-flood filters on your server. In addition, it could also be caused by installed extensions.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 25 guests