hollymcr
Forum Replies Created
-
There’s a newer version here:
https://github.com/WPPlugins/all-in-one-event-calendar
It claims to automatically follow the latest release but that seems to be broken as it’s only showing v2.5 and I’m guessing that the svn->git sync is one way only.
I suspect that the best option is to create a new GitHub repo from the latest code and maintain it yourself as the original author no longer seems to be maintaining it. I know very little about git but would have an interest in helping resolve the php8 issues that I assume are the goal here. Apart from anything I think that’s going to mean migrating the dependencies to current versions (eg Twig).
Forum: Everything else WordPress
In reply to: Contact Form with calculations (or maybe store purchase)Sorry, I thought I replied to this!
Formidable Forms looks great but unfortunately I don’t have the budget for it (it’s a small charity site).
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Summary by orderThank you!
Forum: Plugins
In reply to: [WooCommerce Square] VALUE_TOO_LONG for idemopotency_keySorry for not getting back to you, for some reason I didn’t see the email notifications of updates.
I agree that this is likely resolved now but in the meantime I had changed my order number structure to ensure it never exceeded the character limit so it no longer affects me and the fix won’t therefore affect me either.
This is a busy time for my store but when things get quiet I’ll return to a custom order format that challenges the character limit and report back if there are issues. But having looked at the code I’m confident your fix is fine.
Many thanks for your investigation and fix for this.
Forum: Plugins
In reply to: [WooCommerce Square] VALUE_TOO_LONG for idemopotency_keyQuestion: You say idemopotency_key is set to {hash}:{order number}-{attempts}, but what is {hash} generated from?
From a glance at the code, {hash} seems to be based on the site URL, so should stay the same for all my site transactions. But is there any reason for it to be so?
Thought: What would be the implication of having idemopotency_key set to md5(“$site:$order_number”) so that, regardless of order number structure, the result was always 32 chars? You could then set idempotency_key to {hash}-{attempts} and (for any reasonable number of attempts!) always remain below 45 chars. That would make it compatible with any plugin which changed the order number structure.
I can see an advantage of the current structure when looking at the logs but as far as I can see the actual order number is always present within the data structure that contains the idempotency_key.
Or maybe a better fix: if idempotency_key ever exceeds 45 chars, do something to make force it under 45 chars, eg (untested):
public function get_idempotency_key( $key_input = '' ) { if ( '' === $key_input ) { $key_input = uniqid( '', false ); } $hash_source = get_option( 'siteurl' ); if ( strlen( $key_input ) > 12 ) { // As things stand, idempotency_key will exceed 45 chars // Therefore include $key_input in the md5 hash (to ensure uniqueness) // and shorten $key_input to make everything fit $hash_source .= ':' . $key_input; $key_input = substr( $key_input, -12 ); } return apply_filters( 'wc_square_idempotency_key', md5( $hash_source ) . ':' . $key_input ); }That should result in no changes to idempotency_key for sites where it already works, but fix any that don’t because of a long order number. (Can you see any problems with it?)
Still don’t understand why it used to work then stopped though, as I have always had this order number structure. Maybe something was letting >45 char idempotency_key values work, then started to enforce the limit?
Forum: Plugins
In reply to: [WooCommerce Square] VALUE_TOO_LONG for idemopotency_keyOK, I hadn’t realised I was using an order number plugin – it’s been there since I started using Woo – but I have this installed:
woo-custom-and-sequential-order-number.(I have no idea what order numbers look like by default any more!)
As to the API docs: looking again I can’t see a specific figure documented and did find at least one place where 45 was mentioned just now, but here’s a reference to it being 192 (I can’t now find 128)
Clearly the problem I have is a clash between two extensions but as far as I can tell neither are doing anything wrong. Not sure what a sensible solution would be…
I’ve had to disable the cache because of this issue – any advice on bow to investigate this?
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] v2 bugsSeems fixed for me now, thanks!
One thing I’d really like to be able to do would be to insert tags in my events and only display ones that match. Since GCal doesn’t support it natively (afaik?) I was thinking along the lines of inserting #tag into the event description and have GCE extract them. My use case is that the calendar will contain, for example, club meetings and club events (which themselves could be categorised) and I want to have pages that allow me to pick which get shown. Creating multiple calendars is an option but tags would be more flexible (eg one event with multiple tags) and I want to have several people edit the calendar, so having a dozen calendars gets messy.
I could probably do a reasonable job of adding this myself (or at least contributing) if there’s general interest, although I’d wait for the next stable release first. Unless there’s a better way to do it?
Forum: Plugins
In reply to: [Analyticator] Summary not showing on dashboardFor the benefit of anyone else who may have the same problem: check the obvious stuff!
My “admin” user for some reason only had “subscriber” rights to the site in question, and was thus hiding the plugin. Clearly nothing to do with Analyticator! Having it working on other sites on the multi-site install (where the admin user had admin rights) threw me off track.
Forum: Plugins
In reply to: [Analyticator] Summary not showing on dashboardUpdate: It looks like the code is being loaded (from view->source on the dashboard). Furthermore it looks like a JS exception is being thrown:
Uncaught ReferenceError: datelabel is not defined
in the code:
xaxis: {ticks : datelabel, tickDecimals : 0}Debugging it past that point I’m stuck… Where does datelabel get set?
Forum: Plugins
In reply to: [Analyticator] Summary not showing on dashboardI mean the widget is not appearing at all.
In general, multi-site has no impact on plugins (since each site has its own database etc), I only mentioned it in case it was relevant. Certainly everything else multi-site related is working fine. (When you say check the multi-site settings, I assume you don’t mean something specific to Analyticator?)
Furthermore, when I posted this initially I hadn’t realised that there are already two sites on the multi-site install which are correctly showing the dashboard plugin, so I think multi-site was a red herring.
Any suggestions as to where I should go looking?