Harm10
Forum Replies Created
-
@andrewsupport I submitted a ticket on the given url
Forum: Plugins
In reply to: [Cart Weight for WooCommerce] o[‘woo-cart-weight’] is undefined@tograczyk I submitted the question on that url.
@shahzeenfarooq Thanks for your reply and link. I have a comment there.
So I think it is not very useful of leaving this issue open?
Forum: Plugins
In reply to: [Cart Weight for WooCommerce] o[‘woo-cart-weight’] is undefined@grola Thanks for your reply. I think I mentioned this earlier. The problem occurs on my test multi site which is not openly available. And then also solely when using browser Firefox. Browsers Edge and Chrome do not have this problem. I am willing to define some user access to you but then I have the problem on how to tell you this. Obviously I do not want to publish this here.
On a side note: I never work with blocks and also have no special plug-ins for that active. As reported when using Check Conflicts and switching everything off besides WooCommerce and Cart Weight the problem persisted. Even when I selected WP theme 2025. Could it maybe be something on the server side?
Forum: Plugins
In reply to: [Cart Weight for WooCommerce] o[‘woo-cart-weight’] is undefinedI do not use block based output.
Yesterday I implemented all new software (with WP 6.7.1) on a live single site.
As I expected the problem does not occur there (even not in Firefox).
I tried searching in all your file for the string but that did not help as the text domain has the same name.
Then I tried searching on the components in the html: div class=”wc-block-components-discounts-meta css-0 e19lxcc00″ p>o[‘woo-cart-weight’] is undefined p>div> (I left out some slashes so you can see the html)
But that also did not bring any hits.
Do you have any suggestions on how to find where this error comes from?
I tried using plugin Check Conflicts but the problem persists even when using WP 2025 theme and only Woocommerce and Cart Weight active.- This reply was modified 1 year, 4 months ago by Harm10.
@stefancotitosu Thank your for your code. But I want to know when the maintenance page is displayed to a visitor. That is different from knowing the plugin is active. Is this possible to deduce from the global $wp_query and/or $GLOBALS[‘pagenow’]?
The file is there like I already described by showing you the php log entries written by my own code.
Why should it have permissions 755? I do not create it as PHP and/or WP do. Current rights are 644.
In my view the problem is that the original settings point to the same file for both WP and PHP logging.
If WP logging is switched off the viewer gets into this state while PHP logging is on and still writing to that same file.
Would it help if my code sets PHP logging to a different file?And suppose I want to give you access what kind of access would that be and how to tell you the user/password? Obviously I do not want to post that here.
Forum: Plugins
In reply to: [Cart Weight for WooCommerce] o[‘woo-cart-weight’] is undefinedSo what is [‘woo-cart-weight’] part pointing to then? Those brackets look like a shortcode to me?
Can I get a status update please?
Forum: Plugins
In reply to: [Cart Weight for WooCommerce] o[‘woo-cart-weight’] is undefinedThere are no additional messages to be seen besides the warnings for other plugins that textdomain is loaded too early.
As I do not want to open up a site to the open net I am hesitant on giving you access.
I still have no clue why this only happens with this software set-up in browser Firefox. Edge and Chrome are no problem.
And how can that break your shortcode?
Speaking of that I tried to search your code for add_shortcode but did not find anything. Is this shortcode generated in a special way? And where is this located? Maybe I can try to do some debugging there myself?Forum: Plugins
In reply to: [Cart Weight for WooCommerce] o[‘woo-cart-weight’] is undefinedSorry that was a typo: I did NOT copy/modify the templates.
I also tried Edge and the problem is not there too. So what is different for a web page refresh in Firefox?
Forum: Plugins
In reply to: [Cart Weight for WooCommerce] o[‘woo-cart-weight’] is undefined@grola I have set-up a new sub site with the bare necessities (see part of WC log below). The problem occurred again. Then I changed the language to english to see the problem persist.
Before I tried a single site I tested the same thing in browser Chrome. The problem does not occur there!
My main browser is Firefox (134.0 64 bits).
So it has something to do with the type of browser? Any idea?
(As said earlier the live site with older versions of WP and WC is a single site but I tested that in Firefox too)WC Version: 9.5.2
Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site.
Action Scheduler Version: ✔ 3.8.2
Log Directory Writable: ✔
WP Version: 6.7.1
WP Multisite: ✔
WP Memory Limit: 256 MB
WP Debug Mode: ✔
WP Cron: ✔
Language: en_GB
External object cache: –Active Plugins (16)
Advanced Custom Fields: by WP Engine – 6.3.11
Classic Editor: by WordPress Contributors – 1.6.7
Classic Widgets: by WordPress Contributors – 0.3
Contact Form 7: by Takayuki Miyoshi – 6.0.2
Core Rollback: by Andy Fragen – 1.3.7
Error Log Viewer by BestWebSoft: by BestWebSoft – 1.1.5
NS Cloner – Site Copier: by Never Settle – 4.4.7.5
Really Simple Security: by Really Simple Security – 9.1.4
Reveal IDs: by Oliver Schlöbe – 1.6.1
Server IP & Memory Usage Display: by Apasionados
Apasionados del Marketing – 2.1.0User Login History: by Er Faiyaz Alam – 2.1.6
Cart Weight: by Octolize – 1.9.1
WooCommerce: by Automattic – 9.5.2
WP Crontrol: by John Blackbourn – 1.17.1
LightStart – Maintenance Mode, Coming Soon and Landing Page Builder: by Themeisle – 2.6.16
WP Rollback: by WP Rollback – 2.0.7Forum: Plugins
In reply to: [Cart Weight for WooCommerce] o[‘woo-cart-weight’] is undefinedThe plugin files are not modified. Also I did copy/modify the templates.
I will try to set-up another test site with the bare necessities and check it out both in my locale as in English.
I will report back.@emma24 I understand this is not main priority but I really want to advocate you to hook into the is_login() function of WP and deliver a value of true when the LP login screen is displayed!
For those who want to know the old method before is_login() was introduced: just check the value in $GLOBALS[‘pagenow’]. If it is wp-login.php then you can consider that the login screen is displayed.
Forum: Plugins
In reply to: [WooCommerce] Install WooCommerce in only 1 site within multi siteI checked everything you mention and there are no problems……….
But this all started out that I activated WC on a sub site the first time. The installation process (the progress bar display) never finished. So after several minutes I refreshed the screen. Things seemed to work properly until I encountered an error with a WC extension plugin (turned out it was irrelevant as it is still there and all other things work fine).
But as I wasn’t sure at that time that WC could work on a sub site (there is a lot of info on the net giving the impression that it could not — I know you cannot control what people post on the net 🙂 ).
So I tried uninstalling. I could deactivate, tried network activation and after that deactivation again without giving me the remove option on the network level. So I deleted the folder on the server and the tables manually. At that time I was aware of the clear constant to set in config.php.
I used it and then installed everything anew without network activation to get into the situation of the missing tables and HPOS being switched on although I never activated it.I know that you cannot analyse the original problem any more but still I think there is some flaw in the installation process.
Having said this I was positively surprised to get that many support although the problem could not be found. It looks like WC is working properly on the sub site I choose.
And it is now sure that WC can work on multi site in only 1 sub site!
So thanks again for all support.