Jamie Perrelet
Forum Replies Created
-
Forum: Plugins
In reply to: [ActiveCampaign for WooCommerce] Fatal Error in Cron [2.9.2]Nearly a year old, bug persists.
Forum: Plugins
In reply to: [ActiveCampaign for WooCommerce] Fatal Error in Cron [2.9.2]Hello?
This is the optimy of AC: Vendor lock on buggy software at extortionate costs.Forum: Plugins
In reply to: [ActiveCampaign for WooCommerce] Fatal Error in Cron [2.9.2]Hi, we’re paying literally thousands of dollars a year for AC and your software is causing a fatal error.
We would appreciate hearing from you.
Thank you.Hi @tillkruess, any further comment or thoughts on this? Thanks.
Hi @tillkruess,
Thank you for your swift input.
#1 Load OrderYou’ll need to be very careful with using filters, because the object cache boots before even
muplugins_loadedis called, so your filter registration might not have run by the time the cache starts.Yes this makes sense,
object-cache.phpis loaded very early in the cycle. For this particular use case we have in mind, this wouldn’t be an issue. For background, we’ve written a framework that provides handling of core wp entities via an object orientated interface. e.g:$post = new Post();
$post->set_title("Hello World");When our new post’s setter methods are called, we need to run
wp_cache_set(..)to ensure the underlyingWP_Postobject holds the new title. Unless$post->save()is called at some later point, this really shouldn’t be persistently stored however.
#2 Hook PerformanceCalling
redis_cache_skip_persistent_cachefor each key can be a big performance hit. This would need to be a static check once to only apply the filter when something is registered.Right, I wondered if this might be an objection. Perhaps you wouldn’t mind expanding a little further on this point? In particular, given that
WP_Object_Cachealready fires various hooks (such asredis_cache_expiration,redis_object_cache_getandredis_object_cache_get_value) on every call – how might adding this hook constitute a big performance hit comparative to the existing hooks?
Thanks again for your time on this Till.Also, do you accept PRs?
Forum: Plugins
In reply to: [ActiveCampaign for WooCommerce] Fatal Error in wp-cronThanks @daveykj, I think you nailed it 👍
@acteamintegrations this is a show-stopper, please acknowledge & reply.Forum: Plugins
In reply to: [Comments - wpDiscuz] {Bug Report] Form suddenly stopped workingHi,
This site has not been migrated – it’s been running on the same vps instance, using the same domain for a number of years.Hi @Krystian from Syde,
Reporting this bug hit our client’s website hard 🔨. Due to the dynamic nature of the subscriptions on the website in question, there’s no simple way for the customer to simply ‘repurchase the subscription’.
Is there really no way to recover thecustomer_id(using the paypal API for example)?
If you truly “take this seriously”, please take some time to address the github issue, the silence over there speaks volumes.
https://github.com/woocommerce/woocommerce-paypal-payments/issues/2587Any updates to report?
Finally, this bug likely relates to: https://ww.wp.xz.cn/support/topic/multiple-issues-pdfs-buddypress-messages
Forum: Developing with WordPress
In reply to: WP::register_globals and reserved namesThanks for your 2 cents guys. For clarity, I’m asking the question because the answer has implications for a framework we’re currently working on. One of the framework’s features provides the ability to easily define CPTs alongside the structure of an associated model. Like many frameworks, the only code in the global namespace are the view templates themselves. Right now, accessing the instance of a model within a view looks something like:
$model = Model::get_instance(); $model->get_something();We had the thought that it world be much neater if for main queries for a given CPT, the correct model was automatically injected into the global scope. For example, if you have a CPT called ‘event’ and the client requests the ‘events/some-event’ page, a global $event variable would be instantiated with a value holding the correct instance of the associated model. The instantiation would happen at ‘template_redirect’ to provide access to all views:
<h1><?= $event->get_title() ?></h1>The clinch here is that because WP injects $perma_query_vars into the global space, there will already exist a global $event variable with a string value of ‘some-event’.
Thus we wish to specifically know whether it is safe to overwrite this type of global variable?
🙏- This reply was modified 2 years, 12 months ago by Jamie Perrelet.
This appears to be a byproduct of wordpress using table-layout: fixed on its admin tables and limited screen size.
marking as resolved.
Forum: Plugins
In reply to: [WP Remote Users Sync] Same username on different SitesHi Alex,
Truly awesome plug, however doesn’t this limitation represent a major security concern? Might it be prudent to make note of this in the plugin description?
In particular, given that roles may be synchronized, if an attacker creates an account on site B with the same user_login of an administrator on site A… then… explosions?
Whilst I appreciate that ‘a choice of identifier must be made’, it can be argued that emails are the only unique identifier in this case, as its possible to verify ownership of an email (2fa), whereas usernames are inherently unverifiable.
Thoughts?
- This reply was modified 3 years, 8 months ago by Jamie Perrelet.
Forum: Reviews
In reply to: [Code Syntax Block] Doesnt work unless you enjoy using GutenbergVery unfair review, ozarc’s comment should be retracted.