Product quantity doesn’t update on WooCommerce's cart page - wordpress

after reading many similar topics, I still can’t solve this problem; the quantities in the cart don’t update with the new values once the “update cart” button is clicked.
I’ve already tried disabling themes and plugins, but even as the only extension installed and with default theme (tried both StoreFront & Twenty Twenty-one), the WooCommerce cart continues to behave this way. I have also enabled the WordPress debugging logs and I can’t find anything there, just like in the console.
Someone already run a debug on my cart and think that I am a victim of a code conflict, he found this error :
Element.querySelectorAll: '\' is not a valid selector
I don't know where to look for the source of this error or what procedure to follow to recover the expected behavior...
You can try the bug here.
Mini-update : I created a new Wordpress project and installed WooCommerce. I then transferred all the files of this new WooCommerce on my site and the problem still persists.
I also noticed that the columns of the woocommerce_sessions table were not updated when the quantity was changed. I assume that the script responsible for writing to this database could be the cause of this bug.

As I could not find the source of the problem, I started from scratch by changing my hosting solution. Once the files were uploaded on the new server and the configuration files were adapted, the shopping cart works normally again.

Related

Woocommerce script not loading

Woocommerce should load 5 additional script files onto a site, however I'm unable to find out why one in particular will not load.
The files that should load are:
add-to-cart.min.js
jquery.blockUI.min.js
woocommerce.min.js
jquery.cookie.min.js
cart-fragments.min.js
However, add-to-cart.min.js does not load. I have attempted to re-install Woocommerce, and also disable my theme and go back to the default TwentyTwenty theme. I've also disabled all plugins apart from WC. No luck with any of these.
Has anybody come across this issue?
In case this comes up fro anyone else, it appears the add-to-cart.min.js only loads if 'Enable AJAX add to cart buttons on archives' is enabled in the WC settings.

Wordpress plugin is not working after migration to a new server

I have moved my wordpress site to a new server, and login.php is working right.
But in there many plugins is not working well, for example the login page is not linked to any other page after I submitted my username and password.
Here is the login page link:
https://cpalocate.ca/login/
I have entered the invalid username and password, it will also show the blank page, but not error page.
When I add this code in wp-config.php
define('WP_DEBUG', true);
it showed this text. " Notice: Constant WYZ_THEME_DIR already defined in /home/.....".
And I have fixed that, but the same problem.
Now there is no any error debug, but the login page is also not working.
I changed the php version of my site in cpanel, but the same.
Anyone has your idea to solve this issue?
It is possible (I'd even say likely) that on your old server it was using PHP 5.6 (or at least a different version of PHP than your new server) and now you're on 7.0, 7.2 or even 7.3. It would seem that if that's the case, some of your plugins are incompatible.
You should edit your wp-config.php and add
define('WP_DEBUG', true);
so that you can see the errors on your screen, at least until you figure out which plugins are causing the problems.
If it is a matter of PHP version, check with your host to see if they can roll you back, or you'll have to either contact the plugin author and have them update the plugins, or you need to fix the code yourself, based on whatever the error messages you see are.
Edit: if this doesn't solve your problem, first try a default WordPress theme like twenty-nineteen or whatever. If that doesn't solve it, then disable each plugin one at a time until you find the culprit.
I have turned off all my plugins and turn back it one by one.
I have found one of my plugins is caused this problem, it is PM Pro Settings.
So I deactivated it and there is no any problem now.
I am using other plugins on behalf of that one.

Plugins giving error after Wordpress migration

I just moved a Wordpress site from one URL to the other. The website itself seems to work fine except when I try to login via /wp-admin I get the following error:
Fatal error: Allowed memory size of 100663296 bytes exhausted (tried
to allocate 122880 bytes) in
/home/deb52080/domains/r2blog.nl/public_html/wp-admin/includes/media.php
on line 2840
I allready run some tests by disabling a plugin and that seemed to have solved the problem (except that I need this plugin and I use it all the time). But the moment I clicked one a function from any other plugin I get the same error.
Hope somebody is able to help me. These are plugins that I use regularly (Smart Slider 3 and Fusion Builder from the Avada thema) and they never give any problem.
Did you happen to move your new site to Siteground as the host? There is a known conflict between the Avada theme and Siteground.
The suggested workaround is to simply go to the Avada menu in the admin panel, choose Register and then remove your API key and save it as blank. Be warned that doing so will eliminate the automatic theme updates Avada provides.
If that doesn't work this thread from the Avada community site provides some solutions on how to increase your memory limit in the wp-config file:
https://theme-fusion.com/forums/topic/fatal-error-allowed-memory-size-of-805306368-bytes-exhausted-tried-to-allocate/

Wordpress error when adding an order: "Sorry, you are not allowed to access this page"

I have Woocommerce installed on my Wordpress website and have never had this problem before. Adding orders manually through "Add order" has always worked fine – I added an order manually 2 days ago – but today (after nothing has changed), I am getting an error that says "Sorry, you are not allowed to access this page".
I've tried the usual of deactivating plugins/themes but nothing seems to work, I can't seem to find the problem. I've ensured all plugins are up to date etc. and that doesn't work either. Does anyone have any other ideas?
Install this plugin https://wordpress.org/plugins/members/ and check your role and capabilities.
Maybe some plugins or code has remove your capabilities to access Order

The whole wordpress website got RESET

My wordpress blog was working perfectly fine, until one day when suddenly my blog got down. All I could see was a blank white page. I still don't know the reason.
But initially, I was able to figure out the Debug messages, which were some compatibility issues between prototype of function Walker() and some theme function extending Walker(). So, I somehow managed to resolve those issues, by changing the theme function prototype.
But still, I could only view a blank page without any error. Then, I went through my child theme files and I found that there was some PHP code written to upload image file in child "style.css". Fortunately, I had backup of my Blog so I restored my child style.css.
After so many efforts, I still couldn't restore my complete Blog.
Although, All the posts and everything is there in DB, but I can't see any post on my Blog and Admin panel. It seems that my created categories are no longer there in Admin panel, when I restored theme.
Can anyone please help me to find out...
Why it happened and How my blog got reset ?
How can I restore my blog and reflect all my posts from DB to Admin-panel & Blog ?
It looks like somebody hacked you up. And, edited some files on your server.
Wordpress, actually doesn't offer any backup features. But, most of the web hosting services have a usual backup option. So, you might consider that.
Or, if your Wordpress database is right in place, as before, then you the possible error is that your Wordpress core files are corrupted or edited by anyone. So, you might consider, deleting your Wordpress and reinstalling it, (without deleting your databases). This would not affect your blog at all, because all Wordpress information is stored in the databases. But, remember to backup the files of wp-content folder and copy them to your new installation.

Resources