Harm10
Forum Replies Created
-
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.
@emma24 Thanks for your reply. I think the support forum is only accessible if you register. I think registering to report issues on the WP forum should be enough to get some support?
Anyway I do not think that an exact example of my script is relevant. Lots of added actions and/or filters use is_admin() to block any unwanted actions when an admin page is displayed. Similar you would like to skip an action (like writing some meta data in the header of the content page) when the login screen is shown. Also interpreting the content of $wp_query for whatever reason is irrelevant when the login screen is displayed.
Did I detail my issue better in this way?https://www.imghippo.com/i/yte9071Fuk.png
Shows the image when WP_DEBUG is true.
Then I change it to FALSE via config.php and switch on PHP error reporting via added action and code like this:if ($my_wp_debug && !WP_DEBUG) { // Turn on debug error_reporting(E_ALL); ini_set('display_errors', 0); $file_name = $file_name ? $file_name : 'debug'; $log_path = WP_CONTENT_DIR . '/' . $file_name .'.log'; ini_set('log_errors', 1); ini_set('error_log', $log_path); }
I have switched on some error_log commands to show that PHP is logging and to what file:
[09-Jan-2025 16:41:43 UTC] site 4: display_errors = 0
[09-Jan-2025 16:41:43 UTC] site 4: log_errors = 1
[09-Jan-2025 16:41:43 UTC] site 4: error_log = /home/deb20385n4/domains/remarkwebdesign.nl/public_html/sitetest/wpbase/testmulti/wp-content/debug.log
[09-Jan-2025 16:41:43 UTC] site 4: error_reporting = 32767Admin page looks like this:
https://www.imghippo.com/i/WQt2432lpM.png
Log viewer shows this when WP_DEBUG is false and PHP logging is on.
https://www.imghippo.com/i/JMpa8977ck.png
I can PHP log writing in the debug.log.
Do you have enough information?
Forum: Plugins
In reply to: [Cart Weight for WooCommerce] o[‘woo-cart-weight’] is undefinedI think you mean something like this: https://www.imghippo.com/i/1736444597289
Sorry there are 3 separate links:https://www.imghippo.com/i/iRSD8241pg.png
https://www.imghippo.com/i/hjvP5849KNU.png
https://www.imghippo.com/i/LJyD8581Stc.png
(I have never used these kind of platforms)- This reply was modified 2 months, 1 week ago by Harm10.
Forum: Plugins
In reply to: [Cart Weight for WooCommerce] o[‘woo-cart-weight’] is undefinedHow? “here”is not a link? And what do you mean by image hosting service?
- This reply was modified 2 months, 1 week ago by Harm10.
Forum: Plugins
In reply to: [Cart Weight for WooCommerce] o[‘woo-cart-weight’] is undefinedI have 3 images for you but how do I insert them here?
1. Cart display when entering cart.
2. Cart display when refreshing browser page
3. Cart display when doing Ctrl-F5 (clear cache)Maybe I can paste the html part from inspect when the shortcode does not work?
Forum: Plugins
In reply to: [Cart Weight for WooCommerce] o[‘woo-cart-weight’] is undefined@kozyraola That is not possible. This is a staging environment to check WP 6.7.1 problems with loading text domains. As said I only see it on this multi site. It definitely looks like some caching thing.
Is WP multi site doing that differently from single site?
I could temporarily open up one of the sub sites but I do not want to post the URL here.
Perhaps I can give you some debug data or run some test PHP script for you?@emma24 Thank you. I have submitted a request.
I have written several PHP scripts that should do something or not depending on what screen/loop is shown to the user. In this case I manipulate the debug settings when I am on specific loop types.
An exclusion you see a lot in these kinds of scripts is to skip the function entirely when is_admin() and is_login() is true. Both cases should not trigger a lot of custom scripts.
Testing my LoginPress staging environment I found that processes got executed when the login screen of LoginPress was shown. Investigation showed that is_login() is false.
I can imagine that you do not want to “hack” into the WP code so perhaps your own is_LP_login() function?Forum: Plugins
In reply to: [WooCommerce] $product populated new version different?Thanks for the additional information.